DrawListViewSubItemEventArgs::DrawText Method ()
.NET Framework (current version)
Draws the text of the ListViewItem::ListViewSubItem using its current foreground color.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Use this method to draw the subitem text using the current values of the ListViewItem::ListViewSubItem::ForeColor and ListViewItem::ListViewSubItem::Font properties. The text is drawn within the area specified by the Bounds property.
Note |
|---|
The UseItemStyleForSubItems property of the parent ListViewItem must be set to false to prevent the ListViewItem::ForeColor and ListViewItem::Font values of the parent item from overriding the subitem values. |
.NET Framework
Available since 2.0
Available since 2.0
Show:
