73 references to ContainsKey
System.Windows.Forms (73)
System\Windows\Forms\Control.cs (23)
786
if (!Properties.
ContainsKey
(s_backColorProperty))
863
if (Properties.
ContainsKey
(s_dataContextProperty) && Equals(ParentInternal?.DataContext, value))
876
=> Properties.
ContainsKey
(s_dataContextProperty);
1716
internal bool IsAccessibilityObjectCreated => Properties.
ContainsKey
(s_accessibilityProperty);
2122
if (Properties.
ContainsKey
(s_fontHeightProperty))
3146
if (Properties.
ContainsKey
(s_rightToLeftProperty) || value != RightToLeft.Inherit)
3195
if (Properties.
ContainsKey
(s_fontHeightProperty))
3219
bool checkFont = !Properties.
ContainsKey
(s_fontProperty);
3220
bool checkBackColor = !Properties.
ContainsKey
(s_backColorProperty);
3221
bool checkForeColor = !Properties.
ContainsKey
(s_foreColorProperty);
3222
bool checkCursor = !Properties.
ContainsKey
(s_cursorProperty);
4519
if (!Properties.
ContainsKey
(s_bindingManagerProperty) && Created)
4855
if (!Properties.
ContainsKey
(s_bindingManagerProperty) && ParentInternal is not null && !controlIsAlreadyCreated)
6502
internal bool IsFontSet() => Properties.
ContainsKey
(s_fontProperty);
6975
if (Properties.
ContainsKey
(s_bindingsProperty))
7278
if (Properties.
ContainsKey
(s_fontHeightProperty))
7392
if (!Properties.
ContainsKey
(s_bindingManagerProperty))
7401
if (!Properties.
ContainsKey
(s_cursorProperty))
7410
if (Properties.
ContainsKey
(s_dataContextProperty))
7466
if (Properties.
ContainsKey
(s_visualStylesModeProperty))
11369
internal virtual bool ShouldSerializeCursor() => Properties.
ContainsKey
(s_cursorProperty);
11387
internal virtual bool ShouldSerializeFont() => Properties.
ContainsKey
(s_fontProperty);
11597
if (Properties.
ContainsKey
(s_fontHeightProperty))
System\Windows\Forms\Control.SuspendMutation.cs (2)
57
=> Properties.
ContainsKey
(s_recursiveInvalidateAfterSuspendPaintingProperty);
120
|| !Properties.
ContainsKey
(s_recursiveInvalidateAfterSuspendPaintingProperty))
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2397
if (Properties.
ContainsKey
(s_propItemHeight))
3435
internal bool ShouldSerializeDropDownWidth() => Properties.
ContainsKey
(s_propDropDownWidth);
3440
internal bool ShouldSerializeItemHeight() => Properties.
ContainsKey
(s_propItemHeight);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (4)
207
public bool HasDefaultCellStyle => Properties.
ContainsKey
(s_propDefaultCellStyle);
209
internal bool HasDefaultHeaderCellType => Properties.
ContainsKey
(s_propDefaultHeaderCellType);
211
internal bool HasHeaderCell => Properties.
ContainsKey
(s_propHeaderCell);
844
private bool ShouldSerializeDefaultHeaderCellType() => Properties.
ContainsKey
(s_propDefaultHeaderCellType);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
269
private bool HasErrorText => Properties.
ContainsKey
(s_propCellErrorText);
272
public bool HasStyle => Properties.
ContainsKey
(s_propCellStyle);
274
internal bool HasToolTipText => Properties.
ContainsKey
(s_propCellToolTipText);
276
internal bool HasValue => Properties.
ContainsKey
(s_propCellValue);
278
private protected virtual bool HasValueType => Properties.
ContainsKey
(s_propCellValueType);
375
internal bool IsAccessibilityObjectCreated => Properties.
ContainsKey
(s_propCellAccessibilityObject);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (9)
223
public bool IsFormatProviderDefault => !Properties.
ContainsKey
(s_propFormatProvider);
547
private bool ShouldSerializeBackColor() => Properties.
ContainsKey
(s_propBackColor);
549
private bool ShouldSerializeFont() => Properties.
ContainsKey
(s_propFont);
551
private bool ShouldSerializeForeColor() => Properties.
ContainsKey
(s_propForeColor);
553
private bool ShouldSerializeFormatProvider() => Properties.
ContainsKey
(s_propFormatProvider);
555
private bool ShouldSerializePadding() => Properties.
ContainsKey
(s_propPadding);
557
private bool ShouldSerializeSelectionBackColor() => Properties.
ContainsKey
(s_propSelectionBackColor);
559
private bool ShouldSerializeSelectionForeColor() => Properties.
ContainsKey
(s_propSelectionForeColor);
561
private bool ShouldSerializeSortGlyphColor() => Properties.
ContainsKey
(s_propSortGlyphColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
365
if (value is not null || Properties.
ContainsKey
(s_propTrueValue))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
58
internal bool ContainsLocalValue => Properties.
ContainsKey
(s_propCellValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
370
internal bool HasItems => Properties.
ContainsKey
(s_propComboBoxCellItems);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
114
private protected override bool HasValueType => Properties.
ContainsKey
(s_propValueType);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (6)
408
if (Properties.
ContainsKey
(s_propLinkCellActiveLinkColor))
413
if (Properties.
ContainsKey
(s_propLinkCellUseColumnTextForLinkValue))
418
if (Properties.
ContainsKey
(s_propLinkCellLinkBehavior))
423
if (Properties.
ContainsKey
(s_propLinkCellLinkColor))
428
if (Properties.
ContainsKey
(s_propLinkCellTrackVisitedState))
433
if (Properties.
ContainsKey
(s_propLinkCellVisitedLinkColor))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
199
private bool HasErrorText => Properties.
ContainsKey
(s_propRowErrorText);
242
internal bool IsAccessibilityObjectCreated => Properties.
ContainsKey
(s_propRowAccessibilityObject);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1404
private bool ShouldSerializeImage() => Properties.
ContainsKey
(s_propImage);
System\Windows\Forms\Controls\ListView\ListView.cs (2)
2363
if (_updateCounter++ == 0 && !Properties.
ContainsKey
(s_propDelayedUpdateItems))
3167
if (--_updateCounter == 0 && Properties.
ContainsKey
(s_propDelayedUpdateItems))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
182
internal bool IsAccessibilityObjectCreated => Properties.
ContainsKey
(s_accessibilityProperty);
1675
if (Properties.
ContainsKey
(s_rightToLeftProperty) || value != RightToLeft.Inherit)
3363
private bool ShouldSerializeTextDirection() => Properties.
ContainsKey
(s_textDirectionProperty);
System\Windows\Forms\Form.cs (3)
374
if (Properties.
ContainsKey
(s_propTransparencyKey))
1070
public bool IsMdiChild => Properties.
ContainsKey
(s_propFormMdiParent);
7004
Debug.Assert(Properties.
ContainsKey
(s_propFormMdiParent), "how is formMdiParent null?");
System\Windows\Forms\Form.RevealMode.cs (1)
97
private bool ShouldSerializeFormRevealMode() => Properties.
ContainsKey
(s_propFormRevealMode);
System\Windows\Forms\Layout\CommonProperties.cs (2)
325
if (element.Properties.
ContainsKey
(s_specifiedBoundsProperty))
707
return element.Properties.
ContainsKey
(s_layoutBoundsProperty);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
838
if (Properties.
ContainsKey
(s_propAxContainer))
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1028
container is not null && container.Properties.
ContainsKey
(s_cachedBoundsProperty);