MESCIUS SPREAD for Windows Forms 15.0J
FieldsEditMode プロパティ (GcDateTimeCellType)
使用例 

フィールド編集モードを取得または設定します。
構文
'宣言
 
Public Property FieldsEditMode As FieldsEditMode
public FieldsEditMode FieldsEditMode {get; set;}

プロパティ値

曜日を示す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 メンバ

 

 


© MESCIUS inc. All rights reserved.