ListViewItem.ListViewSubItem Constructor (ListViewItem, String, Color, Color, Font)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: