2 writes to data
System.Windows.Forms (2)
winforms\Managed\System\WinForms\MenuItem.cs (2)
1681
item.
data
= this;
1719
item.
data
= null;
113 references to data
System.Windows.Forms (113)
winforms\Managed\System\WinForms\MenuItem.cs (113)
193
return(
data
.State & STATE_BARBREAK) != 0;
197
data
.SetState(STATE_BARBREAK, value);
217
return(
data
.State & STATE_BREAK) != 0;
221
data
.SetState(STATE_BREAK, value);
238
return(
data
.State & STATE_CHECKED) != 0;
247
data
.SetState(STATE_CHECKED, value);
263
get { return(
data
.State & STATE_DEFAULT) != 0;}
273
data
.SetState(STATE_DEFAULT, value);
292
return((
data
.State & STATE_OWNERDRAW) != 0);
295
data
.SetState(STATE_OWNERDRAW, value);
314
return(
data
.State & STATE_DISABLED) == 0;
318
data
.SetState(STATE_DISABLED, !value);
371
if (
data
!= null && MdiList) {
373
if (!(items[i].
data
.UserData is MdiListUserData)) {
411
return(
data
.State & STATE_MDILIST) != 0;
414
data
.MdiList = value;
438
get { return
data
.GetMenuID();}
507
return
data
.mergeType;
516
data
.MergeType = value;
534
return
data
.mergeOrder;
537
data
.MergeOrder = value;
553
return
data
.Mnemonic;
582
return(
data
.State & STATE_RADIOCHECK) != 0;
585
data
.SetState(STATE_RADIOCHECK, value);
610
return
data
.caption;
613
data
.SetCaption(value);
631
return
data
.shortcut;
639
data
.shortcut = value;
661
return
data
.showShortcut;
664
if (value !=
data
.showShortcut) {
665
data
.showShortcut = value;
685
return(
data
.State & STATE_HIDDEN) == 0;
688
data
.Visible = value;
702
data
.onClick += value;
705
data
.onClick -= value;
721
data
.onDrawItem += value;
724
data
.onDrawItem -= value;
738
data
.onMeasureItem += value;
741
data
.onMeasureItem -= value;
784
data
.onPopup += value;
787
data
.onPopup -= value;
802
data
.onSelect += value;
805
data
.onSelect -= value;
815
if (item.
data
.UserData is MdiListUserData) {
846
int state = itemSrc.
data
.State;
849
itemSrc.Text, itemSrc.
data
.onClick, itemSrc.
data
.onPopup, itemSrc.
data
.onSelect,
850
itemSrc.
data
.onDrawItem, itemSrc.
data
.onMeasureItem);
851
data
.SetState(state & STATE_CLONE_MASK, true);
855
if ((
data
.State & STATE_HIDDEN) == 0) {
860
dataVersion =
data
.version;
881
info.fType =
data
.State & (STATE_BARBREAK | STATE_BREAK | STATE_RADIOCHECK | STATE_OWNERDRAW);
891
if (
data
.caption.Equals("-")) {
893
data
.caption = " ";
902
info.fState =
data
.State & (STATE_CHECKED | STATE_DEFAULT | STATE_DISABLED);
937
if (
data
.OwnerDraw)
950
if (
data
.showShortcut &&
data
.shortcut != 0 && !IsParent && !isTopLevel) {
951
info.dwTypeData =
data
.caption + "\t" + TypeDescriptor.GetConverter(typeof(Keys)).ConvertToString((Keys)(int)
data
.shortcut);
956
info.dwTypeData = (
data
.caption.Length == 0 ? " " :
data
.caption);
976
if (
data
!= null) {
977
data
.RemoveItem(this);
1057
MsaaMenuInfoWithId msaaMenuInfoStruct = new MsaaMenuInfoWithId(
data
.caption, uniqueID);
1088
if (main != null && ((
data
.State & STATE_INMDIPOPUP) == 0)) {
1096
this.
data
!= null &&
1097
this.
data
.baseItem != null &&
1098
this.
data
.baseItem.MenuItems.Contains(item)) {
1102
} else if (this.
data
!= null) {
1103
MenuItem currentMenuItem = this.
data
.firstItem;
1107
item.
data
.AddItem(newItem);
1144
data
.SetState(STATE_INMDIPOPUP, true);
1159
sep.
data
.UserData = new MdiListUserData();
1186
windowItem.
data
.UserData = new MdiListFormData(this, i);
1207
moreWindows.
data
.UserData = new MdiListMoreWindowsData(this);
1214
data
.SetState(STATE_INMDIPOPUP, false);
1230
data
.AddItem(newItem);
1244
itemSrc.
data
.AddItem(this);
1255
if (
data
.UserData is MdiListUserData) {
1256
((MdiListUserData)
data
.UserData).OnClick(e);
1258
else if (
data
.baseItem != this) {
1259
data
.baseItem.OnClick(e);
1261
else if (
data
.onClick != null) {
1262
data
.onClick(this, e);
1274
if (
data
.baseItem != this) {
1275
data
.baseItem.OnDrawItem(e);
1277
else if (
data
.onDrawItem != null) {
1278
data
.onDrawItem(this, e);
1290
if (
data
.baseItem != this) {
1291
data
.baseItem.OnMeasureItem(e);
1293
else if (
data
.onMeasureItem != null) {
1294
data
.onMeasureItem(this, e);
1318
if (
data
.baseItem != this) {
1319
data
.baseItem.OnPopup(e);
1321
else if (
data
.onPopup != null) {
1322
data
.onPopup(this, e);
1343
if (
data
.baseItem != this) {
1344
data
.baseItem.OnSelect(e);
1346
else if (
data
.onSelect != null) {
1347
data
.onSelect(this, e);
1390
if ((
data
.State & STATE_DISABLED) != 0) return false;
1412
if (
data
!= null &&
data
.caption != null)
1413
menuItemText =
data
.caption;
1419
if (dataVersion !=
data
.version)
1474
dataVersion =
data
.version;
1673
if (item.
data
!= this) {
1674
if (item.
data
!= null) {
1675
item.
data
.RemoveItem(item);
1707
Debug.Assert(item.
data
== this, "bad item passed to MenuItemData.removeItem");