Menu.FindMenuItem(Int32, IntPtr) Método

Definição

Obtém o MenuItem que contém o valor especificado.Gets the MenuItem that contains the value specified.

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

O tipo de item a ser usado para localizar o MenuItem.The type of item to use to find the MenuItem.

value
IntPtr

O item a ser usado para localizar o MenuItem.The item to use to find the MenuItem.

Retornos

MenuItem

O MenuItem que corresponde ao valor; caso contrário, null.The MenuItem that matches value; otherwise, null.

Comentários

Para pesquisar um MenuItem usando um identificador, passe o FindHandle campo como o tipo e o identificador do MenuItem que você deseja localizar como o 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 pesquisar um MenuItem usando um atalho, passe o FindShortcut campo como o tipo e o valor de atalho para o MenuItem que você deseja localizar como o 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.

Aplica-se a