DataGridViewSelectedColumnCollection.Clear 方法

定义

清除集合。Clears the collection.

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

实现

异常

始终引发。Always thrown.

注解

此方法与此类无关。This method is not relevant for this class. 不能直接更改DataGridViewSelectedColumnCollection类。You cannot change the DataGridViewSelectedColumnCollection class directly. 若要清除DataGridViewSelectedColumnCollection, 请DataGridView.ClearSelection使用方法。To clear the DataGridViewSelectedColumnCollection, use the DataGridView.ClearSelection method.

适用于

另请参阅