WebPart.CssStyleSheet property

The CSS file that needs to be registered on a page for this webpart. If this is set, CssRegistration.Register(filename) is called in this property during the OnPreRender() event. To register more Css style sheets, use CssRegistration.Register()

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


<WebPartStorageAttribute(Storage.None)> _
Public Overridable Property CssStyleSheet As String
Dim instance As WebPart
Dim value As String

value = instance.CssStyleSheet

instance.CssStyleSheet = value
public virtual string CssStyleSheet { get; set; }

Property value

Type: System.String

See also


WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace