NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListBox Properties

The properties of the ListBox class are listed below. For a complete list of ListBox class members, see the ListBox Members topic.

Public:

AccessKey (inherited from WebControl) AccessKey property. The keyboard shortcut used by the control.
Attributes (inherited from WebControl) Attributes collection. Low-level access to arbitrary attributes.
AutoPostBack (inherited from ListControl) AutoPostBack property. This automatically causes a postback to the server whenever the user changes the selection of the list.
BackColor (inherited from WebControl) BackColor property. The background color of the control.
BorderColor (inherited from WebControl) BorderColor property. The color of the border around the control.
BorderStyle (inherited from WebControl) BorderStyle property. The style of border around the control.
BorderWidth (inherited from WebControl) BorderWidth property. The width of the border around the control.
ClientID (inherited from Control) [To be supplied.]
Controls (inherited from Control) [To be supplied.]
CssClass (inherited from WebControl) CssClass property. The CSS Class name associated with the control.
DataBindings (inherited from Control) [To be supplied.]
DataSource (inherited from ListControl) DataSource property. Provides data to populate the list with items. ListItems are initialized from DataTextField and DataValueField.
DataTextField (inherited from ListControl) DataTextField property. The field in the datasource which provides the ListItem text.
DataValueField (inherited from ListControl) DataValueField property. The field in the datasource which provides the ListItem value.
Enabled (inherited from WebControl) Enabled property. The enabled state of the control.
Font (inherited from WebControl) Font property. The font used for the text within the control.
ForeColor (inherited from WebControl) ForeColor property. The foreground color of the control. Typically determines the color of the text within the control.
Height (inherited from WebControl) Height property. The height of the control.
ID (inherited from Control) [To be supplied.]
Items (inherited from ListControl) Items property. The collection of ListItems that currently populate the list.
MaintainState (inherited from Control) [To be supplied.]
NamingContainer (inherited from Control) [To be supplied.]
Page (inherited from Control) [To be supplied.]
Parent (inherited from Control) [To be supplied.]
Rows Rows property. Determines the number of visible items for the ListBox.
SelectedIndex (inherited from ListControl) SelectedIndex property. The index of the currently selected item.
SelectedItem (inherited from ListControl) SelectedItem property. The currently selected item.
SelectionMode SelectionMode property. Determines the selction mode for the ListBox.
Site (inherited from Control) [To be supplied.]
Style (inherited from WebControl) CssStyle collection. Low-level access to arbitrary CSS styles.
TabIndex (inherited from WebControl) TabIndex property. The tab order of the control.
ToolTip (inherited from WebControl) Tooltip property. The tooltip displayed when the mouse if over the control.
UniqueID (inherited from Control) [To be supplied.]
Visible (inherited from Control) [To be supplied.]
Width (inherited from WebControl) Width property. The width of the control.

Protected:

AllowsChildren (inherited from Control) [To be supplied.]
ChildControlsCreated (inherited from Control) [To be supplied.]
Context (inherited from Control) [To be supplied.]
HasChildViewState (inherited from Control) [To be supplied.]
SelectedIndices (inherited from ListControl) SelectedIndices property. Protected property for getting array of selected indices.
State (inherited from Control) [To be supplied.]
StateBagIgnoresCase (inherited from WebControl) [To be supplied.]
TagName (inherited from WebControl) Protected property to determine which tag to render as.

See Also

ListBox Class | System.Web.UI.WebControls Namespace