Menu.FindMenuItem(Int32, IntPtr) Método
Definición
public:
System::Windows::Forms::MenuItem ^ FindMenuItem(int type, IntPtr value);
public System.Windows.Forms.MenuItem FindMenuItem (int type, IntPtr value);
member this.FindMenuItem : int * nativeint -> System.Windows.Forms.MenuItem
Public Function FindMenuItem (type As Integer, value As IntPtr) As MenuItem
Parámetros
- type
- Int32
Tipo de elemento que se va a utilizar para buscar el objeto MenuItem.The type of item to use to find the MenuItem.
- value
- IntPtr
Elemento que se va a utilizar para buscar el objeto MenuItem.The item to use to find the MenuItem.
Devoluciones
El objeto MenuItem que coincide con el valor; de lo contrario, es null
.The MenuItem that matches value; otherwise, null
.
Comentarios
Para buscar un MenuItem mediante un identificador, pase el FindHandle campo como el tipo MenuItem y el identificador de que desea buscar como valor.To search for a MenuItem using a handle, pass in the FindHandle field as the type, and the handle of the MenuItem you want to find as the value.
Para buscar un MenuItem mediante un método abreviado, pase el FindShortcut campo como el tipo y MenuItem el valor de acceso directo del que desea buscar como valor.To search for a MenuItem using a shortcut, pass in the FindShortcut field as the type, and the Shortcut value for the MenuItem you want to find as the value.
Seguridad
UIPermission
para que los controles llamen a este método.for controls to call this method. Enumeración asociada:AllWindowsAssociated enumeration: AllWindows