VisualStyleElement.ComboBox.DropDownButtonとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > VisualStyleElement.ComboBox.DropDownButtonの意味・解説 

VisualStyleElement.ComboBox.DropDownButton クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

コンボ ボックス コントロールにあるドロップダウン矢印のさまざまな状態用の VisualStyleElement オブジェクトを提供します。このクラスは継承できません。

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

解説解説

VisualStyleElement.ComboBox.DropDownButton クラスのそれぞれのプロパティが、コンボ ボックス コントロールにあるドロップダウン矢印のさまざまな状態用に VisualStyleElement を返します。

Windows XP Home Edition, Windows XP Professional x64 Edition, Windows Server 2003 プラットフォームメモ : visual スタイルは、これらのプラットフォームでのみサポートされます。

使用例使用例

次のコード例は、Hot プロパティから返された VisualStyleElement を使用して VisualStyleRenderer を作成する方法を示しています。この例を実行するには、コードを Windows フォームに貼り付けます。フォームの Paint イベントを処理し、e を PaintEventArgs として渡して、Paint イベント処理メソッドから DrawVisualStyleElement_Button_DropDownButton2 メソッドを呼び出します。

Public Sub DrawVisualStyleElement_ComboBox_DropDownButton2(ByVal
 e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.ComboBox.DropDownButton.Hot)) Then
        Dim renderer As New
 VisualStyleRenderer _
          (VisualStyleElement.ComboBox.DropDownButton.Hot)
        Dim rectangle1 As New
 Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.ComboBox.DropDownButton.Hot",
 _
          Me.Font, Brushes.Black, New Point(10,
 10))
    Else
        e.Graphics.DrawString("This element is not defined in
 the current visual style.", _
          Me.Font, Brushes.Black, New Point(10,
 10))
    End If
End Sub
public void DrawVisualStyleElement_ComboBox_DropDownButton2(PaintEventArgs
 e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.ComboBox.DropDownButton.Hot))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.ComboBox.DropDownButton.Hot);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.ComboBox.DropDownButton.Hot"
,
             this.Font, Brushes.Black, new
 Point(10, 10));
    }
    else
        e.Graphics.DrawString("This element is not defined in
 the current visual style.",
             this.Font, Brushes.Black, new
 Point(10, 10));
}
継承階層継承階層
System.Object
  System.Windows.Forms.VisualStyles.VisualStyleElement.ComboBox.DropDownButton
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
VisualStyleElement.ComboBox.DropDownButton メンバ
System.Windows.Forms.VisualStyles 名前空間
VisualStyleElement クラス
VisualStyleRenderer

VisualStyleElement.ComboBox.DropDownButton プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Disabled 無効の状態のドロップダウン矢印を表す visual スタイル要素を取得します。
パブリック プロパティ Hot ホットな状態のドロップダウン矢印を表す visual スタイル要素を取得します。
パブリック プロパティ Normal 通常の状態のドロップダウン矢印を表す visual スタイル要素を取得します。
パブリック プロパティ Pressed 押された状態のドロップダウン矢印を表す visual スタイル要素を取得します。
参照参照

関連項目

VisualStyleElement.ComboBox.DropDownButton クラス
System.Windows.Forms.VisualStyles 名前空間
VisualStyleElement クラス
VisualStyleRenderer

VisualStyleElement.ComboBox.DropDownButton メソッド


VisualStyleElement.ComboBox.DropDownButton メンバ

コンボ ボックス コントロールにあるドロップダウン矢印のさまざまな状態用の VisualStyleElement オブジェクトを提供します。このクラスは継承できません。

VisualStyleElement.ComboBox.DropDownButton データ型で公開されるメンバを以下の表に示します。


パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Disabled 無効の状態のドロップダウン矢印を表す visual スタイル要素を取得します。
パブリック プロパティ Hot ホットな状態のドロップダウン矢印を表す visual スタイル要素を取得します。
パブリック プロパティ Normal 通常の状態のドロップダウン矢印を表す visual スタイル要素を取得します。
パブリック プロパティ Pressed 押された状態のドロップダウン矢印を表す visual スタイル要素を取得します。
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

VisualStyleElement.ComboBox.DropDownButton クラス
System.Windows.Forms.VisualStyles 名前空間
VisualStyleElement クラス
VisualStyleRenderer



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「VisualStyleElement.ComboBox.DropDownButton」の関連用語

VisualStyleElement.ComboBox.DropDownButtonのお隣キーワード
検索ランキング

   

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



VisualStyleElement.ComboBox.DropDownButtonのページの著作権

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

©2026 GRAS Group, Inc.RSS