ListView.ColumnHeaderCollection.Remove(ColumnHeader) 方法

定義

移除集合中指定的欄位標頭。

public:
 virtual void Remove(System::Windows::Forms::ColumnHeader ^ column);
public virtual void Remove(System.Windows.Forms.ColumnHeader column);
abstract member Remove : System.Windows.Forms.ColumnHeader -> unit
override this.Remove : System.Windows.Forms.ColumnHeader -> unit
Public Overridable Sub Remove (column As ColumnHeader)

參數

column
ColumnHeader

A ColumnHeader 代表要從集合中移除的欄位標頭。

備註

當你從集合中移除欄位標頭時,集合中後續欄位標頭的索引也會改變。 所有關於被移除欄位標頭的資訊都會被刪除。 你可以用這個方法指定要移除的實際 ColumnHeader 欄位,來移除集合中特定的欄位標頭。 若要指定要移除的欄位標頭索引,而非欄位標頭本身,請使用該 RemoveAt 方法。 要移除集合中所有欄位標頭,請使用該 Clear 方法。

適用於

另請參閱