ItemCollection.Remove(Object) 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 item reference from the collection or view.
public:
virtual void Remove(System::Object ^ removeItem);
public void Remove (object removeItem);
abstract member Remove : obj -> unit
override this.Remove : obj -> unit
Public Sub Remove (removeItem As Object)
Parameters
- removeItem
- Object
The object to remove.
Implements
Exceptions
The ItemCollection is read-only because it is in ItemsSource mode or if DeferRefresh is in effect.
Remarks
When an item is removed from the collection, any remaining items with higher index values decrement their index by one as the size of the collection collapses.
Applies to
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ