106 references to AddValue
System.Windows.Forms (86)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
94
activeXImpl = Properties.
AddValue
(s_activeXImplProperty, new ActiveXImpl(this));
System\Windows\Forms\Control.cs (21)
321
Properties.
AddValue
(
508
Properties.
AddValue
(s_accessibilityProperty, accessibleObject);
527
Properties.
AddValue
(s_ncAccessibilityProperty, ncAccessibleObject);
650
Properties.
AddValue
(s_ambientPropertiesServiceProperty, ambientProperties);
783
Properties.
AddValue
(s_backBrushProperty, backBrush);
827
Properties.
AddValue
(s_dataContextProperty, value);
1609
bindings = Properties.
AddValue
(s_bindingsProperty, new ControlBindingsCollection(this));
1922
Properties.
AddValue
(s_fontHeightProperty, (value is null) ? -1 : value.Height);
1997
fontHandle = Properties.
AddValue
(s_fontHandleWrapperProperty, new FontHandleWrapper(font));
2018
Properties.
AddValue
(s_currentAmbientFontProperty, ambientFont);
2021
fontHandle ??= Properties.
AddValue
(s_fontHandleWrapperProperty, new FontHandleWrapper(ambientFont));
2042
return Properties.
AddValue
(s_fontHeightProperty, font.Height);
2057
Properties.
AddValue
(s_fontHeightProperty, localFontHeight);
2062
set => Properties.
AddValue
(s_fontHeightProperty, value);
2946
Properties.
AddValue
(s_rightToLeftProperty, value);
2995
Properties.
AddValue
(s_fontHeightProperty, (value is null) ? -1 : value.Height);
3047
Properties.
AddValue
(s_ambientPropertiesServiceProperty, newAmbients);
3469
Properties.
AddValue
(s_useCompatibleTextRenderingProperty, value);
3496
Properties.
AddValue
(s_controlVersionInfoProperty, info);
6881
Properties.
AddValue
(s_fontHeightProperty, -1);
10799
Properties.
AddValue
(s_fontHeightProperty, scaledFont.Height);
System\Windows\Forms\Control.Ime.cs (4)
63
Properties.
AddValue
(s_imeModeProperty, value);
114
set => Properties.
AddValue
(s_disableImeModeChangedCountProperty, value);
238
Properties.
AddValue
(s_imeWmCharsToIgnoreProperty, value);
627
Properties.
AddValue
(s_imeWmCharsToIgnoreProperty, ImeCharsToIgnoreEnabled);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
438
Properties.
AddValue
(s_propDropDownWidth, value);
464
Properties.
AddValue
(s_propDropDownHeight, value);
601
Properties.
AddValue
(s_propItemHeight, value);
695
Properties.
AddValue
(s_propMaxLength, value);
3844
Properties.
AddValue
(s_propFlatComboAdapter, comboAdapter);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2960
toolTip = Properties.
AddValue
(
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (4)
89
Properties.
AddValue
(s_propDefaultCellStyle, style);
181
Properties.
AddValue
(s_propDividerThickness, value);
241
Properties.
AddValue
(s_propHeaderCell, headerCell);
249
Properties.
AddValue
(s_propHeaderCell, headerCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (3)
79
Properties.
AddValue
(s_propButtonCellFlatStyle, value);
96
Properties.
AddValue
(s_propButtonCellUseColumnTextForButtonValue, value);
108
Properties.
AddValue
(s_propButtonCellUseColumnTextForButtonValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
92
Properties.
AddValue
(s_propCellAccessibilityObject, result);
626
Properties.
AddValue
(s_propCellStyle, dataGridViewCellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
296
Properties.
AddValue
(s_propPadding, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
1193
Properties.
AddValue
(s_propCellValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1089
Properties.
AddValue
(s_propComboBoxCellItems, items);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (7)
65
Properties.
AddValue
(s_propLinkCellActiveLinkColor, value);
87
Properties.
AddValue
(s_propLinkCellActiveLinkColor, value);
173
Properties.
AddValue
(s_propLinkCellLinkColor, value);
195
Properties.
AddValue
(s_propLinkCellLinkColor, value);
277
Properties.
AddValue
(s_propLinkCellUseColumnTextForLinkValue, value);
313
Properties.
AddValue
(s_propLinkCellVisitedLinkColor, value);
334
Properties.
AddValue
(s_propLinkCellVisitedLinkColor, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
44
Properties.
AddValue
(s_propRowAccessibilityObject, result);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2367
Properties.
AddValue
(s_propDelayedUpdateItems, new List<ListViewItem>());
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1404
toolStripPanelCell = Properties.
AddValue
(s_propToolStripPanelCell, new ToolStripPanelCell(this));
1679
toolTip = Properties.
AddValue
(s_propToolTip, new ToolTip());
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
197
accessibleObject = Properties.
AddValue
(s_accessibilityProperty, CreateAccessibilityInstance());
1034
Properties.
AddValue
(s_imageProperty, image);
1672
Properties.
AddValue
(s_rightToLeftProperty, value);
1720
Properties.
AddValue
(s_mirroredImageProperty, mirroredImage);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
276
rowCollection = Properties.
AddValue
(s_propToolStripPanelRowCollection, CreateToolStripPanelRowCollection());
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
94
controlsCollection = Properties.
AddValue
(s_propControlsCollection, CreateControlsInstance());
System\Windows\Forms\Form.cs (8)
374
Properties.
AddValue
(s_propTransparencyKey, Color.Empty);
1164
Properties.
AddValue
(s_propMaximizedBounds, value);
1207
Properties.
AddValue
(s_propMaxTrackSize, value);
1228
Properties.
AddValue
(s_propMinTrackSize, minimumSize);
1324
Properties.
AddValue
(s_propMinTrackSize, value);
1345
Properties.
AddValue
(s_propMaxTrackSize, maximumSize);
2909
Properties.
AddValue
(s_propOwnedForms, ownedForms);
6189
Properties.
AddValue
(s_propDummyMdiMenu, dummyMenu);
System\Windows\Forms\Layout\CommonProperties.cs (11)
188
element.Properties.
AddValue
(s_marginProperty, value);
203
element.Properties.
AddValue
(s_maximumSizeProperty, value);
225
element.Properties.
AddValue
(s_minimumSizeProperty, value);
254
element.Properties.
AddValue
(s_paddingProperty, value);
319
element.Properties.
AddValue
(s_specifiedBoundsProperty, originalBounds);
328
element.Properties.
AddValue
(s_specifiedBoundsProperty, LayoutUtils.s_maxRectangle);
337
element.Properties.
AddValue
(s_specifiedBoundsProperty, bounds);
347
element.Properties.
AddValue
(s_preferredSizeCacheProperty, LayoutUtils.s_invalidSize);
393
element.Properties.
AddValue
(s_preferredSizeCacheProperty, value);
699
element.Properties.
AddValue
(s_layoutBoundsProperty, value);
726
element.Properties.
AddValue
(s_layoutStateProperty, state);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
582
container = Properties.
AddValue
(s_propAxContainer, new AxHost.AxContainer(this));
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1077
dictionary = container.Properties.
AddValue
(s_cachedBoundsProperty, new HybridDictionary());
System\Windows\Forms\Layout\FlowLayout.cs (2)
287
container.Properties.
AddValue
(s_wrapContentsProperty, value);
299
container.Properties.
AddValue
(s_flowDirectionProperty, value);
System\Windows\Forms\Layout\TableLayout.cs (1)
1379
containerInfo = container.Properties.
AddValue
(s_containerInfoProperty, new ContainerInfo(container));
System\Windows\Forms\PropertyStore.cs (1)
186
AddValue
(key, value);
System.Windows.Forms.Tests (20)
System\Windows\Forms\ListViewTests.cs (5)
5156
listView.Properties.
AddValue
(accessibilityProperty, accessibleObject);
5181
listView.Properties.
AddValue
(accessibilityProperty, accessibleObject);
5206
listView.Properties.
AddValue
(accessibilityProperty, accessibleObject);
5233
listView.Properties.
AddValue
(accessibilityProperty, accessibleObject);
5407
listView.Properties.
AddValue
(accessibilityProperty, accessibleObject);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
21
propertyGridView.Properties.
AddValue
(propertyGrid.TestAccessor().Dynamic.s_accessibilityProperty, accessibleObject);
System\Windows\Forms\PropertyStoreTests.cs (14)
38
store.
AddValue
(key, value);
49
store.
AddValue
<object?>(key, null);
60
store.
AddValue
<object?>(key, null);
101
store.
AddValue
<object?>(1, null);
111
store.
AddValue
<object?>(1, null);
121
store.
AddValue
<object?>(1, null);
160
store.
AddValue
(1, one);
162
store.
AddValue
(1, two);
177
store.
AddValue
<object?>(1, null);
178
store.
AddValue
(1, one);
183
store.
AddValue
(1, DateTime.Now);
184
store.
AddValue
(1, one);
195
store.
AddValue
(1, one);
197
store.
AddValue
(1, two);