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

ScrollableControl クラス

自動スクロール動作サポートするコントロール基本クラス定義します

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

<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
Public Class ScrollableControl
    Inherits Control
    Implements IComponent, IDisposable
Dim instance As ScrollableControl
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] 
public class ScrollableControl : Control, IComponent,
 IDisposable
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] 
public ref class ScrollableControl : public
 Control, IComponent, IDisposable
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ 
public class ScrollableControl extends Control
 implements IComponent, IDisposable
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) 
public class ScrollableControl extends
 Control implements IComponent, IDisposable
解説解説

通常ScrollableControl クラス直接使用することはありません。このクラスから ContainerControl クラスPanel クラス継承されます。

ScrollableControl クラスは、スクロール機能必要なコントロール基本クラスとして動作しますコントロール必要に応じてスクロール バー表示できるようにするには、AutoScroll プロパティtrue設定し、AutoScrollMinSize プロパティ希望サイズ設定しますコントロールサイズ指定した最小値より小さサイズ調整され場合、または子コントロールコントロール範囲外置かれ場合適切なスクロール バー表示されます。

表示するスクロール バー手動オーバーライドするには、VScroll プロパティと HScroll プロパティ設定しますどちらかプロパティfalse設定すると、AutoScroll プロパティtrue設定しても、該当スクロール バー表示されません。

Scroll イベント処理すると、ユーザーまたはコードによってクライアント領域スクロールされたときに、そのこと検知できます

スクロール可能なコントロールコントロール追加する場合は、AutoScrollPosition の x 座標y 座標を、追加するコントロールLocation プロパティ対応する座標からのオフセットとして加算するか、減算する必要がありますスクロール位置の上または左にコントロール追加する場合は、このオフセット目的位置加算する必要があります逆にスクロール位置の下または右にコントロール追加する場合は、オフセット減算する必要があります

継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
       System.Windows.Forms.Control
        System.Windows.Forms.ScrollableControl
           System.Windows.Forms.ContainerControl
           System.Windows.Forms.Design.ComponentTray
           System.Windows.Forms.Panel
           System.Windows.Forms.ToolStrip
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からScrollableControl クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からScrollableControl クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からScrollableControl クラス を検索

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

辞書ショートカット

すべての辞書の索引

「ScrollableControl クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS