System.Web.UI.WebControls.ListBox Members

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

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

Public Constructors

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

Public Properties

override
BorderColorSystem.Drawing.Color.

Gets or sets the border color of the control.

override
BorderStyleBorderStyle.

Gets or sets the border style of the control.

override
BorderWidthUnit.

Gets or sets the border width for the control.

Rowsint.

Gets or sets the number of rows displayed in the System.Web.UI.WebControls.ListBox control.

SelectionModeListSelectionMode.

Gets or sets the selection mode of the System.Web.UI.WebControls.ListBox control.

ToolTipstring. Documentation for this section has not yet been entered.

Public Methods

GetSelectedIndices() : int[]

Gets the array of index values for currently selected items in the System.Web.UI.WebControls.ListBox control.

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Adds name, size, multiple, and onchange to the list of attributes to render.

LoadPostData(string, System.Collections.Specialized.NameValueCollection) : bool

Loads the posted content of the list control, if it is different from the last posting.

override
OnPreRender(EventArgs)

Configures the System.Web.UI.WebControls.ListBox control prior to rendering on the client.

RaisePostDataChangedEvent()

Invokes the ListControl.OnSelectedIndexChanged(EventArgs) method whenever posted data for the System.Web.UI.WebControls.ListBox control has changed.

override
RenderContents(System.Web.UI.HtmlTextWriter)
Documentation for this section has not yet been entered.
override
VerifyMultiSelect()
Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

System.Web.UI.IPostBackDataHandler.LoadPostData

Loads the posted content of the list control, if it is different from the last posting.

System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent

Invokes the ListControl.OnSelectedIndexChanged(EventArgs) method whenever posted data for the System.Web.UI.WebControls.ListBox control has changed.