System.Web.UI.WebControls.Menu Members

The members of System.Web.UI.WebControls.Menu are listed below.

See Also: Inherited members from System.Web.UI.WebControls.HierarchicalDataBoundControl

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.Menu class.

Public Fields

static readonly
MenuItemClickCommandNamestring.

Contains the command name.

Public Properties

[read-only]
override
ControlsSystem.Web.UI.ControlCollection.

Gets a System.Web.UI.ControlCollection that contains the child controls of the System.Web.UI.WebControls.Menu control.

[read-only]
DataBindingsMenuItemBindingCollection.

Gets a collection of System.Web.UI.WebControls.MenuItemBinding objects that define the relationship between a data item and the menu item it is binding to.

DisappearAfterint.

Gets or sets the duration for which a dynamic menu is displayed after the mouse pointer is no longer positioned over the menu.

DynamicBottomSeparatorImageUrlstring.

Gets or sets the URL to an image to display at the bottom of each dynamic menu item to separate it from other menu items.

DynamicEnableDefaultPopOutImagebool.

Gets or sets a value indicating whether the built-in image that indicates that a dynamic menu item has a submenu is displayed.

DynamicHorizontalOffsetint.

Gets or sets the number of pixels to shift a dynamic menu horizontally relative to its parent menu item.

[read-only]
DynamicHoverStyleStyle.

Gets a reference to the System.Web.UI.WebControls.Style object that allows you to set the appearance of a dynamic menu item when the mouse pointer is positioned over it.

DynamicItemFormatStringstring.

Gets or sets additional text shown with all menu items that are dynamically displayed.

DynamicItemTemplateSystem.Web.UI.ITemplate.

Gets or sets the template that contains the custom content to render for a dynamic menu.

[read-only]
DynamicMenuItemStyleMenuItemStyle.

Gets a reference to the System.Web.UI.WebControls.MenuItemStyle object that allows you to set the appearance of the menu items within a dynamic menu.

[read-only]
DynamicMenuStyleSubMenuStyle.

Gets a reference to the System.Web.UI.WebControls.MenuItemStyle object that allows you to set the appearance of a dynamic menu.

DynamicPopOutImageTextFormatStringstring.

Gets or sets the alternate text for the image used to indicate that a dynamic menu item has a submenu.

DynamicPopOutImageUrlstring.

Gets or sets the URL to a custom image that is displayed in a dynamic menu item when the dynamic menu item has a submenu.

[read-only]
DynamicSelectedStyleMenuItemStyle.

Gets a reference to the System.Web.UI.WebControls.MenuItemStyle object that allows you to set the appearance of the dynamic menu item selected by the user.

DynamicTopSeparatorImageUrlstring.

Gets or sets the URL to an image to display at the top of each dynamic menu item to separate it from other menu items.

DynamicVerticalOffsetint.

Gets or sets the number of pixels to shift a dynamic menu vertically relative to its parent menu item.

[read-only]
ItemsMenuItemCollection.

Gets a System.Web.UI.WebControls.MenuItemCollection object that contains all menu items in the System.Web.UI.WebControls.Menu control.

ItemWrapbool.

Gets or sets a value indicating whether the text for menu items should wrap.

[read-only]
LevelMenuItemStylesMenuItemStyleCollection.

Gets a System.Web.UI.WebControls.MenuItemStyleCollection object that contains the style settings that are applied to menu items based on their level in a System.Web.UI.WebControls.Menu control.

[read-only]
LevelSelectedStylesMenuItemStyleCollection.

Gets a System.Web.UI.WebControls.MenuItemStyleCollection object that contains the style settings that are applied to the selected menu item based on its level in a System.Web.UI.WebControls.Menu control.

[read-only]
LevelSubMenuStylesSubMenuStyleCollection.

Gets a System.Web.UI.WebControls.MenuItemStyleCollection object that contains the style settings that are applied to the submenu items in the static menu based on their level in a System.Web.UI.WebControls.Menu control.

MaximumDynamicDisplayLevelsint.

Gets or sets the number of menu levels to render for a dynamic menu.

OrientationOrientation.

Gets or sets the direction in which to render the System.Web.UI.WebControls.Menu control.

PathSeparatorchar.

Gets or sets the character used to delimit the path of a menu item in a System.Web.UI.WebControls.Menu control.

ScrollDownImageUrlstring.

Gets or sets the URL to an image displayed in a dynamic menu to indicate that the user can scroll down for additional menu items.

ScrollDownTextstring.

Gets or sets the alternate text for the image specified in the Menu.ScrollDownImageUrl property.

ScrollUpImageUrlstring.

Gets or sets the URL to an image displayed in a dynamic menu to indicate that the user can scroll up for additional menu items.

ScrollUpTextstring.

Gets or sets the alternate text for the image specified in the Menu.ScrollUpImageUrl property.

[read-only]
SelectedItemMenuItem.

Gets the selected menu item.

[read-only]
SelectedValuestring.

Gets the value of the selected menu item.

SkipLinkTextstring.

Gets or sets the alternate text for a hidden image read by screen readers to provide the ability to skip the list of links.

StaticBottomSeparatorImageUrlstring.

Gets or sets the URL to an image displayed as the separator at the bottom of each static menu item.

StaticDisplayLevelsint.

Gets or sets the number of menu levels to display in a static menu.

StaticEnableDefaultPopOutImagebool.

Gets or sets a value indicating whether the built-in image is displayed to indicate that a static menu item has a submenu.

[read-only]
StaticHoverStyleStyle.

Gets a reference to the System.Web.UI.WebControls.Style object that allows you to set the appearance of a static menu item when the mouse pointer is positioned over it.

StaticItemFormatStringstring.

Gets or sets additional text shown with all menu items that are statically displayed.

StaticItemTemplateSystem.Web.UI.ITemplate.

Gets or sets the template that contains the custom content to render for a static menu.

[read-only]
StaticMenuItemStyleMenuItemStyle.

Gets a reference to the System.Web.UI.WebControls.MenuItemStyle object that allows you to set the appearance of the menu items in a static menu.

[read-only]
StaticMenuStyleSubMenuStyle.

Gets a reference to the System.Web.UI.WebControls.MenuItemStyle object that allows you to set the appearance of a static menu.

StaticPopOutImageTextFormatStringstring.

Gets or sets the alternate text for the pop-out image used to indicate that a static menu item has a submenu.

StaticPopOutImageUrlstring.

Gets or sets the URL to an image displayed to indicate that a static menu item has a submenu.

[read-only]
StaticSelectedStyleMenuItemStyle.

Gets a reference to the System.Web.UI.WebControls.MenuItemStyle object that allows you to set the appearance of the menu item selected by the user in a static menu.

StaticSubMenuIndentUnit.

Gets or sets the amount of space, in pixels, to indent submenus within a static menu.

StaticTopSeparatorImageUrlstring.

Gets or sets the URL to an image displayed as the separator at the top of each static menu item.

Targetstring.

Gets or sets the target window or frame in which to display the Web page content associated with a menu item.

Protected Properties

[read-only]
override
TagKeySystem.Web.UI.HtmlTextWriterTag.

Gets the System.Web.UI.HtmlTextWriterTag value that corresponds to a System.Web.UI.WebControls.Menu control. This property is used primarily by control developers.

Public Methods

override
DataBind()

Binds the data source to the System.Web.UI.WebControls.Menu control. This method cannot be inherited.

FindItem(string) : MenuItem

Retrieves the menu item at the specified value path.

override
RenderBeginTag(System.Web.UI.HtmlTextWriter)

Adds tag attributes and writes the markup for the opening tag of the control to the output stream emitted to the browser or device.

override
RenderEndTag(System.Web.UI.HtmlTextWriter)

Performs final markup and writes the HTML closing tag of the control to the output stream emitted to the browser or device.

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Adds HTML attributes and styles that need to be rendered to the specified System.Web.UI.HtmlTextWriter object.

override
CreateChildControls()

Creates the child controls of a System.Web.UI.WebControls.Menu control.

override
EnsureDataBound()

Verifies that the menu control requires data binding and that a valid data source control is specified before calling the Menu.DataBind method.

override
GetDesignModeState() : IDictionary

Retrieves the design-time state of the System.Web.UI.WebControls.Menu control.

override
LoadControlState(object)

Loads the state of the properties in the System.Web.UI.WebControls.Menu control that need to be persisted.

override
LoadViewState(object)

Loads the previously saved view state of the System.Web.UI.WebControls.Menu control.

override
OnBubbleEvent(object, EventArgs) : bool

Determines whether the event for the System.Web.UI.WebControls.Menu control is passed up the page's user interface (UI) server control hierarchy.

override
OnDataBinding(EventArgs)

Raises the System.Web.UI.Control.DataBinding event.

override
OnInit(EventArgs)

Raises the System.Web.UI.Control.Init event.

OnMenuItemClick(MenuEventArgs)

Raises the Menu.MenuItemClick event.

OnMenuItemDataBound(MenuEventArgs)

Raises the Menu.MenuItemDataBound event.

override
OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event.

override
PerformDataBinding()

Binds the items from the data source to the menu items in the System.Web.UI.WebControls.Menu control.

RaisePostBackEvent(string)

Processes an event raised when a form is posted to the server.

override
Render(System.Web.UI.HtmlTextWriter)

Renders the menu control on the client browser.

override
RenderContents(System.Web.UI.HtmlTextWriter)

This member overrides WebControl.RenderContents(System.Web.UI.HtmlTextWriter).

override
SaveControlState() : object

Saves the state of the properties in the System.Web.UI.WebControls.Menu control that need to be persisted.

override
SaveViewState() : object

Saves the state of the System.Web.UI.WebControls.Menu control.

override
SetDesignModeState(IDictionary)

Sets design-time data for the System.Web.UI.WebControls.Menu control.

SetItemDataBound(MenuItem, bool)

Sets the MenuItem.DataBound property of the specified System.Web.UI.WebControls.MenuItem object with the specified value.

SetItemDataItem(MenuItem, object)

Sets the MenuItem.DataItem property of the specified System.Web.UI.WebControls.MenuItem object with the specified value.

SetItemDataPath(MenuItem, string)

Sets the MenuItem.DataPath property of the specified System.Web.UI.WebControls.MenuItem object with the specified value.

override
TrackViewState()

Tracks view-state changes to the System.Web.UI.WebControls.Menu control so they can be stored in the control's System.Web.UI.StateBag object. This object is accessible through the System.Web.UI.Control.ViewState property.

Public Events

MenuItemClick

Occurs when a menu item in a System.Web.UI.WebControls.Menu control is clicked.

MenuItemDataBound

Occurs when a menu item in a System.Web.UI.WebControls.Menu control is bound to data.

Explicitly Implemented Interface Members

System.Web.UI.IPostBackEventHandler.RaisePostBackEvent

Processes an event raised when a form is posted to the server.