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


フィールド編集モードを取得または設定します。
構文
'Declaration
 
Public Property FieldsEditMode As FieldsEditMode
'使用法
 
Dim instance As GcDateTimeCellType
Dim value As FieldsEditMode
 
instance.FieldsEditMode = value
 
value = instance.FieldsEditMode
public FieldsEditMode FieldsEditMode {get; set;}

プロパティ値

フィールド編集モードを示す GcDateTime.FieldsEditMode 列挙値。
既定値は GrapeCity.Win.Spread.InputMan.CellTypeEditMode.LeftSide です。
解説
FieldsEditMode プロパティは、ユーザーがデータを入力するときのフィールドの編集方法を決定します。
次のサンプルコードは、FieldsEditMode プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
datecell.FieldsEditMode = GrapeCity.Win.Spread.InputMan.CellType.FieldsEditMode.RightSide;
datecell.ExcelExportFormat = "MM/dd/yy";
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;

GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.AutoConvert = true;
textcell.FormatString = "A";
fpSpread1.Sheets[0].Cells[1, 1].CellType = textcell;
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
datecell.FieldsEditMode = GrapeCity.Win.Spread.InputMan.CellType.FieldsEditMode.RightSide
datecell.ExcelExportFormat = "MM/dd/yy"
FpSpread1.Sheets(0).Cells(0, 0).CellType = datecell

Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.AutoConvert = True
textcell.FormatString = "A"
FpSpread1.Sheets(0).Cells(1, 1).CellType = textcell
参照

GcDateTimeCellType クラス
GcDateTimeCellType メンバ

 

 


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