Share via


RichHtmlField.AllowHeadings Property

Gets or sets the constraint that allows heading 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 AllowHeadings As Boolean
    Get
    Set
'Usage
Dim instance As RichHtmlField
Dim value As Boolean

value = instance.AllowHeadings

instance.AllowHeadings = value
[BrowsableAttribute(true)]
public bool AllowHeadings { get; set; }

Property Value

Type: System.Boolean
When this flag is set to False, heading tags are not allowed in the HTML.

Remarks

If this flag is set to False, <DIR>, <H1>, <H2>, <H3>, <H4>, <H5>, <H6>, <MARQUEE>, <ADDRESS> and <CENTER> tags are removed from the HTML. Default is TRUE. This property also determines whether the editing user interface (UI) enables these operations.

See Also

Reference

RichHtmlField Class

RichHtmlField Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AllowHeadings

Validate

RichHtmlField