日付またはセルが選択または選択解除されたときに発生します。
構文
次のサンプルコードは、選択されているセルを表示します。このサンプルコードは、
GcCalendarGrid.SelectionMode プロパティに示されている詳細なコード例の一部を抜粋したものです。
void gcCalendarGrid_SelectionChanged(object sender, EventArgs e)
{
this.Text = "Selected cell count: " + this.gcCalendarGrid.SelectedCells.Count;
this.Text += " Selected dates count: " + this.gcCalendarGrid.SelectedDates.Count;
}
Private Sub gcCalendarGrid_SelectionChanged(sender As Object, e As EventArgs)
Me.Text = "Selected cell count: " + Me.gcCalendarGrid.SelectedCells.Count
Me.Text += " Selected dates count: " + Me.gcCalendarGrid.SelectedDates.Count
End Sub