TOOLBARDROPDOWNLIST Element | ToolbarDropDownList Class

This class represents a ToolbarDropDownList within a Toolbar.

Syntax

Visual Basic  Public  Class ToolbarDropDownList Inherits ToolbarItem Implements IPostBackDataHandler
C# public   class ToolbarDropDownList : ToolbarItem, IPostBackDataHandler
Managed C++ public:  __gc class ToolbarDropDownList :  public ToolbarItem, IPostBackDataHandler
JScript public   class ToolbarDropDownList extends ToolbarItem, IPostBackDataHandler

Inheritance Hierarchy

Object::BaseChildNode::ToolbarItem

Remarks

To create the list of options for the ToolbarDropDownList, use the ListItem control.

This element is a block element.

This element requires a closing tag.

Members Table

The following table lists the members exposed by the ToolbarDropDownList object.

Attribute Property Description
AccessKey Sets or retrieves the keyboard shortcut key (AccessKey) for setting focus to the item.
AUTOPOSTBACK AutoPostBack Sets or retrieves a value that indicates whether the control posts back to the server each time a user interacts with the control.
BackColor Sets or retrieves a value that indicates the background color of the Web control.
ControlStyle Retrieves a value that indicates the style of the control.
CssClass Sets or retrieves a value that indicates the CssClass.
DataMember Sets or retrieves the specific table in the DataSource to bind the ToolbarDropDownList control.
DataSource Sets or retrieves the data source that populates the items in the ToolbarDropDownList control.
DataTextField Sets or retrieves the data source that provides the text content of list items.
DataTextFormatString Sets or retrieves a value that indicates the formatting string used to control how the list control is displayed.
DataValueField Sets or retrieves the data source that provides the value of each ToolbarDropDownList item.
Enabled Sets or retrieves a value that indicates whether the item is enabled.
Font Retrieves the Font information.
ForeColor Sets or retrieves the foreground color of the Web control.
HasUpLevelContent Retrieves a bool that indicates whether the child has uplevel content.
Items Retrieves the collection of items in the ToolbarDropDownList control.
SelectedIndex Retrieves the lowest ordinal index of the currently selected items in the list.
SelectedItem Retrieves the selected item with the lowest index in the ToolbarDropDownList control.
Style Sets or retrieves a collection of text attributes that render as a style attribute on the outer tag.
TabIndex Sets or retrieves a value that indicates the tab index of the item.
ToolTip Sets or retrieves the ToolTip that displays when the cursor hovers over the control.
UpLevelTag The uplevel tag name for the object item.
Width Sets or retrieves a value that indicates the width of the WebControls.
Event Description
SelectedIndexChanged Fires when SelectedIndex changes for ToolbarDropDownList.
Method Description
ClearSelection Clears the selection.
Clone Creates a new object that is a copy of the current instance.
DataBind Binds the data to the ToolbarDropDownList control and all of its child controls.
DesignerContent Renders the item's content for the Microsoft Visual Studio .NET Editor.
DownLevelContent Renders the item's contents for downlevel browsers.
IPostBackDataHandler.LoadPostData Processes post-back data for a server control.
IPostBackDataHandler.RaisePostDataChangedEvent Signals the server control object to notify the ASP.NET application that the state of the control has changed.
LoadViewState Loads the item's previously saved view state.
OnSelectedIndexChanged Fires the SelectedIndexChanged.
SaveViewState Saves changes to the item's view state to an object.
SetViewStateDirty Sets all items within the StateBag to be dirty.
TrackViewState Instructs the control to track changes to its view state.
UpLevelContent Renders the item's contents for uplevel browsers.
WriteItemAttributes Renders the object item's attributes.

Class Information

Namespace Microsoft.Web.UI.WebControls
Assembly Microsoft.Web.UI.WebControls.dll

Applies To

ListItem, TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl