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