作成日: 2018/08/17 最終更新日: 2018/08/17
文書種別
使用方法
詳細
C1Scheduleでは、BeforeAppointmentFormatイベントのe.Textにhtmlタグを指定することが可能です。ここで、style属性として任意の色を指定することで、予定のラベルに示される件名の色を設定できます。
以下は、件名を赤で表示するサンプルです。
◎サンプルコード(VB)
◎サンプルコード(C#)
以下は、件名を赤で表示するサンプルです。
◎サンプルコード(VB)
Private Sub C1Schedule1_BeforeAppointmentFormat(sender As Object, e As C1.Win.C1Schedule.BeforeAppointmentFormatEventArgs) Handles C1Schedule1.BeforeAppointmentFormat
If e.Appointment IsNot Nothing Then
e.Text = "<p style='color:red'>" + e.Text + "</p>"
End If
End Sub
If e.Appointment IsNot Nothing Then
e.Text = "<p style='color:red'>" + e.Text + "</p>"
End If
End Sub
◎サンプルコード(C#)
private void c1Schedule1_BeforeAppointmentFormat(object sender, BeforeAppointmentFormatEventArgs e)
{
if (e.Appointment != null)
{
e.Text = "<p style='color:red'>" + e.Text + "</p>";
}
}
{
if (e.Appointment != null)
{
e.Text = "<p style='color:red'>" + e.Text + "</p>";
}
}
旧文書番号
83134