ListView.ColumnHeaderCollection.Remove(ColumnHeader) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified column header from the collection.
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)
Parameters
- column
- ColumnHeader
A ColumnHeader representing the column header to remove from the collection.
Remarks
When you remove a column header from the collection, the indexes change for subsequent column headers in the collection. All information about the removed column header is deleted. You can use this method to remove a specific column header from the collection by specifying the actual ColumnHeader to remove. To specify the index of the column header to remove instead of the column header itself, use the RemoveAt method. To remove all column headers from the collection, use the Clear method.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈