1 write to Properties
System.Windows.Forms (1)
System\Windows\Forms\Control.cs (1)
310
Properties
= new PropertyStore();
298 references to Properties
System.Windows.Forms (298)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
83
if (!
Properties
.TryGetValue(s_activeXImplProperty, out ActiveXImpl? activeXImpl))
94
activeXImpl =
Properties
.AddValue(s_activeXImplProperty, new ActiveXImpl(this));
System\Windows\Forms\Control.cs (125)
432
if (!
Properties
.TryGetValue(s_accessibilityProperty, out AccessibleObject? accessibleObject))
435
Properties
.AddValue(s_accessibilityProperty, accessibleObject);
451
if (!
Properties
.TryGetValue(s_ncAccessibilityProperty, out AccessibleObject? ncAccessibleObject))
454
Properties
.AddValue(s_ncAccessibilityProperty, ncAccessibleObject);
478
get =>
Properties
.GetValueOrDefault<string>(s_accessibleDefaultActionProperty);
479
set =>
Properties
.AddOrRemoveValue(s_accessibleDefaultActionProperty, value);
491
get =>
Properties
.GetValueOrDefault<string>(s_accessibleDescriptionProperty);
492
set =>
Properties
.AddOrRemoveValue(s_accessibleDescriptionProperty, value);
504
get =>
Properties
.GetValueOrDefault<string>(s_accessibleNameProperty);
505
set =>
Properties
.AddOrRemoveValue(s_accessibleNameProperty, value);
516
get =>
Properties
.GetValueOrDefault(s_accessibleRoleProperty, AccessibleRole.Default);
520
Properties
.AddOrRemoveValue(s_accessibleRoleProperty, value, defaultValue: AccessibleRole.Default);
568
if (
Properties
.TryGetValueOrNull(s_ambientPropertiesServiceProperty, out AmbientProperties? ambientProperties))
577
Properties
.AddValue(s_ambientPropertiesServiceProperty, ambientProperties);
654
get =>
Properties
.GetValueOrDefault(s_autoScrollOffsetProperty, Point.Empty);
655
set =>
Properties
.AddOrRemoveValue(s_autoScrollOffsetProperty, value, defaultValue: Point.Empty);
676
if (
Properties
.TryGetValue(s_backBrushProperty, out HBRUSH customBackBrush))
682
if (!
Properties
.ContainsKey(s_backColorProperty))
710
Properties
.AddValue(s_backBrushProperty, backBrush);
735
get =>
Properties
.TryGetValue(s_dataContextProperty, out object? value)
747
if (
Properties
.ContainsKey(s_dataContextProperty) && Equals(ParentInternal?.DataContext, value))
749
Properties
.RemoveValue(s_dataContextProperty);
754
Properties
.AddValue(s_dataContextProperty, value);
760
=>
Properties
.ContainsKey(s_dataContextProperty);
763
=>
Properties
.RemoveValue(s_dataContextProperty);
816
Properties
.AddOrRemoveValue(s_backColorProperty, value);
841
get =>
Properties
.GetValueOrDefault<Image>(s_backgroundImageProperty);
849
Properties
.AddOrRemoveValue(s_backgroundImageProperty, value);
871
get =>
Properties
.GetValueOrDefault(s_backgroundImageLayoutProperty, ImageLayout.Tile);
893
Properties
.AddOrRemoveValue(s_backgroundImageLayoutProperty, value, defaultValue: ImageLayout.Tile);
931
Properties
.GetValueOrDefault<ControlBindingsCollection>(s_bindingsProperty)?.Clear();
944
if (
Properties
.TryGetValue(s_bindingManagerProperty, out BindingContext? context))
961
BindingContext? oldContext =
Properties
.AddOrRemoveValue(s_bindingManagerProperty, value);
1112
int cacheTextCounter =
Properties
.GetValueOrDefault<int>(s_cacheTextCountProperty);
1125
int cacheTextCounter =
Properties
.GetValueOrDefault<int>(s_cacheTextCountProperty);
1131
Properties
.AddOrRemoveValue(s_cacheTextFieldProperty, _text);
1142
_text =
Properties
.GetValueOrDefault<string?>(s_cacheTextFieldProperty);
1146
Properties
.AddOrRemoveValue(s_cacheTextCountProperty, cacheTextCounter);
1232
get =>
Properties
.GetValueOrDefault<ContextMenuStrip>(s_contextMenuStripProperty);
1235
ContextMenuStrip? oldValue =
Properties
.AddOrRemoveValue(s_contextMenuStripProperty, value);
1441
internal bool IsAccessibilityObjectCreated =>
Properties
.ContainsKey(s_accessibilityProperty);
1469
if (
Properties
.TryGetValue(s_cursorProperty, out Cursor? cursor))
1482
Cursor? localCursor =
Properties
.GetValueOrDefault<Cursor>(s_cursorProperty);
1486
Properties
.AddOrRemoveValue(s_cursorProperty, value);
1534
if (!
Properties
.TryGetValue(s_bindingsProperty, out ControlBindingsCollection? bindings))
1536
bindings =
Properties
.AddValue(s_bindingsProperty, new ControlBindingsCollection(this));
1667
if (
Properties
.TryGetValue(s_fontHandleWrapperProperty, out FontHandleWrapper? fontHandle))
1670
Properties
.RemoveValue(s_fontHandleWrapperProperty);
1813
Font? previous =
Properties
.GetValueOrDefault<Font>(s_fontProperty);
1822
Properties
.AddOrRemoveValue(s_fontProperty, value);
1847
if (
Properties
.ContainsKey(s_fontHeightProperty))
1849
Properties
.AddValue(s_fontHeightProperty, (value is null) ? -1 : value.Height);
1922
if (!
Properties
.TryGetValue(s_fontHandleWrapperProperty, out FontHandleWrapper? fontHandle))
1924
fontHandle =
Properties
.AddValue(s_fontHandleWrapperProperty, new FontHandleWrapper(font));
1939
if (
Properties
.TryGetValue(s_currentAmbientFontProperty, out Font? currentAmbient) && currentAmbient == ambientFont)
1941
fontHandle =
Properties
.GetValueOrDefault<FontHandleWrapper?>(s_fontHandleWrapperProperty);
1945
Properties
.AddValue(s_currentAmbientFontProperty, ambientFont);
1948
fontHandle ??=
Properties
.AddValue(s_fontHandleWrapperProperty, new FontHandleWrapper(ambientFont));
1962
if (
Properties
.TryGetValue(s_fontHeightProperty, out int fontHeight) && fontHeight != -1)
1969
return
Properties
.AddValue(s_fontHeightProperty, font.Height);
1984
Properties
.AddValue(s_fontHeightProperty, localFontHeight);
1989
set =>
Properties
.AddValue(s_fontHeightProperty, value);
2002
Properties
.TryGetValue(s_foreColorProperty, out Color color);
2032
Properties
.AddOrRemoveValue(s_foreColorProperty, value);
2596
string? name =
Properties
.GetValueOrDefault<string>(s_namePropertyProperty);
2604
set =>
Properties
.AddOrRemoveString(s_namePropertyProperty, value);
2666
internal Color RawBackColor =>
Properties
.GetValueOrDefault<Color>(s_backColorProperty);
2716
get =>
Properties
.GetValueOrDefault<Region>(s_regionProperty);
2730
Region? oldRegion =
Properties
.AddOrRemoveValue(s_regionProperty, region);
2856
if (!
Properties
.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft)
2871
if (
Properties
.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit)
2873
Properties
.AddValue(s_rightToLeftProperty, value);
2920
if (
Properties
.ContainsKey(s_fontHeightProperty))
2922
Properties
.AddValue(s_fontHeightProperty, (value is null) ? -1 : value.Height);
2944
bool checkFont = !
Properties
.ContainsKey(s_fontProperty);
2945
bool checkBackColor = !
Properties
.ContainsKey(s_backColorProperty);
2946
bool checkForeColor = !
Properties
.ContainsKey(s_foreColorProperty);
2947
bool checkCursor = !
Properties
.ContainsKey(s_cursorProperty);
2974
Properties
.AddValue(s_ambientPropertiesServiceProperty, newAmbients);
3110
get =>
Properties
.GetValueOrDefault<object>(s_userDataProperty);
3111
set =>
Properties
.AddOrRemoveValue(s_userDataProperty, value);
3147
if (control.IsActiveX && control.
Properties
.TryGetValue(s_activeXImplProperty, out ActiveXImpl? activeX))
3389
get =>
Properties
.TryGetValue(s_useCompatibleTextRenderingProperty, out bool value)
3396
Properties
.AddValue(s_useCompatibleTextRenderingProperty, value);
3420
if (!
Properties
.TryGetValue(s_controlVersionInfoProperty, out ControlVersionInfo? info))
3423
Properties
.AddValue(s_controlVersionInfoProperty, info);
4207
if (!
Properties
.ContainsKey(s_bindingManagerProperty) && Created)
4544
if (!
Properties
.ContainsKey(s_bindingManagerProperty) && ParentInternal is not null && !controlIsAlreadyCreated)
4687
if (
Properties
.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
4694
Properties
.RemoveValue(s_backBrushProperty);
4725
Properties
.RemoveValue(s_ncAccessibilityProperty);
4728
Properties
.GetValueOrDefault<ActiveXImpl>(s_activeXImplProperty)?.Dispose();
6180
internal bool IsFontSet() =>
Properties
.ContainsKey(s_fontProperty);
6581
if (
Properties
.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
6591
Properties
.RemoveValue(s_backBrushProperty);
6653
if (
Properties
.ContainsKey(s_bindingsProperty))
6806
if (
Properties
.ContainsKey(s_fontHeightProperty))
6808
Properties
.AddValue(s_fontHeightProperty, -1);
6904
Color backColor =
Properties
.GetValueOrDefault<Color>(s_backColorProperty);
6920
if (!
Properties
.ContainsKey(s_bindingManagerProperty))
6929
if (!
Properties
.ContainsKey(s_cursorProperty))
6938
if (
Properties
.ContainsKey(s_dataContextProperty))
6940
if (Equals(
Properties
.GetValueOrDefault<object>(s_dataContextProperty), Parent?.DataContext))
6943
Properties
.RemoveValue(s_dataContextProperty);
7037
Color foreColor =
Properties
.GetValueOrDefault<Color>(s_foreColorProperty);
7047
if (!
Properties
.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft) || rightToLeft == RightToLeft.Inherit)
7287
if (
Properties
.TryGetValue(s_accessibilityProperty, out ControlAccessibleObject? clientAccessibleObject))
7294
if (
Properties
.TryGetValue(s_ncAccessibilityProperty, out ControlAccessibleObject? nonClientAccessibleObject))
7434
if (
Properties
.TryGetValue(s_accessibilityProperty, out ControlAccessibleObject? accObj))
7441
if (
Properties
.TryGetValue(s_ncAccessibilityProperty, out ControlAccessibleObject? nonClientAccessibleObject))
7448
if (!RecreatingHandle && GetState(States.OwnCtlBrush) &&
Properties
.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
7450
Properties
.RemoveValue(s_backBrushProperty);
9361
Properties
.RemoveValue(s_accessibilityProperty);
9365
Properties
.TryGetValue(s_accessibilityProperty, out accessibleObject);
10466
Color backColor =
Properties
.GetValueOrDefault<Color>(s_backColorProperty);
10474
internal virtual bool ShouldSerializeCursor() =>
Properties
.ContainsKey(s_cursorProperty);
10486
internal virtual bool ShouldSerializeForeColor() => !
Properties
.GetValueOrDefault<Color>(s_foreColorProperty).IsEmpty;
10492
internal virtual bool ShouldSerializeFont() =>
Properties
.ContainsKey(s_fontProperty);
10499
Properties
.TryGetValue(s_rightToLeftProperty, out RightToLeft rightToLeft)
10685
Properties
.TryGetValue(s_fontProperty, out font);
10697
Properties
.AddOrRemoveValue(s_fontProperty, scaledFont);
10702
if (
Properties
.ContainsKey(s_fontHeightProperty))
10704
Properties
.AddValue(s_fontHeightProperty, scaledFont.Height);
11098
if (!
Properties
.TryGetValue(s_contextMenuStripProperty, out ContextMenuStrip? contextMenuStrip))
12610
get { return
Properties
; }
System\Windows\Forms\Control.Ime.cs (10)
38
if (!
Properties
.TryGetValue(s_imeModeProperty, out ImeMode cachedImeMode))
63
Properties
.AddValue(s_imeModeProperty, value);
110
int val =
Properties
.GetValueOrDefault<int>(s_disableImeModeChangedCountProperty);
114
set =>
Properties
.AddValue(s_disableImeModeChangedCountProperty, value);
231
get =>
Properties
.GetValueOrDefault<int>(s_imeWmCharsToIgnoreProperty);
238
Properties
.AddValue(s_imeWmCharsToIgnoreProperty, value);
250
get =>
Properties
.GetValueOrDefault(s_lastCanEnableImeProperty, true);
251
set =>
Properties
.AddOrRemoveValue(s_lastCanEnableImeProperty, value, defaultValue: true);
501
return
Properties
.TryGetValue(s_imeModeProperty, out ImeMode imeMode) && imeMode != DefaultImeMode;
627
Properties
.AddValue(s_imeWmCharsToIgnoreProperty, ImeCharsToIgnoreEnabled);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (25)
410
get =>
Properties
.GetValueOrDefault(s_propDrawMode, DrawMode.Normal);
418
Properties
.AddOrRemoveValue(s_propDrawMode, value, defaultValue: DrawMode.Normal);
431
get =>
Properties
.TryGetValue(s_propDropDownWidth, out int dropDownWidth) ? dropDownWidth : Width;
436
if (
Properties
.GetValueOrDefault<int>(s_propDropDownWidth) != value)
438
Properties
.AddValue(s_propDropDownWidth, value);
457
get =>
Properties
.TryGetValue(s_propDropDownHeight, out int dropDownHeight) ? dropDownHeight : DefaultDropDownHeight;
462
if (
Properties
.GetValueOrDefault<int>(s_propDropDownHeight) != value)
464
Properties
.AddValue(s_propDropDownHeight, value);
584
return
Properties
.TryGetValue(s_propItemHeight, out int itemHeight) ? itemHeight : FontHeight + 2;
599
if (
Properties
.GetValueOrDefault<int>(s_propItemHeight) != value)
601
Properties
.AddValue(s_propItemHeight, value);
633
get =>
Properties
.GetStringOrEmptyString(s_propMatchingText);
634
set =>
Properties
.AddOrRemoveString(s_propMatchingText, value);
684
return
Properties
.GetValueOrDefault<int>(s_propMaxLength);
695
Properties
.AddValue(s_propMaxLength, value);
1044
get =>
Properties
.GetValueOrDefault(s_propStyle, ComboBoxStyle.DropDown);
1064
Properties
.AddOrRemoveValue(s_propStyle, value, defaultValue: ComboBoxStyle.DropDown);
2306
if (
Properties
.TryGetValue(s_propDropDownWidth, out int dropDownWidth))
2311
if (
Properties
.ContainsKey(s_propItemHeight))
3091
Properties
.RemoveValue(s_propDropDownWidth);
3096
Properties
.RemoveValue(s_propItemHeight);
3320
internal bool ShouldSerializeDropDownWidth() =>
Properties
.ContainsKey(s_propDropDownWidth);
3325
internal bool ShouldSerializeItemHeight() =>
Properties
.ContainsKey(s_propItemHeight);
3848
if (!
Properties
.TryGetValue(s_propFlatComboAdapter, out FlatComboAdapter? comboAdapter) || !comboAdapter.IsValid(this))
3851
Properties
.AddValue(s_propFlatComboAdapter, comboAdapter);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2950
if (!
Properties
.TryGetValue(s_propToolTip, out ToolTip? toolTip))
2952
toolTip =
Properties
.AddValue(
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5583
if (
Properties
.TryGetValue(s_propToolTip, out ToolTip? keyboardToolTip))
System\Windows\Forms\Controls\Labels\Label.cs (17)
372
Image? image =
Properties
.GetValueOrDefault<Image>(s_propImage);
392
Properties
.AddOrRemoveValue(s_propImage, value);
445
Properties
.RemoveValue(s_propImage);
475
Properties
.RemoveValue(s_propImage);
487
if (!
Properties
.TryGetValue(s_propImageIndex, out LabelImageIndexer? imageIndexer))
495
set =>
Properties
.AddOrRemoveValue(s_propImageIndex, value);
507
get =>
Properties
.GetValueOrDefault<ImageList>(s_propImageList);
527
Properties
.RemoveValue(s_propImage);
530
Properties
.AddOrRemoveValue(s_propImageList, value);
552
get =>
Properties
.GetValueOrDefault(s_propImageAlign, ContentAlignment.MiddleCenter);
559
Properties
.AddOrRemoveValue(s_propImageAlign, value, defaultValue: ContentAlignment.MiddleCenter);
696
get =>
Properties
.GetValueOrDefault(s_propTextAlign, ContentAlignment.TopLeft);
703
Properties
.AddOrRemoveValue(s_propTextAlign, value, defaultValue: ContentAlignment.TopLeft);
856
if (animate == currentlyAnimating || !
Properties
.TryGetValue(s_propImage, out Image? image))
953
Properties
.RemoveValue(s_propImageList);
956
Properties
.RemoveValue(s_propImage);
1406
private bool ShouldSerializeImage() =>
Properties
.ContainsKey(s_propImage);
System\Windows\Forms\Controls\ListView\ListView.cs (6)
2219
if (
Properties
.TryGetValue(s_propDelayedUpdateItems, out List<ListViewItem>? newItems))
2222
Properties
.RemoveValue(s_propDelayedUpdateItems);
2353
if (_updateCounter++ == 0 && !
Properties
.ContainsKey(s_propDelayedUpdateItems))
2355
Properties
.AddValue(s_propDelayedUpdateItems, new List<ListViewItem>());
3158
if (--_updateCounter == 0 &&
Properties
.ContainsKey(s_propDelayedUpdateItems))
4004
if (_updateCounter > 0 &&
Properties
.TryGetValue(s_propDelayedUpdateItems, out List<ListViewItem>? itemList))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (12)
383
if (
Properties
.TryGetValue(s_propBindingContext, out BindingContext? context))
399
if (
Properties
.AddOrRemoveValue(s_propBindingContext, value) != value)
1403
if (!IsDropDown && !IsDisposed && !
Properties
.TryGetValue(s_propToolStripPanelCell, out toolStripPanelCell))
1405
toolStripPanelCell =
Properties
.AddValue(s_propToolStripPanelCell, new ToolStripPanelCell(this));
1678
if (!
Properties
.TryGetValue(s_propToolTip, out ToolTip? toolTip))
1680
toolTip =
Properties
.AddValue(s_propToolTip, new ToolTip());
1694
ToolStripTextDirection textDirection =
Properties
.GetValueOrDefault(s_propTextDirection, ToolStripTextDirection.Horizontal);
1706
Properties
.AddOrRemoveValue(s_propTextDirection, value, defaultValue: ToolStripTextDirection.Horizontal);
1893
if (
Properties
.TryGetValue(s_propToolStripPanelCell, out ToolStripPanelCell? toolStripPanelCell))
1896
Properties
.RemoveValue(s_propToolStripPanelCell);
1903
if (
Properties
.TryGetValue(s_propToolTip, out ToolTip? toolTip))
1906
Properties
.RemoveValue(s_propToolTip);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
85
Properties
.RemoveValue(s_propOpacity);
568
get =>
Properties
.GetValueOrDefault(s_propOpacity, 1.0d);
573
Properties
.AddOrRemoveValue(s_propOpacity, value, 1.0d);
753
get =>
Properties
.GetValueOrDefault<Control>(s_propSourceControl);
754
set =>
Properties
.AddOrRemoveValue(s_propSourceControl, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
72
get { return
Properties
; }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
274
if (!
Properties
.TryGetValue(s_propToolStripPanelRowCollection, out ToolStripPanelRowCollection? rowCollection))
276
rowCollection =
Properties
.AddValue(s_propToolStripPanelRowCollection, CreateToolStripPanelRowCollection());
System\Windows\Forms\Form.cs (86)
222
get =>
Properties
.GetValueOrDefault<IButtonControl?>(s_propAcceptButton);
225
if (
Properties
.AddOrRemoveValue(s_propAcceptButton, value) != value)
337
get =>
Properties
.GetValueOrDefault<Form>(s_propActiveMdiChild);
338
set =>
Properties
.AddOrRemoveValue(s_propActiveMdiChild, value);
345
get =>
Properties
.GetValueOrDefault<Form>(s_propFormerlyActiveMdiChild);
346
set =>
Properties
.AddOrRemoveValue(s_propFormerlyActiveMdiChild, value);
373
Properties
.RemoveValue(s_propOpacity);
375
if (
Properties
.ContainsKey(s_propTransparencyKey))
377
Properties
.AddValue(s_propTransparencyKey, Color.Empty);
714
get =>
Properties
.GetValueOrDefault<IButtonControl>(s_propCancelButton);
717
Properties
.AddOrRemoveValue(s_propCancelButton, value);
780
if (
Properties
.TryGetValue(s_propDialogOwner, out IWin32Window? dialogOwner))
804
Form? formMdiParent =
Properties
.GetValueOrDefault<Form>(s_propFormMdiParent);
1074
public bool IsMdiChild =>
Properties
.ContainsKey(s_propFormMdiParent);
1080
get =>
Properties
.GetValueOrDefault<bool>(s_propMdiChildFocusable);
1081
set =>
Properties
.AddOrRemoveValue(s_propMdiChildFocusable, value);
1162
get =>
Properties
.GetValueOrDefault<Rectangle>(s_propMaximizedBounds);
1167
Properties
.AddValue(s_propMaximizedBounds, value);
1193
get =>
Properties
.TryGetValue(s_propMaxTrackSize, out Size maximumSize) ? maximumSize : Size.Empty;
1210
Properties
.AddValue(s_propMaxTrackSize, value);
1231
Properties
.AddValue(s_propMinTrackSize, minimumSize);
1264
get =>
Properties
.GetValueOrDefault<MenuStrip>(s_propMainMenuStrip);
1267
Properties
.AddOrRemoveValue(s_propMainMenuStrip, value);
1306
get =>
Properties
.TryGetValue(s_propMinTrackSize, out Size minimumSize) ? minimumSize : DefaultMinimumSize;
1327
Properties
.AddValue(s_propMinTrackSize, value);
1348
Properties
.AddValue(s_propMaxTrackSize, maximumSize);
1456
get =>
Properties
.GetValueOrDefault<Form>(s_propFormMdiParent);
1459
Form? formMdiParent =
Properties
.GetValueOrDefault<Form>(s_propFormMdiParent);
1498
Properties
.AddOrRemoveValue(s_propFormMdiParent, value);
1528
get =>
Properties
.GetValueOrDefault<MdiWindowListStrip>(s_propMdiWindowListStrip);
1529
set =>
Properties
.AddOrRemoveValue(s_propMdiWindowListStrip, value);
1534
get =>
Properties
.GetValueOrDefault<MdiControlStrip>(s_propMdiControlStrip);
1535
set =>
Properties
.AddOrRemoveValue(s_propMdiControlStrip, value);
1573
get =>
Properties
.GetValueOrDefault(s_propOpacity, 1.0d);
1578
Properties
.AddOrRemoveValue(s_propOpacity, value, defaultValue: 1.0d);
1620
public Form[] OwnedForms =>
Properties
.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms) ? ([.. ownedForms]) : ([]);
1648
Properties
.RemoveValue(s_propOwner);
1652
Properties
.AddOrRemoveValue(s_propOwner, value);
1660
internal Form? OwnerInternal =>
Properties
.GetValueOrDefault<Form?>(s_propOwner);
2006
get =>
Properties
.GetValueOrDefault(s_propTransparencyKey, Color.Empty);
2009
Properties
.AddOrRemoveValue(s_propTransparencyKey, value, defaultValue: Color.Empty);
2189
get =>
Properties
.GetValueOrDefault(s_propFormCornerPreference, FormCornerPreference.Default);
2206
Properties
.AddOrRemoveValue(s_propFormCornerPreference, value, defaultValue: FormCornerPreference.Default);
2281
get =>
Properties
.GetValueOrDefault(s_propFormBorderColor, Color.Empty);
2289
Properties
.AddOrRemoveValue(s_propFormBorderColor, value, defaultValue: Color.Empty);
2343
get =>
Properties
.GetValueOrDefault(s_propFormCaptionBackColor, Color.Empty);
2351
Properties
.AddOrRemoveValue(s_propFormCaptionBackColor, value, defaultValue: Color.Empty);
2406
get =>
Properties
.GetValueOrDefault(s_propFormCaptionTextColor, Color.Empty);
2414
Properties
.AddOrRemoveValue(s_propFormCaptionTextColor, value, defaultValue: Color.Empty);
2831
if (!
Properties
.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
2834
Properties
.AddValue(s_propOwnedForms, ownedForms);
3098
if (
Properties
.TryGetValue(s_propFormMdiParent, out Form? formMdiParent) && formMdiParent.MdiClient != value)
3100
Properties
.RemoveValue(s_propFormMdiParent);
3285
Form? form =
Properties
.GetValueOrDefault<Form>(s_propFormMdiParent);
3460
Properties
.RemoveValue(s_propAcceptButton);
3461
Properties
.RemoveValue(s_propCancelButton);
3462
Properties
.RemoveValue(s_propDefaultButton);
3463
Properties
.RemoveValue(s_propActiveMdiChild);
3483
if (
Properties
.TryGetValue(s_propOwner, out Form? owner))
3486
Properties
.RemoveValue(s_propOwner);
3489
Properties
.RemoveValue(s_propDialogOwner);
3491
if (
Properties
.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
3509
if (
Properties
.TryGetValue(s_propDummyMdiMenu, out HMENU dummyMenu))
3511
Properties
.RemoveValue(s_propDummyMdiMenu);
3658
IWin32Window? dialogOwner =
Properties
.GetValueOrDefault<IWin32Window>(s_propDialogOwner);
4142
if (
Properties
.TryGetValue(s_propFormBorderColor, out Color? formBorderColor))
4147
if (
Properties
.TryGetValue(s_propFormCaptionBackColor, out Color? formCaptionBackColor))
4152
if (
Properties
.TryGetValue(s_propFormCaptionTextColor, out Color? formCaptionTextColor))
4158
if (
Properties
.TryGetValue(s_propFormCornerPreference, out FormCornerPreference? cornerPreference))
4700
if (
Properties
.TryGetValue(s_propDefaultButton, out IButtonControl? button))
4713
if (
Properties
.TryGetValue(s_propCancelButton, out button))
4806
if (
Properties
.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
4834
if (
Properties
.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
4934
if (
Properties
.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
5268
IButtonControl? existing =
Properties
.GetValueOrDefault<IButtonControl>(s_propDefaultButton);
5274
Properties
.AddOrRemoveValue(s_propDefaultButton, button);
5408
Properties
.AddOrRemoveValue(s_propDialogOwner, owner);
5656
Properties
.AddOrRemoveValue(s_propDialogOwner, owner);
5717
Properties
.RemoveValue(s_propDialogOwner);
6017
if (
Properties
.TryGetValue(s_propOwner, out Form? owner))
6093
if (!
Properties
.TryGetValue(s_propDummyMdiMenu, out HMENU dummyMenu) || recreateMenu)
6098
Properties
.AddValue(s_propDummyMdiMenu, dummyMenu);
6630
if (
Properties
.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
6699
if (
Properties
.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
6833
Debug.Assert(
Properties
.ContainsKey(s_propFormMdiParent), "how is formMdiParent null?");
6836
if (
Properties
.TryGetValue(s_propFormMdiParent, out Form? formMdiParent))
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
578
private void AxContainerFormCreated() =>
Properties
.GetValueOrDefault<AxHost.AxContainer>(s_propAxContainer)?.FormCreated();
587
if (!
Properties
.TryGetValue(s_propAxContainer, out AxHost.AxContainer? container))
589
container =
Properties
.AddValue(s_propAxContainer, new AxHost.AxContainer(this));
845
if (
Properties
.ContainsKey(s_propAxContainer))