1 write to menu
System.Windows.Forms (1)
winforms\Managed\System\WinForms\MenuItem.cs (1)
424
menu
= value;
48 references to menu
System.Windows.Forms (48)
winforms\Managed\System\WinForms\MenuItem.cs (48)
265
if (
menu
!= null) {
267
UnsafeNativeMethods.SetMenuDefaultItem(new HandleRef(
menu
,
menu
.handle), MenuID, false);
270
UnsafeNativeMethods.SetMenuDefaultItem(new HandleRef(
menu
,
menu
.handle), -1, false);
333
if (
menu
!= null) {
334
for (int i = 0; i <
menu
.ItemCount; i++) {
335
if (
menu
.items[i] == this) return i;
344
if (value < 0 || value >=
menu
.ItemCount) {
350
Menu parent =
menu
;
384
if (
menu
!= null && !(
menu
is MenuItem)) {
421
return
menu
;
447
if (
menu
== null)
453
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(
menu
,
menu
.handle), MenuID, false, info);
471
if (
menu
== null) return -1;
473
int count = UnsafeNativeMethods.GetMenuItemCount(new HandleRef(
menu
,
menu
.Handle));
480
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(
menu
,
menu
.handle), i, true, info);
566
get {return
menu
;}
857
UnsafeNativeMethods.InsertMenuItem(new HandleRef(
menu
,
menu
.handle), -1, true, info);
887
if (
menu
== GetMainMenu()) {
972
if (
menu
!= null) {
973
menu
.MenuItems.Remove(this);
1079
if (
menu
!= null &&
menu
.created) {
1099
if (
menu
!= null &&
menu
.created) {
1386
if (
menu
is MenuItem) {
1387
MenuItem parent = (MenuItem)
menu
;
1388
if (!parent.ShortcutClick() ||
menu
!= parent) return false;
1433
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(
menu
,
menu
.handle), MenuID, false, info);
1439
UnsafeNativeMethods.SetMenuItemInfo(new HandleRef(
menu
,
menu
.handle), MenuID, false, info);
1455
if (
menu
== null || !
menu
.created) {
1459
if (force ||
menu
is MainMenu ||
menu
is ContextMenu) {
1461
UnsafeNativeMethods.SetMenuItemInfo(new HandleRef(
menu
,
menu
.handle), MenuID, false, info);
1475
if (
menu
is MainMenu) {
1476
Form f = ((MainMenu)
menu
).GetFormUnsafe();
1701
if (item.
menu
!= null)
1702
item.
menu
.ItemsChanged(change);