Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
'Declaration
<WebPartStorageAttribute(Storage.None)> _
Public Overridable Property CssStyleSheet As String
Get
Set
'Usage
Dim instance As WebPart
Dim value As String
value = instance.CssStyleSheet
instance.CssStyleSheet = value
[WebPartStorageAttribute(Storage.None)]
public virtual string CssStyleSheet { get; set; }
Type: System.String
Please sign in to use this experience.
Sign in