Skip to main content
Version: 4.1

ListViewSubItem

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a sub-item of a ListViewItem.

public class ListViewSubItem : IDisposable, IHasPropertyStore, IUserData

Constructors​

Instance member ListViewSubItem()​

Initializes a new instance of the ListViewSubItem class.

Instance member ListViewSubItem(owner, text)​

Initializes a new instance of the ListViewSubItem class with the specified owner and text.

NameTypeDescription
ownerListViewItemA ListViewItem that represents the item that owns the sub item.
textStringThe text to display for the sub item.

Instance member ListViewSubItem(owner, text, foreColor, backColor, font)​

Initializes a new instance of the ListViewSubItem class with the specified owner, text, foreground color, background color, and font values.

NameTypeDescription
ownerListViewItemA ListViewItem that represents the item that owns the sub item.
textStringThe text to display for the sub item.
foreColorColorA Color that represents the foreground color of the sub item.
backColorColorA Color that represents the background color of the sub item.
fontFontA Font that represents the font to display the sub item's text in.

Properties​

Instance member AllowHtml​

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/>".

Instance member BackColor​

Color: Returns or sets the background color of the ListViewSubItem.

Instance member ColSpan​

Int32: Returns or sets the number of columns that this sub-item can use to render its content when the ListView is in Details mode. (Default: 1)

Throws:

Instance member Control​

Control: Returns or sets a child control to display inside the sub-item.

Instance member Font​

Font: Returns or sets the font of the text displayed by the ListViewSubItem.

Instance member ForeColor​

Color: Returns or sets the foreground color of the ListViewSubItem.

Instance member HasUserData​

Boolean: Checks if the UserData dynamic object was created and has any value.

Instance member Name​

String: Returns or sets the name associated with this subitem.

Instance member RowSpan​

Int32: Returns or sets the number of rows that this sub-item can use to render its content when the ListView is in Details mode. (Default: 1)

Throws:

Instance member Tag​

Object: Returns or sets an object that contains data to associate with the sub-item. (Default: null)

Instance member Text​

String: Returns or sets the text of the sub item.

Instance member UserData​

Object: Returns a dynamic object that can be used to store custom data in relation to this item.

Methods​

Instance member Dispose()​

Releases all resources used by the ListViewSubItem.

Protected member Dispose(disposing)​

Releases the resources used by the ListViewSubItem.

ParameterTypeDescription
disposingBooleantrue when this method is called by the application rather than a finalizer.

Protected member Finalize()​

Destructor dispose pattern.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.