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