表示する月の列数および行数を設定します。
名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文
'宣言
Public Sub SetCalendarDimensions ( _
x As Integer, _
y As Integer _
)
'使用
Dim instance As MonthCalendar
Dim x As Integer
Dim y As Integer
instance.SetCalendarDimensions(x, y)
public void SetCalendarDimensions (
int x,
int y
)
public:
void SetCalendarDimensions (
int x,
int y
)
public void SetCalendarDimensions (
int x,
int y
)
public function SetCalendarDimensions (
x : int,
y : int
)
パラメータ
- x
列の番号。
- y
行の番号。
例外
| 例外の種類 | 条件 |
|---|---|
x または y が 1 未満です。 |
解説
表示できる月数の最大値は 12 で、1 暦年に制限されています。x パラメータと y パラメータの積は 12 以下である必要があります。x と y の値の積が 12 を超える場合は、積が 12 以下になるまで、x 値と y 値のうち大きい方の値が繰り返して減らされます。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0
参照
関連項目
MonthCalendar クラス
MonthCalendar メンバ
System.Windows.Forms 名前空間
CalendarDimensions