Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DrawListViewSubItemEventArgs::DrawText Method ()

 

Draws the text of the ListViewItem::ListViewSubItem using its current foreground color.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
void DrawText()

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.

System_CAPS_noteNote

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
Return to top
Show:
© 2017 Microsoft