GridTableStylesCollection::Clear Method ()

 

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: