GrapeCity CalendarGrid for Windows Forms 2.0J
FillColor プロパティ
使用例 

シェイプの塗りつぶし色を取得または設定します。
構文
Public Property FillColor As Color
public Color FillColor {get; set;}

プロパティ値

CalendarShapeRenderer のシェイプ塗りつぶし色を表す System.Drawing.Color 値。既定値は System.Drawing.SystemColors.ActiveCaption です。
使用例
次のサンプルコードは、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 メンバ

 

 


c 2008 GrapeCity inc. All rights reserved.