68 references to ContainsKey
System.Windows.Forms (68)
System\Windows\Forms\Control.cs (22)
681if (!Properties.ContainsKey(s_backColorProperty)) 746if (Properties.ContainsKey(s_dataContextProperty) && Equals(ParentInternal?.DataContext, value)) 759=> Properties.ContainsKey(s_dataContextProperty); 1440internal bool IsAccessibilityObjectCreated => Properties.ContainsKey(s_accessibilityProperty); 1846if (Properties.ContainsKey(s_fontHeightProperty)) 2870if (Properties.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit) 2919if (Properties.ContainsKey(s_fontHeightProperty)) 2943bool checkFont = !Properties.ContainsKey(s_fontProperty); 2944bool checkBackColor = !Properties.ContainsKey(s_backColorProperty); 2945bool checkForeColor = !Properties.ContainsKey(s_foreColorProperty); 2946bool checkCursor = !Properties.ContainsKey(s_cursorProperty); 4206if (!Properties.ContainsKey(s_bindingManagerProperty) && Created) 4543if (!Properties.ContainsKey(s_bindingManagerProperty) && ParentInternal is not null && !controlIsAlreadyCreated) 6139internal bool IsFontSet() => Properties.ContainsKey(s_fontProperty); 6612if (Properties.ContainsKey(s_bindingsProperty)) 6765if (Properties.ContainsKey(s_fontHeightProperty)) 6879if (!Properties.ContainsKey(s_bindingManagerProperty)) 6888if (!Properties.ContainsKey(s_cursorProperty)) 6897if (Properties.ContainsKey(s_dataContextProperty)) 10441internal virtual bool ShouldSerializeCursor() => Properties.ContainsKey(s_cursorProperty); 10459internal virtual bool ShouldSerializeFont() => Properties.ContainsKey(s_fontProperty); 10669if (Properties.ContainsKey(s_fontHeightProperty))
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2310if (Properties.ContainsKey(s_propItemHeight)) 3319internal bool ShouldSerializeDropDownWidth() => Properties.ContainsKey(s_propDropDownWidth); 3324internal bool ShouldSerializeItemHeight() => Properties.ContainsKey(s_propItemHeight);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (4)
215public bool HasDefaultCellStyle => Properties.ContainsKey(s_propDefaultCellStyle); 217internal bool HasDefaultHeaderCellType => Properties.ContainsKey(s_propDefaultHeaderCellType); 219internal bool HasHeaderCell => Properties.ContainsKey(s_propHeaderCell); 861private bool ShouldSerializeDefaultHeaderCellType() => Properties.ContainsKey(s_propDefaultHeaderCellType);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
277private bool HasErrorText => Properties.ContainsKey(s_propCellErrorText); 280public bool HasStyle => Properties.ContainsKey(s_propCellStyle); 282internal bool HasToolTipText => Properties.ContainsKey(s_propCellToolTipText); 284internal bool HasValue => Properties.ContainsKey(s_propCellValue); 286private protected virtual bool HasValueType => Properties.ContainsKey(s_propCellValueType); 383internal bool IsAccessibilityObjectCreated => Properties.ContainsKey(s_propCellAccessibilityObject);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (8)
221public bool IsFormatProviderDefault => !Properties.ContainsKey(s_propFormatProvider); 519private bool ShouldSerializeBackColor() => Properties.ContainsKey(s_propBackColor); 521private bool ShouldSerializeFont() => Properties.ContainsKey(s_propFont); 523private bool ShouldSerializeForeColor() => Properties.ContainsKey(s_propForeColor); 525private bool ShouldSerializeFormatProvider() => Properties.ContainsKey(s_propFormatProvider); 527private bool ShouldSerializePadding() => Properties.ContainsKey(s_propPadding); 529private bool ShouldSerializeSelectionBackColor() => Properties.ContainsKey(s_propSelectionBackColor); 531private bool ShouldSerializeSelectionForeColor() => Properties.ContainsKey(s_propSelectionForeColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
365if (value is not null || Properties.ContainsKey(s_propTrueValue))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
58internal bool ContainsLocalValue => Properties.ContainsKey(s_propCellValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
370internal bool HasItems => Properties.ContainsKey(s_propComboBoxCellItems);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
114private protected override bool HasValueType => Properties.ContainsKey(s_propValueType);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (6)
378if (Properties.ContainsKey(s_propLinkCellActiveLinkColor)) 383if (Properties.ContainsKey(s_propLinkCellUseColumnTextForLinkValue)) 388if (Properties.ContainsKey(s_propLinkCellLinkBehavior)) 393if (Properties.ContainsKey(s_propLinkCellLinkColor)) 398if (Properties.ContainsKey(s_propLinkCellTrackVisitedState)) 403if (Properties.ContainsKey(s_propLinkCellVisitedLinkColor))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
199private bool HasErrorText => Properties.ContainsKey(s_propRowErrorText); 242internal bool IsAccessibilityObjectCreated => Properties.ContainsKey(s_propRowAccessibilityObject);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1406private bool ShouldSerializeImage() => Properties.ContainsKey(s_propImage);
System\Windows\Forms\Controls\ListView\ListView.cs (2)
2349if (_updateCounter++ == 0 && !Properties.ContainsKey(s_propDelayedUpdateItems)) 3154if (--_updateCounter == 0 && Properties.ContainsKey(s_propDelayedUpdateItems))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
182internal bool IsAccessibilityObjectCreated => Properties.ContainsKey(s_accessibilityProperty); 1678if (Properties.ContainsKey(s_rightToLeftProperty) || value != RightToLeft.Inherit) 3370private bool ShouldSerializeTextDirection() => Properties.ContainsKey(s_textDirectionProperty);
System\Windows\Forms\Form.cs (3)
375if (Properties.ContainsKey(s_propTransparencyKey)) 1074public bool IsMdiChild => Properties.ContainsKey(s_propFormMdiParent); 6833Debug.Assert(Properties.ContainsKey(s_propFormMdiParent), "how is formMdiParent null?");
System\Windows\Forms\Layout\CommonProperties.cs (2)
330if (element.Properties.ContainsKey(s_specifiedBoundsProperty)) 712return element.Properties.ContainsKey(s_layoutBoundsProperty);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
845if (Properties.ContainsKey(s_propAxContainer))
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1021container is not null && container.Properties.ContainsKey(s_cachedBoundsProperty);