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

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

PanelContainerDesigner.FrameCaption プロパティ

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

関連付けられた Panel コントロールに表示されるキャプションを取得します。

名前空間: System.Web.UI.Design.WebControls
アセンブリ: System.Design (system.design.dll 内)
構文構文

Public Overrides ReadOnly
 Property FrameCaption As String
Dim instance As PanelContainerDesigner
Dim value As String

value = instance.FrameCaption
public override string FrameCaption { get;
 }
/** @property */
public String get_FrameCaption ()

プロパティ値
パネルのキャプションを指定する文字列。

解説解説

FrameCaption プロパティは、関連付けられた Panel コントロールの GroupingText プロパティを返します。

使用例使用例

PanelContainerDesigner クラスから継承したクラスで FrameCaption プロパティをオーバーライドして、Panel クラスから派生したコントロールの外観をデザイン時に変更するコード例を次に示します。この例では、関連付けられたコントロールでキャプションが定義されていない場合に、既定のキャプションを提供します。

' Provide a design-time caption for the panel.
Public Overrides ReadOnly
 Property FrameCaption() As String
    Get
        ' If the FrameCaption is empty, use the panel control ID.
        Dim localCaption As String
 = MyBase.FrameCaption
        If localCaption Is Nothing
 Or localCaption = "" Then
            localCaption = CType(Component, Panel).ID.ToString()
        End If

        Return localCaption
    End Get
End Property ' FrameCaption
// Provide a design-time caption for the panel.
public override string FrameCaption 
{
    get
    {
        // If the FrameCaption is empty, use the panel control ID.
        string localCaption = base.FrameCaption;
        if (localCaption == null || localCaption
 == "")
            localCaption = ((Panel)Component).ID.ToString();

        return localCaption;
    }
} // FrameCaption
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PanelContainerDesigner クラス
PanelContainerDesigner メンバ
System.Web.UI.Design.WebControls 名前空間
GroupingText
Panel
その他の技術情報
ASP.NET コントロール デザイナの概要



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



PanelContainerDesigner.FrameCaption プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS