67 references to Properties
System.Windows.Forms (67)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (60)
182internal bool IsAccessibilityObjectCreated => Properties.ContainsKey(s_accessibilityProperty); 195if (!Properties.TryGetValue(s_accessibilityProperty, out AccessibleObject? accessibleObject)) 197accessibleObject = Properties.AddValue(s_accessibilityProperty, CreateAccessibilityInstance()); 214get => Properties.GetValueOrDefault<string>(s_accessibleDefaultActionDescriptionProperty); 217Properties.AddOrRemoveValue(s_accessibleDefaultActionDescriptionProperty, value); 231get => Properties.GetValueOrDefault<string>(s_accessibleDescriptionProperty); 234Properties.AddOrRemoveValue(s_accessibleDescriptionProperty, value); 248get => Properties.GetValueOrDefault<string>(s_accessibleNameProperty); 251Properties.AddOrRemoveValue(s_accessibleNameProperty, value); 264get => Properties.GetValueOrDefault(s_accessibleRoleProperty, AccessibleRole.Default); 268Properties.AddOrRemoveValue(s_accessibleRoleProperty, value, defaultValue: AccessibleRole.Default); 390get => Properties.GetValueOrDefault<Image>(s_backgroundImageProperty); 393if (Properties.AddOrRemoveValue(s_backgroundImageProperty, value) != value) 489get => Properties.GetValueOrDefault(s_backgroundImageLayoutProperty, ImageLayout.Tile); 493if (Properties.AddOrRemoveValue(s_backgroundImageLayoutProperty, value, defaultValue: ImageLayout.Tile) != value) 526Properties.AddOrRemoveValue(s_backColorProperty, value, defaultValue: Color.Empty); 863Color foreColor = Properties.GetValueOrDefault<Color>(s_foreColorProperty); 880Properties.AddOrRemoveValue(s_foreColorProperty, value); 923if (Properties.AddOrRemoveValue(s_fontProperty, value) != value) 980PropertyStore IArrangedElement.Properties => Properties; 1025Image? image = Properties.GetValueOrDefault<Image>(s_imageProperty); 1034Properties.AddValue(s_imageProperty, image); 1067Properties.AddOrRemoveValue(s_imageProperty, value); 1133Properties.RemoveValue(s_imageProperty); 1162Properties.RemoveValue(s_imageProperty); 1196Color color = Properties.GetValueOrDefault<Color>(s_foreColorProperty); 1284get => Properties.GetValueOrDefault(s_mergeActionProperty, MergeAction.Append); 1288Properties.AddOrRemoveValue(s_mergeActionProperty, value, defaultValue: MergeAction.Append); 1300get => Properties.GetValueOrDefault(s_mergeIndexProperty, -1); 1301set => Properties.AddOrRemoveValue(s_mergeIndexProperty, value, -1); 1386get => WindowsFormsUtils.GetComponentName(this, Properties.GetValueOrDefault<string>(s_nameProperty)); 1394Properties.AddOrRemoveValue(s_nameProperty, value); 1556Image? image = Properties.GetValueOrDefault<Image>(s_imageProperty); 1609internal Color RawBackColor => Properties.GetValueOrDefault<Color>(s_backColorProperty, Color.Empty); 1639if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft)) 1670if (Properties.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit) 1672Properties.AddValue(s_rightToLeftProperty, value); 1720Properties.AddValue(s_mirroredImageProperty, mirroredImage); 1725return Properties.GetValueOrDefault<Image>(s_mirroredImageProperty); 1845get => Properties.GetValueOrDefault<object>(s_tagProperty); 1846set => Properties.AddOrRemoveValue(s_tagProperty, value); 1858get => Properties.TryGetValueOrNull(s_textProperty, out string? value) ? value : string.Empty; 1861if (Properties.AddOrRemoveValue(s_textProperty, value, defaultValue: string.Empty) != value) 1904ToolStripTextDirection textDirection = Properties.GetValueOrDefault(s_textDirectionProperty, ToolStripTextDirection.Inherit); 1924Properties.AddOrRemoveValue(s_textDirectionProperty, value, defaultValue: ToolStripTextDirection.Inherit); 2107Properties.RemoveValue(s_mirroredImageProperty); 2108Properties.RemoveValue(s_imageProperty); 2394Properties.RemoveValue(s_imageProperty); 2881Color backColor = Properties.GetValueOrDefault<Color>(s_backColorProperty); 2929Color foreColor = Properties.GetValueOrDefault<Color>(s_foreColorProperty); 2939if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft) || rightToLeft == RightToLeft.Inherit) 2955if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft)) 2970ToolStripTextDirection textDirection = Properties.GetValueOrDefault(s_textDirectionProperty, ToolStripTextDirection.Inherit); 3086if (Properties.TryGetValue(s_accessibilityProperty, out AccessibleObject? accessibleObject)) 3089Properties.RemoveValue(s_accessibilityProperty); 3286Color backColor = Properties.GetValueOrDefault<Color>(s_backColorProperty); 3300Color foreColor = Properties.GetValueOrDefault<Color>(s_foreColorProperty); 3354if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft)) 3362private bool ShouldSerializeTextDirection() => Properties.ContainsKey(s_textDirectionProperty); 3631internal bool TryGetExplicitlySetFont([NotNullWhen(true)] out Font? local) => Properties.TryGetValue(s_fontProperty, out local);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (7)
111Properties.AddOrRemoveValue(s_propMdiForm, mdiForm); 302get => Properties.GetValueOrDefault(s_propCheckState, CheckState.Unchecked); 310Properties.AddOrRemoveValue(s_propCheckState, value, defaultValue: CheckState.Unchecked); 359get => Properties.GetValueOrDefault(s_propShortcutKeys, Keys.None); 395Properties.AddOrRemoveValue(s_propShortcutKeys, value, defaultValue: Keys.None); 480internal Form? MdiForm => Properties.GetValueOrDefault<Form>(s_propMdiForm); 576Properties.RemoveValue(s_propMdiForm);