ItemsControl.IsItemItsOwnContainer(Object) 方法

定義

判斷指定的項目是否為 (或可以成為) 其本身的容器。Determines if the specified item is (or is eligible to be) its own container.

public:
 bool IsItemItsOwnContainer(System::Object ^ item);
public bool IsItemItsOwnContainer (object item);
member this.IsItemItsOwnContainer : obj -> bool
Public Function IsItemItsOwnContainer (item As Object) As Boolean

參數

item
Object

要檢查的項目。The item to check.

傳回

Boolean

如果項目是 (或可以成為) 其本身的容器,則為 true;否則為 falsetrue if the item is (or is eligible to be) its own container; otherwise, false.

備註

這個方法會呼叫 IsItemItsOwnContainerOverride 方法。This method calls the IsItemItsOwnContainerOverride method.

適用於