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