HtmlMenuItem Class
The HtmlMenuItem class is a template that defines an item that is contained in a menu.
System.Web.UI.Control
Microsoft.SharePoint.Portal.WebControls.HtmlMenuItem
Public Constructors
The following table shows the constructors of the HtmlMenuItem class and a brief description of each.
Name | Description |
---|---|
HtmlMenuItem | Initializes a new instance of the HtmlMenuItem class. |
Protected Methods
The following table shows the protected methods of the HtmlMenuItem class and a brief description of each.
Name | Description |
---|---|
Render(System.Web.UI.HtmlTextWriter) | Inherits from System.Web.UI.Controls. |
Public Properties
The following table shows the properties of the HtmlMenuItem class, the data type of each property, and a brief description of each.
Name | Data type | Description |
---|---|---|
ImageURL | String | Gets or sets the URL image of the menu item. |
Language | String | Gets or sets the language of the script, if present, in the ScriptFunc property. |
Parameters | String | Gets or sets the array containing parameter names for which the HtmlMenuButton Web Part determines the values. |
ScriptFunc | String | Gets or sets the script that is added to the menu item. |
ScriptFuncReplaceMode | Boolean | Gets or sets a value indicating whether the ScriptFunc property contains the actual script function or only the name of the script function. true if the ScriptFunc property contains actual script; false if the ScriptFunc property contains the name of the script function. |
Separator | Boolean | Gets or sets a value indicating whether the menu item is rendered as a horizontal line (separator). If the Separator property is true, the Text, TargetURL, and ImageURL properties are not used. The default value is false. |
TargetURL | String | Gets or sets the URL of the administration page that is the target of the link of the menu item. |
Text | String | Gets or sets the text contained in the menu item link. |
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
Requirements
Namespace: Microsoft.SharePoint.Portal.WebControls
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security