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

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

TextBoxRenderer.IsSupported プロパティ

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

visual スタイル使用してテキスト ボックス描画するために TextBoxRenderer クラス使用できるかどうかを示す値を取得します

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

解説解説

このプロパティfalse場合、DrawTextBox メソッドは InvalidOperationException をスローます。

使用例使用例

IsSupported プロパティ使用してDrawTextBox メソッド使用するかどうか判断するコード例次に示します。このコード例は、TextBoxRenderer クラストピック取り上げているコード例一部分です。

' Use DrawText with the current TextFormatFlags.
Protected Overrides Sub
 OnPaint(ByVal e As PaintEventArgs)
    MyBase.OnPaint(e)

    If TextBoxRenderer.IsSupported Then
        TextBoxRenderer.DrawTextBox(e.Graphics, textBorder, Me.Text,
 _
            Me.Font, textRectangle, textFlags, TextBoxState.Normal)
        Me.Parent.Text = "CustomTextBox Enabled"
    Else
        Me.Parent.Text = "CustomTextBox Disabled"
    End If
End Sub
// Use DrawText with the current TextFormatFlags.
protected override void OnPaint(PaintEventArgs
 e)
{
    base.OnPaint(e);

    if (TextBoxRenderer.IsSupported)
    {
        TextBoxRenderer.DrawTextBox(e.Graphics, textBorder, this.Text
,
            this.Font, textRectangle, textFlags, TextBoxState.Normal);

        this.Parent.Text = "CustomTextBox Enabled";
    }
    else
    {
        this.Parent.Text = "CustomTextBox Disabled";
    }
}
    // Use DrawText with the current TextFormatFlags.

protected:
    virtual void OnPaint(PaintEventArgs^ e) override
    {
        __super::OnPaint(e);

        if (TextBoxRenderer::IsSupported)
        {
            TextBoxRenderer::DrawTextBox(e->Graphics, textBorder, this->Text
,
                this->Font, textRectangle, textFlags, TextBoxState::Normal);

            this->Parent->Text = "CustomTextBox Enabled";
        }
        else
        {
            this->Parent->Text = "CustomTextBox Disabled";
        }
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TextBoxRenderer クラス
TextBoxRenderer メンバ
System.Windows.Forms 名前空間
Application.VisualStyleState プロパティ


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

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

辞書ショートカット

すべての辞書の索引

「TextBoxRenderer.IsSupported プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS