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

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

プロパティ値

GcTimeSpan内の項目を表すTimeSpanFieldCollection
使用例
以下は入力フィールドを追加するサンプルコードです。このコードは GcTimeSpanCell のサンプルコードの一部です。
private void SetGcTimeSpanCellFields(GcTimeSpanCell gcTimeSpanCell1)
{
    gcTimeSpanCell1.Fields.Clear();

    TimeSpanSignField fields0 = new TimeSpanSignField();
    TimeSpanDayField fields1 = new TimeSpanDayField();
    fields1.Digits = 1;
    TimeSpanLiteralField fields2 = new TimeSpanLiteralField();
    fields2.Text = ".";
    TimeSpanHourField fields3 = new TimeSpanHourField();
    fields3.Digits = 2;
    TimeSpanLiteralField fields4 = new TimeSpanLiteralField();
    fields4.Text = ":";
    TimeSpanMinuteField fields5 = new TimeSpanMinuteField();
    fields5.Digits = 2;
    TimeSpanLiteralField fields6 = new TimeSpanLiteralField();
    fields6.Text = ":";
    TimeSpanSecondField fields7 = new TimeSpanSecondField();
    fields7.Digits = 2;

    gcTimeSpanCell1.Fields.AddRange(new TimeSpanField[] { fields0, fields1, fields2, fields3, fields4, fields5, fields6, fields7 });
}
Private Sub SetGcTimeSpanCellFields(ByVal gcTimeSpanCell1 As GcTimeSpanCell)
    gcTimeSpanCell1.Fields.Clear()

    Dim fields0 As New TimeSpanSignField()
    Dim fields1 As New TimeSpanDayField()
    fields1.Digits = 1
    Dim fields2 As New TimeSpanLiteralField()
    fields2.Text = "."
    Dim fields3 As New TimeSpanHourField()
    fields3.Digits = 2
    Dim fields4 As New TimeSpanLiteralField()
    fields4.Text = ":"
    Dim fields5 As New TimeSpanMinuteField()
    fields5.Digits = 2
    Dim fields6 As New TimeSpanLiteralField()
    fields6.Text = ":"
    Dim fields7 As New TimeSpanSecondField()
    fields7.Digits = 2

    gcTimeSpanCell1.Fields.AddRange(New TimeSpanField() {fields0, fields1, fields2, fields3, fields4, fields5, _
     fields6, fields7})
End Sub
参照

GcTimeSpanCell クラス
GcTimeSpanCell メンバ

 

 


© 2008-2015 GrapeCity inc. All rights reserved.