次のサンプルコードは、選択単位の設定方法を示します。このサンプルコードは、
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