PanelContainerDesigner.FrameStyle プロパティ
アセンブリ: System.Design (system.design.dll 内)
構文関連付けられた Panel コントロールのデザイン時のスタイルを含む Style オブジェクト。
解説FrameCaption プロパティが空の文字列 ("") である場合、FrameStyle プロパティは空の Style オブジェクトを返します。それ以外の場合、FrameStyle プロパティは、ContainerControlDesigner.FrameStyle 基本プロパティで生成される既定の Style オブジェクトを返します。
使用例PanelContainerDesigner クラスから継承したクラスで FrameStyle プロパティをオーバーライドして、Panel クラスから派生したコントロールの外観をデザイン時に変更するコード例を次に示します。この例では、関連付けられたコントロールのデザイン時の境界線スタイルを定義します。
' Provide a design-time border style for the panel. Public Overrides ReadOnly Property FrameStyle() As Style Get Dim styleOfFrame As Style = MyBase.FrameStyle ' If no border style is defined, define one. If (styleOfFrame.BorderStyle = BorderStyle.NotSet Or _ styleOfFrame.BorderStyle = BorderStyle.None) Then styleOfFrame.BorderStyle = BorderStyle.Outset End If Return styleOfFrame End Get End Property ' FrameStyle
// Provide a design-time border style for the panel. public override Style FrameStyle { get { Style styleOfFrame = base.FrameStyle; // If no border style is defined, define one. if (styleOfFrame.BorderStyle == BorderStyle.NotSet || styleOfFrame.BorderStyle == BorderStyle.None) styleOfFrame.BorderStyle = BorderStyle.Outset; return styleOfFrame; } } // FrameStyle
.NET Framework のセキュリティ
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- PanelContainerDesigner.FrameStyle プロパティのページへのリンク