GridTableStylesCollection.Clear 方法

定义

清除集合。

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

示例

下面的代码示例在 GridTableStylesCollection 添加新 DataGridTableStyle之前清除 。

private:
   void ClearAndAdd()
   {
      GridTableStylesCollection^ gts = dataGrid1->TableStyles;
      gts->Clear();
   }
private void ClearAndAdd()
{
   GridTableStylesCollection gts = dataGrid1.TableStyles;
   gts.Clear();
}
Private Sub ClearAndAdd()
   Dim gts As GridTableStylesCollection = dataGrid1.TableStyles
   gts.Clear()
End Sub

适用于