The members of System.Windows.Forms.ListBox are listed below.
See Also: Inherited members from System.Windows.Forms.ListControl
ListBox() |
Initializes a new instance of the System.Windows.Forms.ListBox class. |
const | DefaultItemHeight | int (13).
Specifies the default item height for an owner-drawn System.Windows.Forms.ListBox. |
const | NoMatches | int (-1).
Specifies that no matches are found during a search. |
override | BackColor | System.Drawing.Color.
Gets or sets the background color for the control. |
override | BackgroundImage | System.Drawing.Image.
This property is not relevant to this class. |
override | BackgroundImageLayout | ImageLayout.
Gets or sets the background image layout for a System.Windows.Forms.ListBox as defined in the System.Windows.Forms.ImageLayout enumeration. |
| BorderStyle | BorderStyle.
Gets or sets the type of border that is drawn around the System.Windows.Forms.ListBox. | |
| ColumnWidth | int.
Gets or sets the width of columns in a multicolumn System.Windows.Forms.ListBox. | |
| [read-only] | CustomTabOffsets | ListBox.IntegerCollection.
Gets the width of the tabs between the items in the System.Windows.Forms.ListBox. |
| DrawMode | DrawMode.
Gets or sets the drawing mode for the control. | |
override | Font | System.Drawing.Font.
Gets or sets the font of the text displayed by the control. |
override | ForeColor | System.Drawing.Color.
Gets or sets the foreground color of the control. |
| HorizontalExtent | int.
Gets or sets the width by which the horizontal scroll bar of a System.Windows.Forms.ListBox can scroll. | |
| HorizontalScrollbar | bool.
Gets or sets a value indicating whether a horizontal scroll bar is displayed in the control. | |
| IntegralHeight | bool.
Gets or sets a value indicating whether the control should resize to avoid showing partial items. | |
| ItemHeight | int.
Gets or sets the height of an item in the System.Windows.Forms.ListBox. | |
| [read-only] | Items | ListBox.ObjectCollection.
Gets the items of the System.Windows.Forms.ListBox. |
| MultiColumn | bool.
Gets or sets a value indicating whether the System.Windows.Forms.ListBox supports multiple columns. | |
| Padding | Padding.
This property is not relevant to this class. | |
| [read-only] | PreferredHeight | int.
Gets the combined height of all items in the System.Windows.Forms.ListBox. |
override | RightToLeft | RightToLeft.
Gets or sets a value indicating whether text displayed by the control is displayed from right to left. |
| ScrollAlwaysVisible | bool.
Gets or sets a value indicating whether the vertical scroll bar is shown at all times. | |
override | SelectedIndex | int.
Gets or sets the zero-based index of the currently selected item in a System.Windows.Forms.ListBox. |
| [read-only] | SelectedIndices | ListBox.SelectedIndexCollection.
Gets a collection that contains the zero-based indexes of all currently selected items in the System.Windows.Forms.ListBox. |
| SelectedItem | object.
Gets or sets the currently selected item in the System.Windows.Forms.ListBox. | |
| [read-only] | SelectedItems | ListBox.SelectedObjectCollection.
Gets a collection containing the currently selected items in the System.Windows.Forms.ListBox. |
| SelectionMode | SelectionMode.
Gets or sets the method in which items are selected in the System.Windows.Forms.ListBox. | |
| Sorted | bool.
Gets or sets a value indicating whether the items in the System.Windows.Forms.ListBox are sorted alphabetically. | |
override | Text | string.
Gets or searches for the text of the currently selected item in the System.Windows.Forms.ListBox. |
| TopIndex | int.
Gets or sets the index of the first visible item in the System.Windows.Forms.ListBox. | |
| UseCustomTabOffsets | bool.
Gets or sets a value indicating whether the System.Windows.Forms.ListBox recognizes and expands tab characters when it draws its strings by using the ListBox.CustomTabOffsets integer array. | |
| UseTabStops | bool.
Gets or sets a value indicating whether the System.Windows.Forms.ListBox can recognize and expand tab characters when drawing its strings. |
| [read-only] override | AllowSelection | bool.
Gets a value indicating whether the System.Windows.Forms.ListBox currently enables selection of list items. |
| [read-only] override | CreateParams | CreateParams.
Gets the required creation parameters when the control handle is created. |
| [read-only] override | DefaultSize | System.Drawing.Size.
Gets the default size of the control. |
BeginUpdate()
| ||
ClearSelected()
| ||
EndUpdate()
| ||
FindString(string)
| ||
FindString(string, int)
| ||
FindStringExact(string)
| ||
FindStringExact(string, int)
| ||
GetItemHeight(int)
| ||
GetItemRectangle(int)
| ||
GetSelected(int)
| ||
IndexFromPoint(System.Drawing.Point)
| ||
IndexFromPoint(int, int)
| ||
override | Refresh()
| |
override | ResetBackColor()
| |
override | ResetForeColor()
| |
SetSelected(int, bool)
| ||
override | ToString()
| |
AddItemsCore(object[])
| ||
CreateItemCollection()
| ||
override | GetScaledBounds(System.Drawing.Rectangle, System.Drawing.SizeF, BoundsSpecified)
| |
override | OnChangeUICues(UICuesEventArgs)
| |
override | OnDataSourceChanged(EventArgs)
| |
override | OnDisplayMemberChanged(EventArgs)
| |
OnDrawItem(DrawItemEventArgs)
| ||
override | OnFontChanged(EventArgs)
| |
override | OnHandleCreated(EventArgs)
| |
override | OnHandleDestroyed(EventArgs)
| |
OnMeasureItem(MeasureItemEventArgs)
| ||
override | OnParentChanged(EventArgs)
| |
override | OnResize(EventArgs)
| |
override | OnSelectedIndexChanged(EventArgs)
| |
override | OnSelectedValueChanged(EventArgs)
| |
override | RefreshItem(int)
| |
override | RefreshItems()
| |
override | ScaleControl(System.Drawing.SizeF, BoundsSpecified)
| |
override | SetBoundsCore(int, int, int, int, BoundsSpecified)
| |
override | SetItemCore(int, object)
| |
override | SetItemsCore(IList)
| |
Sort()
| ||
WmReflectCommand(ref Message)Documentation for this section has not yet been entered. | ||
override | WndProc(ref Message)Documentation for this section has not yet been entered. | |
| BackgroundImageChanged |
Occurs when the ListBox.BackgroundImage property of the label changes. | |
| BackgroundImageLayoutChanged |
Occurs when the ListBox.BackgroundImageLayout property changes. | |
| Click |
Occurs when the System.Windows.Forms.ListBox control is clicked. | |
| DrawItem |
Occurs when a visual aspect of an owner-drawn System.Windows.Forms.ListBox changes. | |
| MeasureItem |
Occurs when an owner-drawn System.Windows.Forms.ListBox is created and the sizes of the list items are determined. | |
| MouseClick |
Occurs when the user clicks the System.Windows.Forms.ListBox control with the mouse pointer. | |
| PaddingChanged |
Occurs when the value of the ListBox.Padding property changes. | |
| Paint |
Occurs when the System.Windows.Forms.ListBox control is painted. | |
| SelectedIndexChanged |
Occurs when the ListBox.SelectedIndex property or the ListBox.SelectedIndices collection has changed. | |
| TextChanged |
Occurs when the ListBox.Text property is changed. |