DrawListViewItemEventArgs.DrawText Method (TextFormatFlags)
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Use this method to draw the item text using the current values of the ListViewItem.ForeColor and ListViewItem.Font properties. The TextFormatFlags values specified in the flags parameter let you provide formatting properties for the node label, such as text alignment. The text is drawn within the area specified by the Bounds property. You can also draw the text manually using the Graphics retrieved through the Graphics property.
The DrawText method is most useful when the ListView.View property is set to a value other than View.Details. In the details view, this method draws the text for the ListViewItem, but does not draw the text for subitems. Therefore, in the details view, it is generally more convenient to draw all of the ListView text in a handler for the ListView.DrawSubItem event.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.