System.Windows.Forms.ListViewItem.UseItemStyleForSubItems Property

Gets or sets a value indicating whether the ListViewItem.Font, ListViewItem.ForeColor, and ListViewItem.BackColor properties for the item are used for all its subitems.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool UseItemStyleForSubItems { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If you do not want to have a uniform background color, foreground color, and font used for all items and subitems in your System.Windows.Forms.ListView control, you can set this property to false. When this property is set to true, any changes made to the subitem's System.Windows.Forms.ListViewItem.ListViewSubItem.Font, System.Windows.Forms.ListViewItem.ListViewSubItem.ForeColor, and System.Windows.Forms.ListViewItem.ListViewSubItem.BackColor properties are ignored, and the values of the item are used instead. You can use this property if you need to specify a different text color, background color, or font to be used for a subitem to highlight the item when subitems are displayed in the System.Windows.Forms.ListView control.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0