プロパティ値
CalendarCell の上罫線を示す
CalendarBorderLine 値。既定値は null 参照 (Visual Basicでは
Nothing) です。
次のサンプルコードは、このプロパティを使用してセルの外観をカスタマイズする方法を示します。このサンプルコードは、
CalendarCellStyle クラスに示されている詳細なコード例の一部を抜粋したものです。
private void SetBorder()
{
this.gcCalendarGrid1.Template.Content.CellStyle.BottomBorder = new CalendarBorderLine(Color.Salmon, BorderLineStyle.DashDotDot);
this.gcCalendarGrid1.Template.Content.CellStyle.TopBorder = new CalendarBorderLine(Color.Salmon, BorderLineStyle.DashDotDot);
this.gcCalendarGrid1.Template.Content.CellStyle.RightBorder = new CalendarBorderLine(Color.SlateBlue, BorderLineStyle.Double);
this.gcCalendarGrid1.Template.Content.CellStyle.LeftBorder = new CalendarBorderLine(Color.SlateBlue, BorderLineStyle.Double);
}
Private Sub SetBorder()
Me.gcCalendarGrid1.Template.Content.CellStyle.BottomBorder = New CalendarBorderLine(Color.Salmon, BorderLineStyle.DashDotDot)
Me.gcCalendarGrid1.Template.Content.CellStyle.TopBorder = New CalendarBorderLine(Color.Salmon, BorderLineStyle.DashDotDot)
Me.gcCalendarGrid1.Template.Content.CellStyle.RightBorder = New CalendarBorderLine(Color.SlateBlue, BorderLineStyle.[Double])
Me.gcCalendarGrid1.Template.Content.CellStyle.LeftBorder = New CalendarBorderLine(Color.SlateBlue, BorderLineStyle.[Double])
End Sub