PowerTools CalendarGrid for Windows Forms 1.0J
LeftBorder プロパティ
使用例 

CalendarCell の左罫線を取得または設定します。
構文
Public Property LeftBorder As Nullable(Of CalendarBorderLine)
public Nullable<CalendarBorderLine> LeftBorder {get; set;}

プロパティ値

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
参照

CalendarCellStyle クラス
CalendarCellStyle メンバ

 

 


© 2014 GrapeCity inc. All rights reserved.