'宣言 Public Property CalendarAlign As ContentAlignment
public ContentAlignment CalendarAlign {get; set;}
ResizeMode プロパティが BaseOnControlSize に設定されると、コントロールの表示される領域内に月を配置する方法を決定するために、CalendarAlign プロパティが使用されます。
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti Private Sub OptimizeDisplay() ' Set the ResizeMode property to BaseOnControlSize, so the control ' displays as many months as can be fit into the available space. Me.ultraMonthViewMulti1.ResizeMode = ResizeMode.BaseOnControlSize ' Align the calendar(s) with the top-left edge of the control Me.ultraMonthViewMulti1.CalendarAlign = ContentAlignment.TopLeft End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.MonthViewMulti; private void OptimizeDisplay() { // Set the ResizeMode property to BaseOnControlSize, so the control // displays as many months as can be fit into the available space. this.ultraMonthViewMulti1.ResizeMode = ResizeMode.BaseOnControlSize; // Align the calendar(s) with the top-left edge of the control this.ultraMonthViewMulti1.CalendarAlign = ContentAlignment.TopLeft; }