作成日: 2020/10/28 最終更新日: 2020/10/28
文書種別
使用方法
詳細
C1ScheduleのBeforeTimeFormatイベントで、開始日が今月以外である場合にイベント引数のBackgroundを設定することで、今月以外の背景色を変更することが可能です。
◎サンプルコード(VB)
◎サンプルコード(VB)
Private Sub C1Schedule1_BeforeTimeFormat(sender As Object, e As C1.Win.C1Schedule.BeforeTimeFormatEventArgs) Handles C1Schedule1.BeforeTimeFormat
If e.Start.Month <> DateTime.Today.Month Then
e.Background = Color.LightGray
End If
End Sub
◎サンプルコード(C#) private void c1Schedule1_BeforeTimeFormat(object sender, C1.Win.C1Schedule.BeforeTimeFormatEventArgs e)
{
if (e.Start.Month != DateTime.Today.Month)
{
e.Background = Color.LightGray;
}
}
関連情報
旧文書番号
86139