VScrollBar クラス
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文
<ComVisibleAttribute(True)> _ <ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _ Public Class VScrollBar Inherits ScrollBar
[ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] public class VScrollBar : ScrollBar
[ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] public ref class VScrollBar : public ScrollBar
スクロール バーが必要な多くのコントロールには、既にスクロール バーが付いているため、このコントロールは必要ありません。スクロール バーが付いているコントロールには、複数行 TextBox コントロール、ListBox、ComboBox などがあります。
このコントロールを使用して、PictureBox などの固有のスクロール バーが付いていないコンテナや、数値データのユーザー入力にスクロール機能を実装できます。数値データは、コントロールに表示したり、コードで利用したりできます。Minimum プロパティおよび Maximum プロパティは、ユーザーが選択できる値の範囲を決定します。LargeChange プロパティは、スクロール ボックスの外側でスクロール バーの内側をクリックするときの効果を決定します。SmallChange プロパティは、コントロールの各終端でスクロール バーの矢印ボタンをクリックするときの効果を決定します。
VScrollBar を作成および初期化し、Form に追加する例を次に示します。
Private Sub InitializeMyScrollBar() ' Create and initialize a VScrollBar. Dim vScrollBar1 As New VScrollBar() ' Dock the scroll bar to the right side of the form. vScrollBar1.Dock = DockStyle.Right ' Add the scroll bar to the form. Controls.Add(vScrollBar1) End Sub
private void InitializeMyScrollBar() { // Create and initialize a VScrollBar. VScrollBar vScrollBar1 = new VScrollBar(); // Dock the scroll bar to the right side of the form. vScrollBar1.Dock = DockStyle.Right; // Add the scroll bar to the form. Controls.Add(vScrollBar1); }
private: void InitializeMyScrollBar() { // Create and initialize a VScrollBar. VScrollBar^ vScrollBar1 = gcnew VScrollBar; // Dock the scroll bar to the right side of the form. vScrollBar1->Dock = DockStyle::Right; // Add the scroll bar to the form. Controls->Add( vScrollBar1 ); }
private void InitializeMyScrollBar() { // Create and initialize a VScrollBar. VScrollBar vScrollBar1 = new VScrollBar(); // Dock the scroll bar to the right side of the form. vScrollBar1.set_Dock(DockStyle.Right); // Add the scroll bar to the form. get_Controls().Add(vScrollBar1); } //InitializeMyScrollBar
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollBar
System.Windows.Forms.VScrollBar
プラットフォーム
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
Weblioに収録されているすべての辞書からVScrollBar クラスを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からVScrollBar クラス を検索
- VScrollBar クラスのページへのリンク