PowerTools MultiRow for Windows Forms 8.0J
Fields プロパティ (GcDateTimeCell)
使用例 

GcDateTimeCellのフィールドを取得します。
構文
Public ReadOnly Property Fields As DateTimeFieldCollection
public DateTimeFieldCollection Fields {get;}

プロパティ値

GcDateTimeCell内の項目を表すGrapeCity.Win.MultiRow.InputMan.DateFieldCollection
使用例
以下のサンプルコードは、フィールドの追加の使用例です。 このコードは GcDateTimeCell のサンプルコードの一部です。
private void SetGcDateTimeCellFields(GcDateTimeCell gcDateTimeCell)
{
    gcDateTimeCell.Fields.Clear();

    DateYearField fields0 = new DateYearField();
    DateLiteralField fields1 = new DateLiteralField();
    DateMonthField fields2 = new DateMonthField();
    DateLiteralField fields3 = new DateLiteralField();
    DateDayField fields4 = new DateDayField();
    DateLiteralField fields5 = new DateLiteralField();
    DateHourField fields6 = new DateHourField();
    DateLiteralField fields7 = new DateLiteralField();
    DateMinuteField fields8 = new DateMinuteField();
    DateLiteralField fields9 = new DateLiteralField();
    DateSecondField fields10 = new DateSecondField();
    fields1.Text = "/";
    fields3.Text = "/";
    fields7.Text = ":";
    fields9.Text = ":";
    gcDateTimeCell.Fields.AddRange(new DateField[]{
        fields0,fields1,fields2,fields3,fields4,fields5,fields6,fields7,fields8,fields9,fields10,
    });
}
Private Sub SetGcDateTimeCellFields(ByVal gcDateTimeCell As GcDateTimeCell)
    gcDateTimeCell.Fields.Clear()

    Dim fields0 As New DateYearField()
    Dim fields1 As New DateLiteralField()
    Dim fields2 As New DateMonthField()
    Dim fields3 As New DateLiteralField()
    Dim fields4 As New DateDayField()
    Dim fields5 As New DateLiteralField()
    Dim fields6 As New DateHourField()
    Dim fields7 As New DateLiteralField()
    Dim fields8 As New DateMinuteField()
    Dim fields9 As New DateLiteralField()
    Dim fields10 As New DateSecondField()
    fields1.Text = "/"
    fields3.Text = "/"
    fields7.Text = ":"
    fields9.Text = ":"
    gcDateTimeCell.Fields.AddRange(New DateField() {fields0, fields1, fields2, fields3, fields4, fields5, _
     fields6, fields7, fields8, fields9, fields10})
End Sub
参照

GcDateTimeCell クラス
GcDateTimeCell メンバ

 

 


© 2008-2015 GrapeCity inc. All rights reserved.