PowerTools SPREAD for Windows Forms 8.0J
ShowGridLines プロパティ


ドロップダウンリストにグリッド線が表示されるかどうかを取得または設定します。
構文
'Declaration
 
Public Property ShowGridLines As Boolean
'使用法
 
Dim instance As MultiColumnComboBoxCellType
Dim value As Boolean
 
instance.ShowGridLines = value
 
value = instance.ShowGridLines
public bool ShowGridLines {get; set;}
次のサンプルコードは、コンボボックスの編集部分に使用する列と、コンボボックスのデータ列にするリスト列を設定します。
FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType mc = new
FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType();
mc.DataSourceList = ds;
mc.ListResizeColumns = FarPoint.Win.Spread.CellType.ListResizeColumns.FitWidestItem;
mc.ListWidth = 860;
mc.ListBorderStyle = BorderStyle.Fixed3D;
mc.ShowColumnHeaders = false;
mc.ShowGridLines = false;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = mc;
Dim mc As New FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType
mc.DataSourceList = ds
mc.ListResizeColumns = FarPoint.Win.Spread.CellType.ListResizeColumns.FitWidestItem
mc.ListWidth = 860
mc.ListBorderStyle = BorderStyle.Fixed3D
mc.ShowColumnHeaders = False
mc.ShowGridLines = False

FpSpread1.ActiveSheet.Cells(0, 0).CellType = mc
参照

MultiColumnComboBoxCellType クラス
MultiColumnComboBoxCellType メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.