PowerTools CalendarGrid for Windows Forms 1.0J
SelectionUnit プロパティ
使用例 

GcCalendarGrid コントロールの選択単位を取得または設定します。
構文
Public Property SelectionUnit As SelectionUnit
public SelectionUnit SelectionUnit {get; set;}

プロパティ値

SelectionUnit 値の 1 つ。既定値は CalendarGrid.SelectionUnit.Cell です。
使用例
次のサンプルコードは、選択単位の設定方法を示します。このサンプルコードは、GcCalendarGrid.SelectionMode プロパティに示されている詳細なコード例の一部を抜粋したものです。
void selectionUnitComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
    this.gcCalendarGrid.SelectionUnit = (SelectionUnit)selectionUnitComboBox.SelectedItem;
}
Private Sub selectionUnitComboBox_SelectedIndexChanged(sender As Object, e As EventArgs)
    Me.gcCalendarGrid.SelectionUnit = DirectCast(selectionUnitComboBox.SelectedItem, SelectionUnit)
End Sub
参照

GcCalendarGrid クラス
GcCalendarGrid メンバ

 

 


© 2014 GrapeCity inc. All rights reserved.