Share via


WebPart.UseDefaultStyles property

Gets or sets whether the default font size and style are applied to the Web Part.

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

Syntax

[WebPartStorageAttribute(Storage.None)]
public bool UseDefaultStyles { get; set; }

Property value

Type: System.Boolean
true if the default font size and style are applied; otherwise, false.

Remarks

The value of UseDefaultStyles property is not persisted; the value of its WebPartStorageAttribute is Storage.Shared

See also

Reference

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace