ListViewItem Constructor (array<String^>^, String^, Color, Color, Font^)
.NET Framework (current version)
Initializes a new instance of the ListViewItem class with the subitems containing the specified text, image, colors, and font.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: ListViewItem( array<String^>^ items, String^ imageKey, Color foreColor, Color backColor, Font^ font )
Parameters
- items
-
Type:
array<System::String^>^
An array of strings that represent the text of the subitems for the ListViewItem.
- imageKey
-
Type:
System::String^
The name of the image within the ImageList of the owning ListView to display in the item.
- foreColor
-
Type:
System.Drawing::Color
A Color that represents the foreground color of the item.
- backColor
-
Type:
System.Drawing::Color
A Color that represents the background color of the item.
- font
-
Type:
System.Drawing::Font^
A Font to apply to the item text.
.NET Framework
Available since 2.0
Available since 2.0
Show: