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.

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft