次の方法で共有


StatusBarPanelStyle 列挙体

StatusBar コントロール上の StatusBarPanel オブジェクトが、オーナー描画またはシステム描画のどちらであるかを指定します。

<Serializable>
Public Enum StatusBarPanelStyle
[C#]
[Serializable]
public enum StatusBarPanelStyle
[C++]
[Serializable]
__value public enum StatusBarPanelStyle
[JScript]
public
   Serializable
enum StatusBarPanelStyle

解説

この列挙体のメンバを使用して、 StatusBarPanel クラスの Style プロパティの値を設定します。Style プロパティは、 StatusBarPanel の表示方法を決定します。 StatusBarPanel オブジェクトは、単純なテキストを表示できたり、オーナー描画であったりします。オーナー描画 StatusBarPanel オブジェクトは、イメージや StatusBar コントロール上の残りの StatusBarPanel オブジェクトとは異なるフォントの表示をサポートします。一方、システム描画 StatusBarPanel オブジェクトは、テキストだけ (StatusBarPanelIcon プロパティでアイコンが指定されている場合は、テキストおよびアイコン) を表示するために使用します。オーナー描画 StatusBarPanel 上でオーナー描画操作を実行するには、 StatusBar コントロールの DrawItem イベントを使用します。

メンバ

メンバ名 説明
OwnerDraw StatusBarPanel はオーナーによって描画されます。
Text StatusBarPanel は、標準フォントでテキストを表示します。

必要条件

名前空間: System.Windows.Forms

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

アセンブリ: System.Windows.Forms (System.Windows.Forms.dll 内)

参照

System.Windows.Forms 名前空間 | StatusBarPanel | Style | StatusBar | DrawItem