Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DeclarativeCatalogPart.CssClass Property

This inherited property is not used by the DeclarativeCatalogPart control. The property is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio 2005 designer tools.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

[BrowsableAttribute(false)]
[ThemeableAttribute(false)]
public override string CssClass { get; set; }

Property Value

Type: System.String
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 DeclarativeCatalogPart 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 DeclarativeCatalogPart 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.

TopicLocation
How to: Create External Cascading Style Sheets (Visual Studio)Building ASP .NET Web Applications in Visual Studio

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft