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

線の色を取得または設定します。
構文
Public Property LineColor As Color
public Color LineColor {get; set;}

プロパティ値

この ShapeRenderer の色を表す System.Drawing.Color 値。既定値は Color.Black です。
使用例
次のサンプルコードは、Appointment 型セルのレンダラーの使用方法を示します。このサンプルコードは、CalendarAppointmentCellType クラスに示されている詳細なコード例の一部を抜粋したものです。
void AppointmentCellDemo_Load(object sender, EventArgs e)
{
    this.gcCalendarGrid[new DateTime(2014, 1, 12)][1, 0].Value = "You have an appointment between these days.";
    this.gcCalendarGrid[new DateTime(2014, 1, 12)][1, 0].ColumnSpan = 5;

    AngleBracketShapeRenderer render = new AngleBracketShapeRenderer();
    render.ArrowLength = 15;
    render.FillColor = Color.GreenYellow;
    render.LineColor = Color.Orange;
    render.LineStyle = CalendarShapeLineStyle.Thin;
    render.LineWidth = 2;

    (this.gcCalendarGrid[DateTime.Today][1, 0].CellType as CalendarAppointmentCellType).Renderer = render;
}
Private Sub AppointmentCellDemo_Load(sender As Object, e As EventArgs)
    Me.gcCalendarGrid(New DateTime(2014, 1, 12))(1, 0).Value = "You have an appointment between these days."
    Me.gcCalendarGrid(New DateTime(2014, 1, 12))(1, 0).ColumnSpan = 5

    Dim render As New AngleBracketShapeRenderer()
    render.ArrowLength = 15
    render.FillColor = Color.GreenYellow
    render.LineColor = Color.Orange
    render.LineStyle = CalendarShapeLineStyle.Thin
    render.LineWidth = 2

    TryCast(Me.gcCalendarGrid(DateTime.Today)(1, 0).CellType, CalendarAppointmentCellType).Renderer = render
End Sub
参照

CalendarShapeRenderer クラス
CalendarShapeRenderer メンバ

 

 


© 2014 GrapeCity inc. All rights reserved.