DrawListViewColumnHeaderEventArgs.DrawText Method

Definition

Draws the column header text.

Overloads

DrawText()

Draws the column header text using the default formatting.

DrawText(TextFormatFlags)

Draws the column header text, formatting it with the specified TextFormatFlags values.

DrawText()

Source:
DrawListViewColumnHeaderEventArgs.cs
Source:
DrawListViewColumnHeaderEventArgs.cs
Source:
DrawListViewColumnHeaderEventArgs.cs

Draws the column header text using the default formatting.

C#
public void DrawText();

Remarks

Use this method when you do not need to customize the appearance of the header text.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DrawText(TextFormatFlags)

Source:
DrawListViewColumnHeaderEventArgs.cs
Source:
DrawListViewColumnHeaderEventArgs.cs
Source:
DrawListViewColumnHeaderEventArgs.cs

Draws the column header text, formatting it with the specified TextFormatFlags values.

C#
public void DrawText(System.Windows.Forms.TextFormatFlags flags);

Parameters

flags
TextFormatFlags

A bitwise combination of TextFormatFlags values.

Remarks

Use this method when you do not need to customize the appearance of the header text. The TextFormatFlags values specified in the flags parameter let you provide formatting properties for the header, such as text alignment.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9