MESCIUS SPREAD for Windows Forms 15.0J
CustomMaskCharacters プロパティ
使用例 

マスク用のカスタム文字を取得または設定します。
構文
'宣言
 
Public Overridable Property CustomMaskCharacters As String()
public virtual string[] CustomMaskCharacters {get; set;}

プロパティ値

カスタム マスク文字を含む String の配列
使用例
次のサンプルコードは、カスタムマスクを設定します。
FarPoint.Win.Spread.CellType.MaskCellType mask =new FarPoint.Win.Spread.CellType.MaskCellType();
        string[] test;
        test = new string[] {"t", "e", "s", "t"};
        mask.CustomMaskCharacters = test;
        //  0 is the first character in the array, 1 is the second character, etc...
        mask.Mask = "0120";
        fpSpread1.Sheets[0].Cells[0, 0].CellType = mask;
Dim test As String()
        test = New String() {"t", "e", "s", "t"}
        Dim mask As New FarPoint.Win.Spread.CellType.MaskCellType()
        mask.CustomMaskCharacters = test
        '  0 is the first character in the array, 1 is the second character, etc...
        mask.Mask = "0120"
        FpSpread1.Sheets(0).Cells(0, 0).CellType = mask
参照

MaskCellType クラス
MaskCellType メンバ

 

 


© MESCIUS inc. All rights reserved.