Menu.FindMenuItem(Int32, IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
Returns
The MenuItem that matches value; otherwise, null
.
Remarks
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.
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.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.