EditorPartChrome.CreateEditorPartChromeStyle Method
Assembly: System.Web (in system.web.dll)
protected: virtual Style^ CreateEditorPartChromeStyle ( EditorPart^ editorPart, PartChromeType chromeType )
protected Style CreateEditorPartChromeStyle ( EditorPart editorPart, PartChromeType chromeType )
protected function CreateEditorPartChromeStyle ( editorPart : EditorPart, chromeType : PartChromeType ) : Style
Not applicable.
Parameters
- editorPart
The control that is currently being rendered.
- chromeType
The type of chrome for a particular control; one of the PartChromeType enumeration values.
Return Value
A Style that contains style attributes for editorPart.The CreateEditorPartChromeStyle method creates a Style object that is used by the EditorPartChrome object to render an EditorPart control.
Notes to Implementers: If you inherit from the EditorPartChrome class, you can optionally override the CreateEditorPartChromeStyle method, and merge the style information from the base method with custom style attributes that you want to add. For a demonstration, see the Example section.The following code example demonstrates how to override the CreateEditorPartChromeStyle method to change the background color of the editor part control. For the full code required to run the example, including the Web page to host these controls, see the Example section of the EditorPartChrome class overview.
Windows 98, Windows Server 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
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.