ListViewItem.ListViewSubItem ListViewItem.ListViewSubItem ListViewItem.ListViewSubItem ListViewItem.ListViewSubItem Constructors

定义

重载

ListViewItem.ListViewSubItem() ListViewItem.ListViewSubItem() ListViewItem.ListViewSubItem()

使用默认值初始化 ListViewItem.ListViewSubItem 类的新实例。Initializes a new instance of the ListViewItem.ListViewSubItem class with default values.

ListViewItem.ListViewSubItem(ListViewItem, String) ListViewItem.ListViewSubItem(ListViewItem, String) ListViewItem.ListViewSubItem(ListViewItem, String) ListViewItem.ListViewSubItem(ListViewItem, String)

用指定的所有者和文本初始化 ListViewItem.ListViewSubItem 类的新实例。Initializes a new instance of the ListViewItem.ListViewSubItem class with the specified owner and text.

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

用指定的所有者、文本、前景色、背景色和字体值初始化 ListViewItem.ListViewSubItem 类的新实例。Initializes a new instance of the ListViewItem.ListViewSubItem class with the specified owner, text, foreground color, background color, and font values.

ListViewItem.ListViewSubItem() ListViewItem.ListViewSubItem() ListViewItem.ListViewSubItem()

使用默认值初始化 ListViewItem.ListViewSubItem 类的新实例。Initializes a new instance of the ListViewItem.ListViewSubItem class with default values.

public:
 ListViewSubItem();
public ListViewSubItem ();
Public Sub New ()

ListViewItem.ListViewSubItem(ListViewItem, String) ListViewItem.ListViewSubItem(ListViewItem, String) ListViewItem.ListViewSubItem(ListViewItem, String) ListViewItem.ListViewSubItem(ListViewItem, String)

用指定的所有者和文本初始化 ListViewItem.ListViewSubItem 类的新实例。Initializes a new instance of the ListViewItem.ListViewSubItem class with the specified owner and text.

public:
 ListViewSubItem(System::Windows::Forms::ListViewItem ^ owner, System::String ^ text);
public ListViewSubItem (System.Windows.Forms.ListViewItem owner, string text);
new System.Windows.Forms.ListViewItem.ListViewSubItem : System.Windows.Forms.ListViewItem * string -> System.Windows.Forms.ListViewItem.ListViewSubItem
Public Sub New (owner As ListViewItem, text As String)

参数

owner
ListViewItem ListViewItem ListViewItem ListViewItem

ListViewItem,表示拥有该子项的项。A ListViewItem that represents the item that owns the subitem.

text
String String String String

要为该子项显示的文本。The text to display for the subitem.

另请参阅

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

用指定的所有者、文本、前景色、背景色和字体值初始化 ListViewItem.ListViewSubItem 类的新实例。Initializes a new instance of the ListViewItem.ListViewSubItem class with the specified owner, text, foreground color, background color, and font values.

public:
 ListViewSubItem(System::Windows::Forms::ListViewItem ^ owner, System::String ^ text, System::Drawing::Color foreColor, System::Drawing::Color backColor, System::Drawing::Font ^ font);
public ListViewSubItem (System.Windows.Forms.ListViewItem owner, string text, System.Drawing.Color foreColor, System.Drawing.Color backColor, System.Drawing.Font font);
new System.Windows.Forms.ListViewItem.ListViewSubItem : System.Windows.Forms.ListViewItem * string * System.Drawing.Color * System.Drawing.Color * System.Drawing.Font -> System.Windows.Forms.ListViewItem.ListViewSubItem

参数

owner
ListViewItem ListViewItem ListViewItem ListViewItem

ListViewItem,表示拥有该子项的项。A ListViewItem that represents the item that owns the subitem.

text
String String String String

要为该子项显示的文本。The text to display for the subitem.

foreColor
Color Color Color Color

Color,表示该子项的前景色。A Color that represents the foreground color of the subitem.

backColor
Color Color Color Color

Color,表示该子项的背景色。A Color that represents the background color of the subitem.

font
Font Font Font Font

Font,表示用于显示该子项文本的字体。A Font that represents the font to display the subitem's text in.

另请参阅

适用于