MenuBase.IsItemItsOwnContainerOverride(Object) 方法

定义

确定指定项是否是其自身的项容器,或是否可以作为其自身的项容器。Determines whether the specified item is, or is eligible to be, its own item container.

protected:
 override bool IsItemItsOwnContainerOverride(System::Object ^ item);
protected override bool IsItemItsOwnContainerOverride (object item);
override this.IsItemItsOwnContainerOverride : obj -> bool
Protected Overrides Function IsItemItsOwnContainerOverride (item As Object) As Boolean

参数

item
Object

要检查是其否为项容器的项。The item to check whether it is an item container.

返回

如果该项是一个 MenuItemSeparator,则为 true;否则为 falsetrue if the item is a MenuItem or a Separator; otherwise, false.

适用于