Menu.Handle 属性

定义

获取表示菜单的窗口句柄的值。Gets a value representing the window handle for the menu.

public:
 property IntPtr Handle { IntPtr get(); };
[System.ComponentModel.Browsable(false)]
public IntPtr Handle { get; }
member this.Handle : nativeint
Public ReadOnly Property Handle As IntPtr

属性值

菜单的 HMENU 值。The HMENU value of the menu.

属性

注解

您可以使用此属性来获取菜单的句柄,以对此类或其派生类所提供的功能以外的菜单执行特殊操作。You can use this property to obtain the handle to the menu to perform special operations to the menu outside of the functionality provided by this class or its derived classes.

适用于