DataGridTableStyle.ResetHeaderFont Method ()


Resets the HeaderFont property to its default value.

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

public void ResetHeaderFont()

You typically use this method if you are either creating a designer for the DataGridTableStyle or creating your own control incorporating the DataGridTableStyle.

The following code example demonstrates the use of this member.

private void MySetButton_Click(object sender, EventArgs e)
   // Set the 'HeaderFont' property of the DataGridTableStyle instance.
   myTableStyle.HeaderFont=new Font("Impact",10);
   // Add the DataGridTableStyle instance to the GridTableStylesCollection. 
private void MyResetButton_Click(object sender, EventArgs e)
   // Reset the Header Font to its default value.

.NET Framework
Available since 1.1
Return to top