HtmlMenuButton Class
The HtmlMenuButton class is the Web Form Control that that instantiates an instance of a menu template.
System.Web.UI.Control
Microsoft.SharePoint.Portal.WebControls.HtmlMenuButton
Public Constructors
The following table shows the constructors of the HtmlMenuButton class and a brief description of each.
Name | Description |
---|---|
HtmlMenuButton | Initializes a new instance of the HtmlMenuButton class. |
Public Fields
The following table shows the fields of the HtmlMenuButton class and a brief description of each.
Name | Description |
---|---|
AllowScriptInUrl | Specifies a value indicating whether script contained in the data is accepted or rejected. true if script data is accepted; false if script data is rejected. The default value is false. |
Public Methods
The following table shows the public methods of the HtmlMenuButton class and a brief description of each.
Name | Description |
---|---|
RenderAsHtml | Reserved for internal use only. |
Protected Methods
The following table shows the protected methods of the HtmlMenuButton class and a brief description of each.
Name | Description |
---|---|
Render(System.Web.UI.HtmlTextWriter) | Inherits from System.Web.UI.Controls. |
RenderDisableItems(System.Web.UI.HtmlTextWriter) | Reserved for internal use only. |
RenderID(System.Web.UI.HtmlTextWriter, Boolean) | Reserved for internal use only. |
RenderLink(System.Web.UI.HtmlTextWriter) | Reserved for internal use only. |
RenderMenuParameters(System.Web.UI.HtmlTextWriter) | Reserved for internal use only. |
RenderParameters(System.Web.UI.HtmlTextWriter) | Reserved for internal use only. |
Public Properties
The following table shows the properties of the HtmlMenuButton class, the data type of each property, and a brief description of each.
Name | Data type | Description |
---|---|---|
ClickThruURL | String | Gets or sets the URL of the link. |
DefaultURL | String | Gets or sets the default URL for each menu item that does not have a URL in the menu item template. |
DisableItems | System.Collections.Specialized.StringCollection | Gets a string collection containing a list of menu item identifiers that are disabled. Disabled menu items are dimmed in the UI. |
DisplayHtml | String | Gets or sets the actual HTML that is displayed. The DisplayHtml property overrides the ClickThruURLproperty. |
ImageURL | String | Gets or sets the URL of the image contained in the link. |
IsNarrow | Boolean | Gets or sets a value indicating whether the width of the menu button is set to the maximum width available on the screen or to the minimum width. true if the menu button is as narrow as possible; otherwise, false. |
LinkID | String | Gets or sets the client-side identifer for the URL that is rendered for the ClickThruURL property. |
MenuID | String | Gets or sets the client-side identifer for the menu associated with this menu button. |
Parameters | System.Collections.Hashtable | Gets the hash table containing the name/value pairs for the menu items. |
Text | String | Gets or sets the label that appears in the link contained in the menu button. |
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