ListViewItem::ListViewSubItem Constructor (ListViewItem^, String^, Color, Color, Font^)
.NET Framework (current version)
Initializes a new instance of the ListViewItem::ListViewSubItem class with the specified owner, text, foreground color, background color, and font values.
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
Available since 1.1
Show: