The properties of System.Windows.Forms.ListBox are listed below. For a list of all members, see the ListBox Members list.
See Also: Inherited members from System.Windows.Forms.ListControl
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. |