HtmlMenuButton Members

Include Protected Members
Include Inherited Members

Displays a drop-down button used to display an HtmlMenu.

The HtmlMenuButton type exposes the following members.

Constructors

  Name Description
Public method HtmlMenuButton Initializes a new instance of the HtmlMenuButton class.

Top

Properties

  Name Description
Public property ClickThruURL Gets or sets the URL of the link.
Public property DefaultURL Gets or sets the default URL for each menu item that does not have a URL in the menu item template.
Public property DisableItems Gets a string collection containing a list of menu item identifiers that are disabled.
Public property DisplayHtml Gets or sets the actual HTML that is displayed.
Public property ImageURL Gets or sets the URL of the image contained in the link.
Public property IsNarrow 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.
Public property ItemID Gets or sets the client-side ItemId attribute for this menu button.
Public property LinkID Gets or sets the client-side identifier for the URL that is rendered for the ClickThruURL property.
Public property MenuID Gets or sets the client-side identifier for the menu associated with this menu button.
Public property Parameters Gets the hash table containing the name/value pairs for the menu items.
Public property Text Gets or sets the label that appears in the link contained in the menu button.
Public property UseWSSMenu Gets or sets a value that indicates whether the menu button is displayed using Microsoft SharePoint Foundation 2010 formatting.

Top

Methods

  Name Description
Protected method Render Sends the HtmlMenuButton content to the provided HtmlTextWriter object, which writes the content to be rendered on the client. (Overrides WebControl.Render(HtmlTextWriter).)
Public method RenderAsHtml Returns a string representation of the HtmlMenuButton content in HTML format.
Protected method RenderDisableItems Sends the DisableItems content of the menu button to the provided HtmlTextWriter object, which writes the content to be rendered on the client.
Protected method RenderID Sends the HtmlMenuButton identifier (ID) to the provided HtmlTextWriter object, which writes the content to be rendered on the client.
Protected method RenderLink Sends the link content for the menu button to the provided HtmlTextWriter object, which writes the content to be rendered on the client.
Protected method RenderMenuParameters Sends menu parameters about the menu button to the provided HtmlTextWriter object, which writes the content to be rendered on the client.
Protected method RenderParameters Sends the Parameters content to the provided HtmlTextWriter object, which writes the content to be rendered on the client.

Top

Fields

  Name Description
Public field AllowScriptInUrl Specifies a value indicating whether script contained in the data is accepted or rejected.

Top

See Also

Reference

HtmlMenuButton Class

Microsoft.SharePoint.Portal.WebControls Namespace