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); 1617internal Color RawBackColor => Properties.GetValueOrDefault<Color>(s_backColorProperty, Color.Empty); 1647if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft)) 1678if (Properties.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit) 1680Properties.AddValue(s_rightToLeftProperty, value); 1728Properties.AddValue(s_mirroredImageProperty, mirroredImage); 1733return Properties.GetValueOrDefault<Image>(s_mirroredImageProperty); 1853get => Properties.GetValueOrDefault<object>(s_tagProperty); 1854set => Properties.AddOrRemoveValue(s_tagProperty, value); 1866get => Properties.TryGetValueOrNull(s_textProperty, out string? value) ? value : string.Empty; 1869if (Properties.AddOrRemoveValue(s_textProperty, value, defaultValue: string.Empty) != value) 1912ToolStripTextDirection textDirection = Properties.GetValueOrDefault(s_textDirectionProperty, ToolStripTextDirection.Inherit); 1932Properties.AddOrRemoveValue(s_textDirectionProperty, value, defaultValue: ToolStripTextDirection.Inherit); 2115Properties.RemoveValue(s_mirroredImageProperty); 2116Properties.RemoveValue(s_imageProperty); 2402Properties.RemoveValue(s_imageProperty); 2889Color backColor = Properties.GetValueOrDefault<Color>(s_backColorProperty); 2937Color foreColor = Properties.GetValueOrDefault<Color>(s_foreColorProperty); 2947if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft) || rightToLeft == RightToLeft.Inherit) 2963if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft)) 2978ToolStripTextDirection textDirection = Properties.GetValueOrDefault(s_textDirectionProperty, ToolStripTextDirection.Inherit); 3094if (Properties.TryGetValue(s_accessibilityProperty, out AccessibleObject? accessibleObject)) 3097Properties.RemoveValue(s_accessibilityProperty); 3294Color backColor = Properties.GetValueOrDefault<Color>(s_backColorProperty); 3308Color foreColor = Properties.GetValueOrDefault<Color>(s_foreColorProperty); 3362if (!Properties.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft)) 3370private bool ShouldSerializeTextDirection() => Properties.ContainsKey(s_textDirectionProperty); 3639internal 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);