ListViewItem::ListViewSubItem Constructor (ListViewItem^, String^, Color, Color, Font^)

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
ListViewSubItem(
	ListViewItem^ owner,
	String^ text,
	Color foreColor,
	Color backColor,
	Font^ font
)

Parameters

owner
Type: System.Windows.Forms::ListViewItem^

A ListViewItem that represents the item that owns the subitem.

text
Type: System::String^

The text to display for the subitem.

foreColor
Type: System.Drawing::Color

A Color that represents the foreground color of the subitem.

backColor
Type: System.Drawing::Color

A Color that represents the background color of the subitem.

font
Type: System.Drawing::Font^

A Font that represents the font to display the subitem's text in.

.NET Framework
Available since 1.1
Return to top
Show: