This documentation is archived and is not being maintained.

ListViewItem.ListViewSubItem.BackColor Property

Gets or sets the background color of the subitem's text.

[Visual Basic]
Public Property BackColor As Color
public Color BackColor {get; set;}
public: __property Color get_BackColor();
public: __property void set_BackColor(Color);
public function get BackColor() : Color;
public function set BackColor(Color);

Property Value

A Color that represents the background color of the subitem's text.


You can use the BackColor property to change the color displayed behind the subitem text. This property can be used if you want to use different background and foreground color combinations (using the ForeColor property to set the foreground color) to differentiate one subitem from another. For example, you could set the BackColor property to Color.Red to identify subitems that display a negative value.

If the UseItemStyleForSubItems property of the ListViewItem that owns the subitem is set to true, setting this property has no effect.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ListViewItem.ListViewSubItem Class | ListViewItem.ListViewSubItem Members | System.Windows.Forms Namespace | Color | ListViewItem.BackColor