ListBox.SetBoundsCore メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Protected Overrides Sub SetBoundsCore ( _ x As Integer, _ y As Integer, _ width As Integer, _ height As Integer, _ specified As BoundsSpecified _ )
Dim x As Integer Dim y As Integer Dim width As Integer Dim height As Integer Dim specified As BoundsSpecified Me.SetBoundsCore(x, y, width, height, specified)
protected override void SetBoundsCore ( int x, int y, int width, int height, BoundsSpecified specified )
protected: virtual void SetBoundsCore ( int x, int y, int width, int height, BoundsSpecified specified ) override
protected override function SetBoundsCore ( x : int, y : int, width : int, height : int, specified : BoundsSpecified )

ListBox コントロールの高さは、ItemHeight プロパティの倍数分だけ増減します。高さが ItemHeight の倍数でない数値の場合、ListBox の高さは、高さ未満の最大の倍数分だけ変化します。
通常、指定したパラメータに含まれない境界に対応するパラメータは、現在の値で渡されます。たとえば、Location プロパティの height または width、あるいは x または y の各プロパティは、コントロールの現在のインスタンスに参照渡しできます。ただし、渡されたすべての値は有効で、コントロールに適用されます。
specified パラメータは、アプリケーションによって変更された Bounds コントロールの要素を表します。たとえば、コントロールの Size を変更した場合、specified パラメータ値は Size になります。ただし、設定されている Dock プロパティに応じて Size が調整される場合、specified パラメータ値は None になります。
継承時の注意 派生クラスで SetBoundsCore をオーバーライドする場合は、基本クラスの SetBoundsCore メソッドを呼び出して、強制的にコントロールの境界を変更してください。派生クラスでは、SetBoundsCore メソッドにサイズの制限を追加できます。
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からListBox.SetBoundsCore メソッドを検索する場合は、下記のリンクをクリックしてください。

- ListBox.SetBoundsCore メソッドのページへのリンク