Share via


HtmlMenuItem.Separator Property

Gets or sets a value indicating whether the menu item is rendered as a horizontal line (separator).

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
Public Property Separator As Boolean
    Get
    Set
'Usage
Dim instance As HtmlMenuItem
Dim value As Boolean

value = instance.Separator

instance.Separator = value
public bool Separator { get; set; }

Property Value

Type: System.Boolean
true if the menu item is rendered as a horizontal line; otherwise, false. The default value is false.

Remarks

If the Separator property is true, the Text, TargetURL, and ImageURL properties are not used.

See Also

Reference

HtmlMenuItem Class

HtmlMenuItem Members

Microsoft.SharePoint.Portal.WebControls Namespace