ListViewItem
Wisej.Web.ListViewItem
Last updated
Wisej.Web.ListViewItem
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents an item in a ListView control.
Initializes a new instance of the ListViewItem class with default values.
Initializes a new instance of the ListViewItem class with the specified item text.
Initializes a new instance of the ListViewItem class with an array of strings representing sub-items.
Initializes a new instance of the ListViewItem class with the specified item text and the image index position of the item's icon.
Initializes a new instance of the ListViewItem class with the image index position of the item's icon and an array of strings representing sub-items.
Initializes a new instance of the ListViewItem class with the image index position of the item's icon; the foreground color, background color, and font of the item; and an array of strings representing sub-items.
imageIndex
Initializes a new instance of the ListViewItem class with the image index position of the item's icon and an array of ListViewSubItem objects.
subItems
An array of type ListViewSubItem that represents the sub-items of the item.
Initializes a new instance of the ListViewItem class with the specified text and image.
imageKey
The name of the image within the ImageList of the owning ListView to display in the ListViewItem.
Initializes a new instance of the ListViewItem class with the specified item and sub-item text and image.
imageKey
The name of the image within the ImageList of the owning ListView to display in the ListViewItem.
Initializes a new instance of the ListViewItem class with the sub-items containing the specified text, image, colors, and font.
imageKey
Initializes a new instance of the ListViewItem class with the specified sub-items and image.
imageKey
The name of the image within the ImageList of the owning ListView to display in the ListViewItem.
Boolean: Returns or sets a value indicating that the item can display HTML text. (Default: False
)
When AllowHtml is set to true, the text in the item can contain HTML content. If the text contains new lines (CRLF) but doesn't contain HTML elements (at least one "<") all CRLF are automatically substituted with "<br/>".
Color: Returns or sets the background color of the ListView.
Boolean: Returns or sets whether the item is checked. (Default: False
)
Int32: Returns or sets the number of columns that this item can use to render its content when the ListView is in Details mode. (Default: 1
)
Throws:
ArgumentOutOfRangeException The value is lower than 1 or greater than 100.
ContextMenu: Returns or sets the shortcut menu associated with the item. (Default: null
)
Control: Returns or sets a child control to display inside the item.
Object: Returns the data-bound object for this ListViewItem.
Boolean: Return or sets whether the item has the focus within the ListView parent.
Font: Returns or sets the font of the text displayed by the ListView.
Color: Returns or sets the foreground color of the ListView.
Boolean: Checks if the UserData dynamic object was created and has any value.
Image: Returns or sets the image that is displayed on a ListViewItem.
Int32: Returns or sets the image list index value of the image displayed in the ListViewItem. (Default: -1
)
Throws:
ArgumentOutOfRangeException The specified index is less than -1.
String: Returns or sets the key accessor for the image in the ImageList. (Default: ""
)
ImageList: Returns the ImageList that contains the images displayed in the ListViewItem.
String: Returns or sets the theme name or URL for the image to display in the ListViewItem.
Int32: Returns the zero-based index of the item within the ListView control.
Boolean: Returns whether the ListViewItem is data bound.
Boolean: Returns a value indicating whether the tree node is in an editable state.
ListView: Returns the ListView control that contains the item.
String: Returns or sets the name associated with this item.
Int32: Returns or sets the height of the row corresponding to this item when in Details view.
Int32: Returns or sets the number of rows that this item can use to render its content when the ListView is in Details mode. (Default: 1
)
Throws:
ArgumentOutOfRangeException The value is lower than 1 or greater than 100.
Boolean: Returns or sets whether the item is selected.
Int32: Returns or sets the image list index value of the state icon displayed in the ListViewItem. (Default: -1
)
Throws:
ArgumentOutOfRangeException The specified index is less than -1.
String: Returns or sets the key for the state icon displayed in the ImageList. (Default: ""
)
ImageList: Returns the ImageList that contains the state images displayed in the ListViewItem.
String: Returns or sets the theme name or URL for the state icon to display in the ListViewItem.
ListViewSubItemCollection: Returns a collection containing all sub items.
Object: Returns or sets an object that contains data to associate with the item. (Default: null
)
String: Returns or sets the text of the item. (Default: ""
)
String: Returns or sets the text shown when the mouse pointer rests on the ListViewItem. (Default: ""
)
Object: Returns a dynamic object that can be used to store custom data in relation to this item.
Places the item in edit mode.
Throws:
InvalidOperationException The LabelEdit property of the associated ListView is not set to true.
Creates an identical copy of the item.
Returns: Object. An object that represents an item that has the same text, image, and sub-items associated with it as the cloned item.
Releases all resources used by the ListViewItem.
Ensures that the item is visible within the control, scrolling the contents of the control, if necessary.
Removes the item from its associated ListView control.
Provides access to common image properties across the controls that implement this interface.