System.Windows.Forms.DrawListViewSubItemEventArgs.DrawText Method

Draws the text of the System.Windows.Forms.ListViewItem.ListViewSubItem using its current foreground color.

Syntax

public void DrawText ()

Remarks

Use this method to draw the subitem text using the current values of the System.Windows.Forms.ListViewItem.ListViewSubItem.ForeColor and System.Windows.Forms.ListViewItem.ListViewSubItem.Font properties. The text is drawn within the area specified by the DrawListViewItemEventArgs.Bounds property.

Note:

The ListViewItem.UseItemStyleForSubItems property of the parent System.Windows.Forms.ListViewItem must be set to false to prevent the ListViewItem.ForeColor and ListViewItem.Font values of the parent item from overriding the subitem values.

Requirements

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