GrapeCity.Win.CalendarGrid.v10 アセンブリ > GrapeCity.Win.CalendarGrid 名前空間 : CalendarListView クラス |
Public Class CalendarListView Inherits CalendarView
public class CalendarListView : CalendarView
private void UseListView() { CalendarListView listView = new CalendarListView(); listView.DayCount = 100; listView.DateAlignment = DateAlignment.Month; this.gcCalendarGrid1.CalendarView = listView; CalendarTemplate template = new CalendarTemplate(20, 1, 2, 1); template.ColumnHeader.CellStyle.Alignment = CalendarGridContentAlignment.MiddleCenter; template.ColumnHeader[0, 0].DateFormat = CalendarDateFormats.Month; template.ColumnHeader[0, 0].AutoMergeMode = AutoMergeMode.Horizontal; template.ColumnHeader[0, 0].AllowContentFloat = true; template.ColumnHeader[1, 0].DateFormat = CalendarDateFormats.Day; template.RowHeader.Columns[0].Width = 30; template.Content.Columns[0].Width = 30; this.gcCalendarGrid1.Template = template; }
Private Sub UseListView() Dim listView As New CalendarListView() listView.DayCount = 100 listView.DateAlignment = DateAlignment.Month Me.gcCalendarGrid1.CalendarView = listView Dim template As New CalendarTemplate(20, 1, 2, 1) template.ColumnHeader.CellStyle.Alignment = CalendarGridContentAlignment.MiddleCenter template.ColumnHeader(0, 0).DateFormat = CalendarDateFormats.Month template.ColumnHeader(0, 0).AutoMergeMode = AutoMergeMode.Horizontal template.ColumnHeader(0, 0).AllowContentFloat = True template.ColumnHeader(1, 0).DateFormat = CalendarDateFormats.Day template.RowHeader.Columns(0).Width = 30 template.Content.Columns(0).Width = 30 Me.gcCalendarGrid1.Template = template End Sub
System.Object
GrapeCity.Win.CalendarGrid.CalendarView
GrapeCity.Win.CalendarGrid.CalendarListView