Clear() public method

Clears the collection of any columns.
public Clear ( ) : void
return void
示例#1
0
 private void ResetColumns()
 {
     // this method is used design-time scenarios via reflection
     //   by the property grid context menu to show the Reset option or not
     Columns.Clear();
 }
 private uint Pop(CUQueue UQueue, ref DataColumnCollection Cols)
 {
     bool bNull = false;
     uint nSize = UQueue.GetSize();
     UQueue.Load(out bNull);
     if (bNull)
         Cols = null;
     else
     {
         int n;
         int nLen;
         DataColumn dc = null;
         Cols.Clear();
         UQueue.Load(out nLen);
         for (n = 0; n < nLen; n++)
         {
             Pop(UQueue, ref dc);
             Cols.Add(dc);
             dc = null;
         }
     }
     return (nSize - UQueue.GetSize());
 }