PanelContainerDesigner.FrameCaption プロパティ
アセンブリ: System.Design (system.design.dll 内)

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


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


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


Weblioに収録されているすべての辞書からPanelContainerDesigner.FrameCaption プロパティを検索する場合は、下記のリンクをクリックしてください。

- PanelContainerDesigner.FrameCaption プロパティのページへのリンク