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.

适用于

另请参阅