GrapeCity.Win.CalendarGrid.v10 アセンブリ > GrapeCity.Win.CalendarGrid 名前空間 : CalendarMonthMultiColumnView クラス |
Public Class CalendarMonthMultiColumnView Inherits CalendarView
public class CalendarMonthMultiColumnView : CalendarView
private void UseMonthMultiColumnView() { CalendarMonthMultiColumnView monthView = new CalendarMonthMultiColumnView(); monthView.MonthCount = 12; monthView.MinScrollCount = 12; monthView.ColumnBreaks = new int[] { 10, 20 }; monthView.Orientation = Orientation.Vertical; this.gcCalendarGrid1.CalendarView = monthView; CalendarTemplate template = new CalendarTemplate(1, 1, 1, 0); template.ColumnHeader[0, 0].DateFormat = CalendarDateFormats.Month; template.ColumnHeader[0, 0].AutoMergeMode = AutoMergeMode.Horizontal; template.ColumnHeader[0, 0].CellStyle.Alignment = CalendarGridContentAlignment.MiddleCenter; template.Content.Columns[0].Width = 30; template.Content[0, 0].DateFormat = CalendarDateFormats.Day; this.gcCalendarGrid1.Template = template; this.gcCalendarGrid1.FirstDateInView = new DateTime(DateTime.Today.Year, 1, 1); }
Private Sub UseMonthMultiColumnView() Dim monthView As New CalendarMonthMultiColumnView() monthView.MonthCount = 12 monthView.MinScrollCount = 12 monthView.ColumnBreaks = New Integer() {10, 20} monthView.Orientation = Orientation.Vertical Me.gcCalendarGrid1.CalendarView = monthView Dim template As New CalendarTemplate(1, 1, 1, 0) template.ColumnHeader(0, 0).DateFormat = CalendarDateFormats.Month template.ColumnHeader(0, 0).AutoMergeMode = AutoMergeMode.Horizontal template.ColumnHeader(0, 0).CellStyle.Alignment = CalendarGridContentAlignment.MiddleCenter template.Content.Columns(0).Width = 30 template.Content(0, 0).DateFormat = CalendarDateFormats.Day Me.gcCalendarGrid1.Template = template Me.gcCalendarGrid1.FirstDateInView = New DateTime(DateTime.Today.Year, 1, 1) End Sub
System.Object
GrapeCity.Win.CalendarGrid.CalendarView
GrapeCity.Win.CalendarGrid.CalendarMonthMultiColumnView