MonthCalendar.SetCalendarDimensions(Int32, Int32) 方法

定義

設定顯示之月份的行和列數。

public:
 void SetCalendarDimensions(int x, int y);
public void SetCalendarDimensions (int x, int y);
member this.SetCalendarDimensions : int * int -> unit
Public Sub SetCalendarDimensions (x As Integer, y As Integer)

參數

x
Int32

行數。

y
Int32

列的數目。

例外狀況

xy 小於 1。

備註

您可以顯示的月數上限為 12,限制為一個日曆年度。 和 y 參數的乘 x 積應該是 12 或更少。 對於 具有大於 12 乘積的 和 yx ,在產品為 12 或更少之前, x 將會反復減少 和 值的和 y 值。

適用於

另請參閱