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

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

RadioButtonRenderer.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 = RadioButtonRenderer.RenderMatchingApplicationState

RadioButtonRenderer.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 です。

解説解説

RenderMatchingApplicationState プロパティtrue場合、RadioButtonRenderer は Application.RenderWithVisualStyles プロパティ設定使用してレンダリング スタイル決定しますRenderMatchingApplicationStatefalse場合レンダラは常に visual スタイル使用して描画ます。

使用例使用例

RenderMatchingApplicationState プロパティ使用してアプリケーション状態に応じて描画スタイル変更するコード例次に示します。このコード例は、RadioButtonRenderer クラストピック取り上げているコード例一部分です。

' 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

    RadioButtonRenderer.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
private void button1_Click(object sender, EventArgs
 e)
{
    Application.VisualStyleState =
        Application.VisualStyleState ^
        VisualStyleState.ClientAndNonClientAreasEnabled;

    GroupBoxRenderer.RenderMatchingApplicationState = true;
    if (Application.RenderWithVisualStyles)
        this.Text = "Visual Styles Enabled";
    else
        this.Text = "Visual Styles Disabled";
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RadioButtonRenderer クラス
RadioButtonRenderer メンバ
System.Windows.Forms 名前空間



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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS