GroupBoxRenderer.RenderMatchingApplicationState プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > GroupBoxRenderer.RenderMatchingApplicationState プロパティの意味・解説 

GroupBoxRenderer.RenderMatchingApplicationState プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

レンダラアプリケーション状態に応じて描画スタイル決定するかどうかを示す値を取得または設定します

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

Public Shared Property RenderMatchingApplicationState
 As Boolean
Dim value As Boolean

value = GroupBoxRenderer.RenderMatchingApplicationState

GroupBoxRenderer.RenderMatchingApplicationState = value
public static bool RenderMatchingApplicationState
 { get; set; }
public:
static property bool RenderMatchingApplicationState
 {
    bool get ();
    void set (bool value);
}
/** @property */
public static boolean get_RenderMatchingApplicationState
 ()

/** @property */
public static void set_RenderMatchingApplicationState
 (boolean value)
public static function get
 RenderMatchingApplicationState () : boolean

public static function set
 RenderMatchingApplicationState (value : boolean)

プロパティ
アプリケーション状態に応じて描画スタイル決定する場合trueそれ以外場合false既定値true です。

解説解説

RenderMatchingApplicationStatetrue場合、GroupBoxRenderer は Application.RenderWithVisualStyles の設定に応じて描画スタイル決定しますRenderMatchingApplicationStatefalse場合レンダラは常に visual スタイル使用して描画ます。

使用例使用例

RenderMatchingApplicationState プロパティ使用してグループ ボックスvisual スタイル使用して描画されるかどうか変更するコード例次に示します。このコード例は、GroupBoxRenderer クラストピック取り上げているコード例一部分です。

' Match application style and toggle visual styles off
' and on for the application.
Private Sub button1_Click(ByVal
 sender As Object, ByVal
 e As EventArgs) _
    Handles button1.Click

    GroupBoxRenderer.RenderMatchingApplicationState = True

    Application.VisualStyleState = _
        Application.VisualStyleState Xor _
        VisualStyleState.ClientAndNonClientAreasEnabled

    If Application.RenderWithVisualStyles Then
        Me.Text = "Visual Styles Enabled"
    Else
        Me.Text = "Visual Styles Disabled"
    End If

End Sub
// Match application style and toggle visual styles off
// and on for the application.
    private void button1_Click(object sender,
 EventArgs e)
    {
        GroupBoxRenderer.RenderMatchingApplicationState = true;
        Application.VisualStyleState = 
            Application.VisualStyleState ^ 
            VisualStyleState.ClientAndNonClientAreasEnabled;

      
        if (Application.RenderWithVisualStyles)
            this.Text = "Visual Styles Enabled";
        else
            this.Text = "Visual Styles Disabled";
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

「GroupBoxRenderer.RenderMatchingApplicationState プロパティ」の関連用語

GroupBoxRenderer.RenderMatchingApplicationState プロパティのお隣キーワード
検索ランキング

   

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



GroupBoxRenderer.RenderMatchingApplicationState プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS