GridTableStylesCollection.Clear Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Clears the collection.

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

public void Clear()

The following code example clears the GridTableStylesCollection before adding a new DataGridTableStyle.

private void ClearAndAdd()
{
   GridTableStylesCollection gts = dataGrid1.TableStyles;
   gts.Clear();
}

.NET Framework
Available since 1.1
Return to top
Show: