VisualStyleElement.MenuBand.NewApplicationButton クラス
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)


VisualStyleElement.MenuBand.NewApplicationButton クラスのそれぞれのプロパティが、メニュー バンドの新しいアプリケーション ボタンのさまざまな状態用の VisualStyleElement を返します。
Windows XP Home Edition, Windows XP Professional x64 Edition, Windows Server 2003 プラットフォームメモ : visual スタイルは、これらのプラットフォームでのみサポートされます。

次のコード例は、Normal プロパティから返された VisualStyleElement を使用して VisualStyleRenderer を作成する方法を示しています。この例を実行するには、コードを Windows フォームに貼り付けます。フォームの Paint イベントを処理し、e を PaintEventArgs として渡して、Paint イベント処理メソッドから DrawVisualStyleElementMenuBandNewApplicationButton1 メソッドを呼び出します。
Public Sub DrawVisualStyleElementMenuBandNewApplicationButton1(ByVal e As PaintEventArgs) If (VisualStyleRenderer.IsElementDefined( _ VisualStyleElement.MenuBand.NewApplicationButton.Normal)) Then Dim renderer As New VisualStyleRenderer _ (VisualStyleElement.MenuBand.NewApplicationButton.Normal) Dim rectangle1 As New Rectangle(10, 50, 50, 50) renderer.DrawBackground(e.Graphics, rectangle1) e.Graphics.DrawString("VisualStyleElement.MenuBand.NewApplicationButton.Normal", _ 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 DrawVisualStyleElementMenuBandNewApplicationButton1(PaintEventArgs e) { if (VisualStyleRenderer.IsElementDefined( VisualStyleElement.MenuBand.NewApplicationButton.Normal)) { VisualStyleRenderer renderer = new VisualStyleRenderer(VisualStyleElement.MenuBand.NewApplicationButton.Normal); Rectangle rectangle1 = new Rectangle(10, 50, 50, 50); renderer.DrawBackground(e.Graphics, rectangle1); e.Graphics.DrawString("VisualStyleElement.MenuBand.NewApplicationButton.Normal" , 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.Windows.Forms.VisualStyles.VisualStyleElement.MenuBand.NewApplicationButton


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からVisualStyleElement.MenuBand.NewApplicationButton クラスを検索する場合は、下記のリンクをクリックしてください。

- VisualStyleElement.MenuBand.NewApplicationButton クラスのページへのリンク