132 references to AddOrRemoveValue
System.Windows.Forms (132)
System\Windows\Forms\Control.cs (18)
479set => Properties.AddOrRemoveValue(s_accessibleDefaultActionProperty, value); 492set => Properties.AddOrRemoveValue(s_accessibleDescriptionProperty, value); 505set => Properties.AddOrRemoveValue(s_accessibleNameProperty, value); 520Properties.AddOrRemoveValue(s_accessibleRoleProperty, value, defaultValue: AccessibleRole.Default); 655set => Properties.AddOrRemoveValue(s_autoScrollOffsetProperty, value, defaultValue: Point.Empty); 816Properties.AddOrRemoveValue(s_backColorProperty, value); 849Properties.AddOrRemoveValue(s_backgroundImageProperty, value); 893Properties.AddOrRemoveValue(s_backgroundImageLayoutProperty, value, defaultValue: ImageLayout.Tile); 961BindingContext? oldContext = Properties.AddOrRemoveValue(s_bindingManagerProperty, value); 1131Properties.AddOrRemoveValue(s_cacheTextFieldProperty, _text); 1146Properties.AddOrRemoveValue(s_cacheTextCountProperty, cacheTextCounter); 1235ContextMenuStrip? oldValue = Properties.AddOrRemoveValue(s_contextMenuStripProperty, value); 1486Properties.AddOrRemoveValue(s_cursorProperty, value); 1822Properties.AddOrRemoveValue(s_fontProperty, value); 2032Properties.AddOrRemoveValue(s_foreColorProperty, value); 2730Region? oldRegion = Properties.AddOrRemoveValue(s_regionProperty, region); 3111set => Properties.AddOrRemoveValue(s_userDataProperty, value); 10697Properties.AddOrRemoveValue(s_fontProperty, scaledFont);
System\Windows\Forms\Control.Ime.cs (1)
251set => Properties.AddOrRemoveValue(s_lastCanEnableImeProperty, value, defaultValue: true);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
418Properties.AddOrRemoveValue(s_propDrawMode, value, defaultValue: DrawMode.Normal); 1064Properties.AddOrRemoveValue(s_propStyle, value, defaultValue: ComboBoxStyle.DropDown);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (5)
61ContextMenuStrip? oldValue = Properties.AddOrRemoveValue(s_propContextMenuStrip, value); 104Properties.AddOrRemoveValue(s_propDefaultCellStyle, value); 139Properties.AddOrRemoveValue(s_propDefaultHeaderCellType, value); 328Properties.AddOrRemoveValue(s_propHeaderCell, value); 603set => Properties.AddOrRemoveValue(s_propUserData, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
48Properties.AddOrRemoveValue(s_propButtonCellState, value, defaultValue: ButtonState.Normal); 66Properties.AddOrRemoveValue(s_propButtonCellFlatStyle, value, defaultValue: FlatStyle.Standard);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
119ContextMenuStrip? oldValue = Properties.AddOrRemoveValue(s_propCellContextMenuStrip, value); 641Properties.AddOrRemoveValue(s_propCellStyle, value); 659set => Properties.AddOrRemoveValue(s_propCellTag, value); 715set => Properties.AddOrRemoveValue(s_propCellValueType, value); 3891Properties.AddOrRemoveValue(s_propCellValue, value); 3928Properties.AddOrRemoveValue(s_propCellValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (11)
100Properties.AddOrRemoveValue(s_propAlignment, value, defaultValue: DataGridViewContentAlignment.NotSet); 112Color previous = Properties.AddOrRemoveValue(s_propBackColor, value); 137Properties.AddOrRemoveValue(s_propDataSourceNullValue, value, DBNull.Value); 148Font? previous = Properties.AddOrRemoveValue(s_propFont, value); 163Color previous = Properties.AddOrRemoveValue(s_propForeColor, value); 196IFormatProvider? originalValue = Properties.AddOrRemoveValue(s_propFormatProvider, value); 253if (Properties.AddOrRemoveValue(s_propNullValue, value, defaultValue: string.Empty) != value) 312Color previous = Properties.AddOrRemoveValue(s_propSelectionBackColor, value); 326Color previous = Properties.AddOrRemoveValue(s_propSelectionForeColor, value); 339set => Properties.AddOrRemoveValue(s_propTag, value); 362Properties.AddOrRemoveValue(s_propWrapMode, value, defaultValue: DataGridViewTriState.NotSet);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (9)
190Properties.AddOrRemoveValue(s_propButtonCellState, value, defaultValue: ButtonState.Normal); 212Properties.AddOrRemoveValue(s_propFalseValue, value); 229set => Properties.AddOrRemoveValue(s_propFalseValue, value); 239FlatStyle previous = Properties.AddOrRemoveValue(s_propFlatStyle, value, defaultValue: FlatStyle.Standard); 254Properties.AddOrRemoveValue(s_propFlatStyle, value, defaultValue: FlatStyle.Standard); 267Properties.AddOrRemoveValue(s_propIndeterminateValue, value); 284set => Properties.AddOrRemoveValue(s_propIndeterminateValue, value); 367Properties.AddOrRemoveValue(s_propTrueValue, value); 385set => Properties.AddOrRemoveValue(s_propTrueValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
790set => Properties.AddOrRemoveValue(s_propDataGridViewColumnValueType, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (14)
127set => Properties.AddOrRemoveValue(s_propComboBoxCellDataManager, value); 141object? originalValue = Properties.AddOrRemoveValue(s_propComboBoxCellDataSource, value); 227set => Properties.AddOrRemoveValue(s_propComboBoxCellDisplayMemberProp, value); 238DataGridViewComboBoxDisplayStyle originalValue = Properties.AddOrRemoveValue( 262Properties.AddOrRemoveValue(s_propComboBoxCellDisplayStyle, value, defaultValue: DataGridViewComboBoxDisplayStyle.DropDownButton); 272bool originalValue = Properties.AddOrRemoveValue(s_propComboBoxCellDisplayStyleForCurrentCellOnly, value); 289set => Properties.AddOrRemoveValue(s_propComboBoxCellDisplayStyleForCurrentCellOnly, value); 326Properties.AddOrRemoveValue(s_propComboBoxCellDropDownWidth, value, defaultValue: 1); 337set => Properties.AddOrRemoveValue(s_propComboBoxCellEditingComboBox, value); 351FlatStyle originalValue = Properties.AddOrRemoveValue(s_propComboBoxCellFlatStyle, value, defaultValue: FlatStyle.Standard); 364Properties.AddOrRemoveValue(s_propComboBoxCellFlatStyle, value, defaultValue: FlatStyle.Standard); 389Properties.AddOrRemoveValue(s_propComboBoxCellMaxDropDownItems, value, defaultValue: DefaultMaxDropDownItems); 448set => Properties.AddOrRemoveValue(s_propComboBoxCellColumnTemplate, value); 483set => Properties.AddOrRemoveValue(s_propComboBoxCellValueMemberProp, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (3)
32private set => Properties.AddOrRemoveValue(s_propButtonState, value, defaultValue: ButtonState.Normal); 81set => Properties.AddOrRemoveValue(s_propFlipXPThemesBitmap, value); 158set => Properties.AddOrRemoveValue(s_propValueType, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
105Properties.AddOrRemoveValue(s_propImageCellLayout, value, defaultValue: DataGridViewImageCellLayout.Normal); 116Properties.AddOrRemoveValue(s_propImageCellLayout, value, defaultValue: DataGridViewImageCellLayout.Normal);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (6)
123Properties.AddOrRemoveValue(s_propLinkCellLinkBehavior, value, defaultValue: LinkBehavior.SystemDefault); 146Properties.AddOrRemoveValue(s_propLinkCellLinkBehavior, value, defaultValue: LinkBehavior.SystemDefault); 207set => Properties.AddOrRemoveValue(s_propLinkCellLinkState, value, defaultValue: LinkState.Normal); 249Properties.AddOrRemoveValue(s_propLinkCellTrackVisitedState, value, defaultValue: true); 266set => Properties.AddOrRemoveValue(s_propLinkCellTrackVisitedState, value, defaultValue: true); 285set => Properties.AddOrRemoveValue(s_propLinkCellUseColumnTextForLinkValue, value, defaultValue: false);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
1056Properties.AddOrRemoveValue(s_propCellValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
52set => Properties.AddOrRemoveValue(s_propTextBoxCellEditingTextBox, value); 72Properties.AddOrRemoveValue(s_propTextBoxCellMaxInputLength, value, defaultValue: MaxInputLengthDefault);
System\Windows\Forms\Controls\Labels\Label.cs (5)
392Properties.AddOrRemoveValue(s_propImage, value); 495set => Properties.AddOrRemoveValue(s_propImageIndex, value); 530Properties.AddOrRemoveValue(s_propImageList, value); 559Properties.AddOrRemoveValue(s_propImageAlign, value, defaultValue: ContentAlignment.MiddleCenter); 703Properties.AddOrRemoveValue(s_propTextAlign, value, defaultValue: ContentAlignment.TopLeft);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
399if (Properties.AddOrRemoveValue(s_propBindingContext, value) != value) 1706Properties.AddOrRemoveValue(s_propTextDirection, value, defaultValue: ToolStripTextDirection.Horizontal);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
573Properties.AddOrRemoveValue(s_propOpacity, value, 1.0d); 754set => Properties.AddOrRemoveValue(s_propSourceControl, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (16)
217Properties.AddOrRemoveValue(s_accessibleDefaultActionDescriptionProperty, value); 234Properties.AddOrRemoveValue(s_accessibleDescriptionProperty, value); 251Properties.AddOrRemoveValue(s_accessibleNameProperty, value); 268Properties.AddOrRemoveValue(s_accessibleRoleProperty, value, defaultValue: AccessibleRole.Default); 393if (Properties.AddOrRemoveValue(s_backgroundImageProperty, value) != value) 493if (Properties.AddOrRemoveValue(s_backgroundImageLayoutProperty, value, defaultValue: ImageLayout.Tile) != value) 526Properties.AddOrRemoveValue(s_backColorProperty, value, defaultValue: Color.Empty); 880Properties.AddOrRemoveValue(s_foreColorProperty, value); 923if (Properties.AddOrRemoveValue(s_fontProperty, value) != value) 1067Properties.AddOrRemoveValue(s_imageProperty, value); 1288Properties.AddOrRemoveValue(s_mergeActionProperty, value, defaultValue: MergeAction.Append); 1301set => Properties.AddOrRemoveValue(s_mergeIndexProperty, value, -1); 1394Properties.AddOrRemoveValue(s_nameProperty, value); 1846set => Properties.AddOrRemoveValue(s_tagProperty, value); 1861if (Properties.AddOrRemoveValue(s_textProperty, value, defaultValue: string.Empty) != value) 1924Properties.AddOrRemoveValue(s_textDirectionProperty, value, defaultValue: ToolStripTextDirection.Inherit);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
111Properties.AddOrRemoveValue(s_propMdiForm, mdiForm); 310Properties.AddOrRemoveValue(s_propCheckState, value, defaultValue: CheckState.Unchecked); 395Properties.AddOrRemoveValue(s_propShortcutKeys, value, defaultValue: Keys.None);
System\Windows\Forms\Form.cs (19)
225if (Properties.AddOrRemoveValue(s_propAcceptButton, value) != value) 338set => Properties.AddOrRemoveValue(s_propActiveMdiChild, value); 346set => Properties.AddOrRemoveValue(s_propFormerlyActiveMdiChild, value); 717Properties.AddOrRemoveValue(s_propCancelButton, value); 1081set => Properties.AddOrRemoveValue(s_propMdiChildFocusable, value); 1267Properties.AddOrRemoveValue(s_propMainMenuStrip, value); 1498Properties.AddOrRemoveValue(s_propFormMdiParent, value); 1529set => Properties.AddOrRemoveValue(s_propMdiWindowListStrip, value); 1535set => Properties.AddOrRemoveValue(s_propMdiControlStrip, value); 1578Properties.AddOrRemoveValue(s_propOpacity, value, defaultValue: 1.0d); 1652Properties.AddOrRemoveValue(s_propOwner, value); 2009Properties.AddOrRemoveValue(s_propTransparencyKey, value, defaultValue: Color.Empty); 2206Properties.AddOrRemoveValue(s_propFormCornerPreference, value, defaultValue: FormCornerPreference.Default); 2289Properties.AddOrRemoveValue(s_propFormBorderColor, value, defaultValue: Color.Empty); 2351Properties.AddOrRemoveValue(s_propFormCaptionBackColor, value, defaultValue: Color.Empty); 2414Properties.AddOrRemoveValue(s_propFormCaptionTextColor, value, defaultValue: Color.Empty); 5274Properties.AddOrRemoveValue(s_propDefaultButton, button); 5408Properties.AddOrRemoveValue(s_propDialogOwner, owner); 5656Properties.AddOrRemoveValue(s_propDialogOwner, owner);
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1089element.Properties.AddOrRemoveValue(s_layoutInfoProperty, value);
System\Windows\Forms\Layout\TableLayout.cs (1)
1363element.Properties.AddOrRemoveValue(s_layoutInfoProperty, value);