public string Format {get; set;}
Public Property Format As String
プロパティ値
セルにどのようなテキストを入力できるかを示す文字列。
次のサンプルコードは、Format プロパティを使用して入力文字を制御する方法を示します。このサンプルコードは、
GcCharMaskCell に示されている詳細なコード例の一部を抜粋したものです。
private void Form1_Load(object sender, EventArgs e)
{
CalendarGcCharMaskCellType gcCharMaskCell1 = new CalendarGcCharMaskCellType();
//Allow the GcCharMaskCell to accept upper case alphabet(A-Z).
gcCharMaskCell1.Format = "A";
gcCharMaskCell1.CharBoxes.Clear();
//Add some CharBoxes to GcCharMaskCell.
gcCharMaskCell1.CharBoxes.AddRange(new InputBox[] { new InputBox(), new InputBox(), new InputBox() });
CalendarTemplate template1 = CalendarTemplate.CreateDefaultTemplate();
template1.Content[1, 0].CellType = gcCharMaskCell1;
template1.Content[2, 0].CellType = gcCharMaskCell1.Clone();
gcCalendarGrid1.Template = template1;
}
Private Sub Form1_Load(sender As Object, e As EventArgs)
Dim gcCharMaskCell1 As New CalendarGcCharMaskCellType()
'Allow the GcCharMaskCell to accept upper case alphabet(A-Z).
gcCharMaskCell1.Format = "A"
gcCharMaskCell1.CharBoxes.Clear()
'Add some CharBoxes to GcCharMaskCell.
gcCharMaskCell1.CharBoxes.AddRange(New InputBox() {New InputBox(), New InputBox(), New InputBox()})
Dim template1 As CalendarTemplate = CalendarTemplate.CreateDefaultTemplate()
template1.Content(1, 0).CellType = gcCharMaskCell1
template1.Content(2, 0).CellType = gcCharMaskCell1.Clone()
gcCalendarGrid1.Template = template1
End Sub
CalendarGcCharMaskCellType クラス
CalendarGcCharMaskCellType メンバ
GrapeCity.Win.CalendarGrid.InputMan.CalendarGcCharMaskCellType.InvalidInput