GrapeCity SPREAD for WPF 2.0J
GeneralCellType コンストラクタ

GeneralCellType クラスの新しいインスタンスを初期化します。
構文
'Declaration
 
Public Function New()
public GeneralCellType()
次のサンプルはGeneralCellTypeを作成し幾つかのプロパティを設定します。
public void CreateGeneralCell1()
{
    GeneralCellType generalCellType1 = new GeneralCellType();

    //ALT+ENTER will insert a new line in editing element.
    generalCellType1.AcceptsReturn = true;
    //The input text will be formatted automatically. For example, if you input '1', that will be formatted to number 1 automatically.
    generalCellType1.FormatString = "General";
    //The input text will NOT be formatted automatically, that always treated as text.
    //generalCellType.FormatString = null;

    this._gcSpreadGrid1[0, 0].CellType = generalCellType1;
}
Public Sub CreateGeneralCell1()
    Dim generalCellType1 As New GeneralCellType()

    'ALT+ENTER will insert a new line in editing element.
    generalCellType1.AcceptsReturn = True
    'The input text will be formatted automatically. For example, if you input '1', that will be formatted to number 1 automatically.
    generalCellType1.FormatString = "General"
    'The input text will NOT be formatted automatically, that always treated as text.
    'generalCellType.FormatString = null;

    Me._gcSpreadGrid1(0, 0).CellType = generalCellType1
End Sub
参照

GeneralCellType クラス
GeneralCellType メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.