PageCatalogPart.CssClass Property
Assembly: System.Web (in system.web.dll)
[ThemeableAttribute(false)] public: virtual property String^ CssClass { String^ get () override; void set (String^ value) override; }
/** @property */ public String get_CssClass () /** @property */ public void set_CssClass (String value)
public override function get CssClass () : String public override function set CssClass (value : String)
Property Value
A string that contains the name of a cascading style sheet (CSS) class used to assign style characteristics to a control.The CssClass property, as a member of the PageCatalogPart control, is not used anywhere within the Web Parts control set for rendering the control. Therefore, you should not use this property; setting it has no effect on rendering.
To prevent developers from using this property, code attributes are set on it to hide it in Visual Studio. When you work with a PageCatalogPart control in Visual Studio, the CssClass property is not visible in the Properties pane or IntelliSense.
If you want to use this property, you need to create a custom class that inherits from the CatalogPart class. The custom class can either use the inherited CssClass property as it is, or override it and change its behavior.
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins Overview.
| Topic | Location |
|---|---|
| How to: Create External Cascading Style Sheets (Visual Studio) | Building ASP .NET Web Applications in Visual Studio |
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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.