RichHtmlField.AllowFonts Property
Gets or sets the constraint that allows font element tags to be added to the HTML.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
<BrowsableAttribute(True)> _
Public Property AllowFonts As Boolean
Get
Set
'Usage
Dim instance As RichHtmlField
Dim value As Boolean
value = instance.AllowFonts
instance.AllowFonts = value
[BrowsableAttribute(true)]
public bool AllowFonts { get; set; }
Property Value
Type: System.Boolean
When this flag is set to False, <font> element tags are not allowed in the HTML.
Remarks
If you set this flag to FALSE, <font> and <basefont> tags are removed from the HTML. Default is TRUE. This property also determines whether the editing user interface (UI) enables these operations.