HScrollBar クラスとは? わかりやすく解説

HScrollBar クラス

標準Windows スクロール バー表します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
<ComVisibleAttribute(True)> _
Public Class HScrollBar
    Inherits ScrollBar
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] 
[ComVisibleAttribute(true)] 
public class HScrollBar : ScrollBar
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] 
[ComVisibleAttribute(true)] 
public ref class HScrollBar : public
 ScrollBar
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ 
/** @attribute ComVisibleAttribute(true) */ 
public class HScrollBar extends ScrollBar
ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) 
ComVisibleAttribute(true) 
public class HScrollBar extends
 ScrollBar
解説解説
使用例使用例

HScrollBar作成および初期化しForm追加する例を次に示します

Private Sub InitializeMyScrollBar()
    ' Create and initialize an HScrollBar.
    Dim hScrollBar1 As New
 HScrollBar()
    
    ' Dock the scroll bar to the bottom of the form.
    hScrollBar1.Dock = DockStyle.Bottom
    
    ' Add the scroll bar to the form.
    Controls.Add(hScrollBar1)
End Sub 'InitializeMyScrollBar
private void InitializeMyScrollBar()
 {
    // Create and initialize an HScrollBar.
    HScrollBar hScrollBar1 = new HScrollBar();
    
    // Dock the scroll bar to the bottom of the form.
    hScrollBar1.Dock = DockStyle.Bottom;
    
    // Add the scroll bar to the form.
    Controls.Add(hScrollBar1);
 }
    
private:
   void InitializeMyScrollBar()
   {
      // Create and initialize an HScrollBar.
      HScrollBar^ hScrollBar1 = gcnew HScrollBar;
      
      // Dock the scroll bar to the bottom of the form.
      hScrollBar1->Dock = DockStyle::Bottom;
      
      // Add the scroll bar to the form.
      Controls->Add( hScrollBar1 );
   }
private void InitializeMyScrollBar()
{
    // Create and initialize an HScrollBar.
    HScrollBar hScrollBar1 = new HScrollBar();

    // Dock the scroll bar to the bottom of the form.
    hScrollBar1.set_Dock(DockStyle.Bottom);

    // Add the scroll bar to the form.
    get_Controls().Add(hScrollBar1);
} //InitializeMyScrollBar
function InitializeMyScrollBar(){
    // Create and initialize an HScrollBar.
    var hScrollBar1 : HScrollBar = new HScrollBar()
    
    // Dock the scroll bar to the bottom of the form.
    hScrollBar1.Dock = DockStyle.Bottom
    
    // Add the scroll bar to the form.
    Controls.Add(hScrollBar1)
}
継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
       System.Windows.Forms.Control
         System.Windows.Forms.ScrollBar
          System.Windows.Forms.HScrollBar
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「HScrollBar クラス」の関連用語

HScrollBar クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HScrollBar クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS