プロパティ値
CalendarCell のパターン効果を示す
PatternEffect 値。既定値は null 参照 (Visual Basicでは
Nothing) です。
次のサンプルコードは、このプロパティを使用してセルの外観をカスタマイズする方法を示します。このサンプルコードは、
CalendarCellStyle クラスに示されている詳細なコード例の一部を抜粋したものです。
private void SetAppearanceProperty()
{
this.gcCalendarGrid1.Template.Content.GetCell(2, 0).Value = "SampleText";
this.gcCalendarGrid1.Template.Content.GetCell(2, 0).CellStyle.BackColor = Color.SkyBlue;
this.gcCalendarGrid1.Template.Content.GetCell(2, 0).CellStyle.ForeColor = Color.SaddleBrown;
this.gcCalendarGrid1.Template.Content.GetCell(2, 0).CellStyle.Alignment = CalendarGridContentAlignment.MiddleCenter;
this.gcCalendarGrid1.Template.Content.GetCell(2, 0).CellStyle.PatternEffect = new CalendarPatternEffect(CalendarPatternStyle.DottedGrid, Color.Red);
}
Private Sub SetAppearanceProperty()
Me.gcCalendarGrid1.Template.Content.GetCell(2, 0).Value = "SampleText"
Me.gcCalendarGrid1.Template.Content.GetCell(2, 0).CellStyle.BackColor = Color.SkyBlue
Me.gcCalendarGrid1.Template.Content.GetCell(2, 0).CellStyle.ForeColor = Color.SaddleBrown
Me.gcCalendarGrid1.Template.Content.GetCell(2, 0).CellStyle.Alignment = CalendarGridContentAlignment.MiddleCenter
Me.gcCalendarGrid1.Template.Content.GetCell(2, 0).CellStyle.PatternEffect = New CalendarPatternEffect(CalendarPatternStyle.DottedGrid, Color.Red)
End Sub