TOOLBARTEXTBOX Element | ToolbarTextBox Class

This class represents a ToolbarTextBox within a Toolbar.

Syntax

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

Inheritance Hierarchy

Object::BaseChildNode::ToolbarItem

Remarks

To enable users to enter a maximum number of characters, set the MAXLENGTH attribute on the TOOLBARTEXTBOX.

This element is a block element.

This element requires a closing tag.

Members Table

The following table lists the members exposed by the ToolbarTextBox 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.
BorderColor Sets or retrieves a value that indicates the border color of the Web control.
BorderStyle Sets or retrieves a value that indicates the border style of the Web control.
BorderWidth Sets or retrieves a value that indicates the border width of the Web control.
Columns Sets or retrieves a value that indicates the number of columns for the Web Control.
ControlStyle Retrieves a value that indicates the style of the control.
CssClass Sets or retrieves a value that indicates the CssClass.
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.
Height Sets or retrieves a value that indicates the height of the control.
MAXLENGTH MaxLength Sets or retrieves a value that indicates the maximum number of characters that the user can enter.
READONLY ReadOnly Sets or retrieves a value that indicates the read-only status of the text box.
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.
TEXT Text Sets or retrieves a value that indicates the text or caption of the object.
TEXTMODE TextMode Sets or retrieves a value that indicates the type of text entered by the user.
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
TextChanged Fires when the Text changes.
Method Description
Clone Creates a new object that is a copy of the current instance.
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.
OnTextChanged Raises the TextChanged event.
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.
WriteItemAttributes Renders the object item's attributes.

Class Information

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

Applies To

TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl