EasyLanguage Object Reference

ListView Class

Allows you to display a collection of items in a multi column format.  Header text can be included at the top of a column along with the ability to specify the width and horizontal alignment of each column.

Namespace: elsystem.windows.forms

[ Expand All ]
Properties
  Name Type Description
Public property BorderStyle object Gets or sets the style of the control border. See BordeStyle for a list of values.
Public property ColumnsCount int Gets the number of columns in the control.
Public property FullRowSelect boolean Gets or sets value indicating if clicking an item selects all its subitems.
Public property Items object Gets all items in the control.
Public property MaximumRowNumber int Gets or sets the maximum number of rows displayed on a single page in the control before scrolling occurs.
Public property RowsCount int Gets the total number of rows included in the control.
Public property SelectedIndices object Gets the indexes of the selected items in the control.
Public property SelectedItems object Gets the items that are selected in the control.
Public property Sorting object Gets or sets the sort order for items in the control.

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

Methods
  Name Description
Public property AddColumns(col1) Add 1 column title (string or ColumnHeader).
Public property AddColumns(col1,col2) Add 2 column titles (strings or ColumnHeaders).
Public property AddColumns(col1,col2,col3) Add 3 column titles (strings or ColumnHeaders).
Public property AddColumns(col1,col2,col3,col4) Add 4 column titles (strings or ColumnHeaders).
Public property AddColumns(col1,col2,col3,col4,col5) Add 5 column titles (strings or ColumnHeaders).
Public property AddRow(ListViewItem) Add row with ListViewItem (object).
Public property AddRow(Object) Add row with Object (object).
Public property Clear() Removes all rows from the control.
Public property Create() Initializes a new instance of a ListView.  
Public property Create(width,height) Initializes a new instance of a ListView.  Parameters include integer values for the Width and Height of the control.
Public property DeleteRow(index) Removes the specified row (0 based index) from the control.
Public property FindItemWithText(text) First ListViewItem that begins with the specified text value.
Public property InsertRow(index, items) Inserts a row at index with items.
Public property RemoveGradient Removes the gradient.
Public property SetLinearGradient(mode, startColor, endColor) Creates a linear gradient listview background. See LinearGradientMode and Color for lists of possible values.
Public property SetRadialGradient(startColor, endColor) Creates a radial gradient listview background. See Color for a list of possible values.
Events
  Name Description
Public event

SelectedIndexChanged

Occurs when a listview item is selected or changed. See EventArgs for the properties returned by the handler's args parameter.

Inheritance Hierarchy

elsystem.Object

  elsystem.DotNetObject

    elsystem.ELComponent

      elsystem.ELWFComponent

        elsystem.windows.forms.Control

          elsystem.windows.forms.ListView