EditorPartChrome.CreateEditorPartChromeStyle メソッド
アセンブリ: System.Web (system.web.dll 内)

Protected Overridable Function CreateEditorPartChromeStyle ( _ editorPart As EditorPart, _ chromeType As PartChromeType _ ) As Style
Dim editorPart As EditorPart Dim chromeType As PartChromeType Dim returnValue As Style returnValue = Me.CreateEditorPartChromeStyle(editorPart, chromeType)
protected virtual Style CreateEditorPartChromeStyle ( EditorPart editorPart, PartChromeType chromeType )
protected: virtual Style^ CreateEditorPartChromeStyle ( EditorPart^ editorPart, PartChromeType chromeType )
protected function CreateEditorPartChromeStyle ( editorPart : EditorPart, chromeType : PartChromeType ) : Style
戻り値
editorPart のスタイル属性を含む Style。


CreateEditorPartChromeStyle メソッドは、EditorPartChrome オブジェクトによって EditorPart コントロールを表示するために使用される Style オブジェクトを作成します。
実装時の注意 EditorPartChrome クラスを継承した場合は、CreateEditorPartChromeStyle メソッドをオーバーライドすることもできます。また、基本メソッドのスタイル情報と、追加するカスタム スタイル属性をマージすることもできます。このコード例については「使用例」を参照してください。
CreateEditorPartChromeStyle メソッドをオーバーライドして、エディタ パーツ コントロールの背景色を変更する方法を次のコード例に示します。これらのコントロールをホストする Web ページなど、この例の実行に必要なコード全体については、EditorPartChrome クラスの概要の「使用例」を参照してください。
Protected Overrides Function CreateEditorPartChromeStyle(ByVal editorPart As System.Web.UI.WebControls.WebParts.EditorPart, ByVal chromeType As System.Web.UI.WebControls.WebParts.PartChromeType) As System.Web.UI.WebControls.Style Dim editorStyle As Style editorStyle = MyBase.CreateEditorPartChromeStyle(editorPart, chromeType) editorStyle.BackColor = Drawing.Color.Bisque Return editorStyle End Function

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


Weblioに収録されているすべての辞書からEditorPartChrome.CreateEditorPartChromeStyle メソッドを検索する場合は、下記のリンクをクリックしてください。

- EditorPartChrome.CreateEditorPartChromeStyle メソッドのページへのリンク