TableRowCollection.Remove(TableRow) Method

Definition

从集合中移除指定的项。Removes a specified item from the collection.

public:
 virtual bool Remove(System::Windows::Documents::TableRow ^ item);
public bool Remove (System.Windows.Documents.TableRow item);
abstract member Remove : System.Windows.Documents.TableRow -> bool
override this.Remove : System.Windows.Documents.TableRow -> bool
Public Function Remove (item As TableRow) As Boolean

Parameters

item
TableRow

要从集合中移除的项。An item to remove from the collection.

Returns

Boolean

如果找到并移除了指定项,则为 true;否则为 falsetrue if the specified item was found and removed; otherwise, false.

Implements

Exceptions

item 不存在于集合中时引发。Raised if item is not present in the collection.

item 为 null 时引发。Raised when item is null.

Remarks

可以调整其余收集项的索引,以反映删除的集合项。Indices for remaining collection items may be adjusted to reflect the removed collection item.

Applies to

See also