23 overrides of SetValue
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
51
public override void
SetValue
(object? component, object? value) { _descriptor.SetValue(component, value); }
System.ComponentModel.TypeConverter (6)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
126
public override void
SetValue
(object? component, object? value)
System\ComponentModel\ArrayConverter.cs (1)
83
public override void
SetValue
(object? instance, object? value)
System\ComponentModel\Design\DesignerOptionService.cs (2)
426
public override void
SetValue
(object? component, object? value) => _property.SetValue(_target, value);
492
public override void
SetValue
(object? component, object? value)
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
123
public override void
SetValue
(object? component, object? value)
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
1078
public override void
SetValue
(object? component, object? value)
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
56
public override void
SetValue
(object? component, object? value)
System\Data\Common\DbEnumerator.cs (1)
138
public override void
SetValue
(object? component, object? value)
System\Data\DataColumnPropertyDescriptor.cs (1)
75
public override void
SetValue
(object? component, object? value)
System\Data\DataRelationPropertyDescriptor.cs (1)
40
public override void
SetValue
(object? component, object? value) { }
System\Data\DataTablePropertyDescriptor.cs (1)
40
public override void
SetValue
(object? component, object? value) { }
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
212
public override void
SetValue
(object? component, object? value)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
817
public override unsafe void
SetValue
(object? component, object? value)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
311
public override void
SetValue
(object? component, object? value)
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1211
public override void
SetValue
(object? component, object? value)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
131
public override void
SetValue
(object? component, object? value)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
267
public override void
SetValue
(object? component, object? value)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1035
public override void
SetValue
(object? component, object? value)
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
33
public override void
SetValue
(object component, object value) => _basePropDesc.SetValue(component, value);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1380
public override void
SetValue
(object? component, object? value)
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (1)
756
public override void
SetValue
(object component, object value)
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
156
public override void
SetValue
(object component, object value)
191 references to SetValue
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
87
GetProperty(propertyName).
SetValue
(_control, value);
DesignSurfaceExt (4)
DesignSurfaceExt.cs (4)
130
pdS?.
SetValue
(ihost.RootComponent, controlSize);
140
pdS?.
SetValue
(ihost.RootComponent, controlSize);
178
pdS?.
SetValue
(newComp, controlSize);
180
pdL?.
SetValue
(newComp, controlLocation);
PresentationFramework (1)
MS\Internal\Data\PropertyPathWorker.cs (1)
363
pd.
SetValue
(item, value);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
51
public override void SetValue(object? component, object? value) { _descriptor.
SetValue
(component, value); }
System.ComponentModel.TypeConverter (4)
System\ComponentModel\ComponentResourceManager.cs (1)
176
prop.
SetValue
(value, kvp.Value);
System\ComponentModel\Design\DesignerOptionService.cs (2)
103
optionProp?.
SetValue
(null, value);
426
public override void SetValue(object? component, object? value) => _property.
SetValue
(_target, value);
System\ComponentModel\TypeConverter.cs (1)
404
SetValue
(component, attr.Value);
System.Data.Common (2)
System\Data\XMLSchema.cs (2)
66
pd.
SetValue
(instance, propValue);
313
pd.
SetValue
(instance, propValue);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
2342
markupProp.PropertyDescriptor.
SetValue
(clone, clonedPropertyValue);
2348
markupProp.PropertyDescriptor.
SetValue
(clone, clonedPropertyValue);
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
226
_baseDescriptor.
SetValue
(component, Enum.ToObject(PropertyType, value));
230
_baseDescriptor.
SetValue
(component, value);
System\Windows\Forms\ActiveX\AxHost.cs (2)
1000
property.
SetValue
(this, _selectionStyle);
2396
property.
SetValue
(this, selectionStyle);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1166
currentProperty.
SetValue
(_control, deserialized);
1193
currentProperty.
SetValue
(_control, newValue);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
169
pd?.
SetValue
(this, false);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
1490
_props![boundColumnIndex].
SetValue
(CurrencyManager![rowIndex], value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
324
_descriptors[i].
SetValue
(GetPropertyOwnerForComponent(array, i), clonedValue);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
749
PropertyDescriptor.
SetValue
(realOwner, newValue);
880
PropertyDescriptor.
SetValue
(owner, newHandler);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
126
pd?.
SetValue
(this, false);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
738
prop.
SetValue
(this, (int)selectionStyle);
1074
prop.
SetValue
(this, _selectionStyle);
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
178
FieldInfo.
SetValue
(obj, value);
System\Windows\Forms\DataBinding\Binding.cs (4)
1052
_propIsNullInfo.
SetValue
(BindableComponent, true);
1058
_propInfo.
SetValue
(BindableComponent, DataSourceNullValue);
1062
_propInfo.
SetValue
(BindableComponent, null);
1068
_propInfo!.
SetValue
(BindableComponent, value);
System.Windows.Forms.Design (128)
System\ComponentModel\Design\ComponentDesigner.cs (2)
48
defaultProperty.
SetValue
(_component, site.Name);
333
defaultPropEvent.
SetValue
(comp, handler);
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
72
PropertyDescriptor.
SetValue
(_actionList, newValue);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
269
_propertyDescriptor.
SetValue
(component, value);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
190
prop?.
SetValue
(comp, stateEntry.Value);
425
prop?.
SetValue
(comp, null);
445
modifierProp?.
SetValue
(comp, modifierValue);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (4)
388
property.
SetValue
(value, resourceObject);
502
prop.
SetValue
(targetObject, null);
1237
prop.
SetValue
(targetObject, handlerMethodName);
1613
p.
SetValue
(lhs, rhs);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1037
_property.
SetValue
(_target, value);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
312
prop.
SetValue
(value, modifiers);
System\ComponentModel\Design\ToolStripContainerActionList.cs (4)
56
visibleProperty?.
SetValue
(control, value);
74
changingProperty?.
SetValue
(component, value);
125
dockProp?.
SetValue
(_toolStripContainer, DockStyle.Fill);
144
autoScrollProp?.
SetValue
(newParent, true);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
251
propLoc?.
SetValue
(currentControl, visibleState);
279
propLoc.
SetValue
(currentControl, pt);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (8)
767
propWidth.
SetValue
(_resizeComponents[i].resizeControl, bounds.Width);
773
propHeight.
SetValue
(_resizeComponents[i].resizeControl, bounds.Height);
779
propLeft.
SetValue
(_resizeComponents[i].resizeControl, bounds.X);
785
propTop.
SetValue
(_resizeComponents[i].resizeControl, bounds.Y);
932
propWidth.
SetValue
(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Width);
937
propHeight.
SetValue
(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Height);
942
propTop.
SetValue
(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Top);
947
propLeft.
SetValue
(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Left);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (4)
304
_rightStyle.styleProp.
SetValue
(_rightStyle.style, newRightSize);
305
_leftStyle.styleProp.
SetValue
(_leftStyle.style, newLeftSize);
324
prop?.
SetValue
(_styles[i], newSize);
348
prop.
SetValue
(_styles[absIndex], newAbsSize);
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
34
prop.
SetValue
(Component, true);
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
87
textProp.
SetValue
(Component, string.Empty);
System\Windows\Forms\Design\CommandSet.cs (12)
930
propLoc.
SetValue
(component, loc);
1098
locProp.
SetValue
(comp, loc);
1218
locProp.
SetValue
(comp, loc);
1370
locProp.
SetValue
(comp, loc);
1977
pd.
SetValue
(curComp, null);
2096
textProp.
SetValue
(curComp, newName);
2259
prop.
SetValue
(baseComponent, !drawGrid);
2357
sizeProp.
SetValue
(obj, itemSize);
2435
sizeProp.
SetValue
(comp, size);
2436
locProp.
SetValue
(comp, loc);
2492
prop.
SetValue
(baseComponent, !snapToGrid);
2868
curLocDesc.
SetValue
(curComp, curLoc);
System\Windows\Forms\Design\ComponentTray.cs (6)
307
trayIconProp?.
SetValue
(_mainDesigner.Component, !ShowLargeIcons);
413
trayAAProp?.
SetValue
(_mainDesigner.Component, !AutoArrange);
1549
loc.
SetValue
(receiver, location);
1845
ctlLocation.
SetValue
(comp, newLoc);
1880
ctlLocation.
SetValue
(comp, newLoc);
2508
defaultPropEvent.
SetValue
(component, handler);
System\Windows\Forms\Design\ContextMenuStripActionList.cs (1)
38
changingProperty?.
SetValue
(_toolStripDropDown, value);
System\Windows\Forms\Design\ControlCommandSet.cs (2)
790
propSize.
SetValue
(component, size);
891
prop.
SetValue
(comp, targetValue);
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
33
public override void SetValue(object component, object value) => _basePropDesc.
SetValue
(component, value);
System\Windows\Forms\Design\ControlDesigner.cs (3)
1144
textProp.
SetValue
(Component, site.Name);
1180
dockProp.
SetValue
(Component, DockStyle.Fill);
1204
textProp.
SetValue
(Component, site.Name);
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
66
dockProp.
SetValue
(Component, dockStyle == DockStyle.Fill ? DockStyle.None : DockStyle.Fill);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
143
pd?.
SetValue
(column, true);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
265
propertyDescriptor?.
SetValue
(newColumns[i], -1);
275
pd?.
SetValue
(newColumns[i], userAddedColumnsInfo[i]);
System\Windows\Forms\Design\EditorServiceContext.cs (1)
60
descriptor.
SetValue
(objectToChange, newValue);
System\Windows\Forms\Design\ImageListActionList.cs (2)
29
TypeDescriptor.GetProperties(Component)[nameof(ColorDepth)]?.
SetValue
(Component, value);
41
TypeDescriptor.GetProperties(Component)[nameof(ImageSize)]?.
SetValue
(Component, value);
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
55
property.
SetValue
(context!.Instance, text);
System\Windows\Forms\Design\ListViewActionList.cs (3)
44
TypeDescriptor.GetProperties(_listView)["View"]!.
SetValue
(Component, value);
56
TypeDescriptor.GetProperties(_listView)["LargeImageList"]!.
SetValue
(Component, value);
68
TypeDescriptor.GetProperties(_listView)["SmallImageList"]!.
SetValue
(Component, value);
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
52
maskProperty?.
SetValue
(_maskedTextBox, mask);
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
567
prop?.
SetValue
(newChild, new Size(bounds.Width, bounds.Height));
585
prop?.
SetValue
(newChild, pt);
2199
locProp.
SetValue
(control, newLoc);
System\Windows\Forms\Design\PictureBoxActionList.cs (1)
29
TypeDescriptor.GetProperties(_pictureBox)["SizeMode"]!.
SetValue
(Component, value);
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
24
prop.
SetValue
(Component, true);
System\Windows\Forms\Design\SelectionUIHandler.cs (7)
401
boundsProp.
SetValue
(component, newBounds);
428
trayProp.
SetValue
(components[i], adjustedLoc);
443
topProp.
SetValue
(component, adjustedLoc.Y);
456
leftProp.
SetValue
(component, adjustedLoc.X);
469
locationProp.
SetValue
(components[i], adjustedLoc);
494
widthProp.
SetValue
(component, size);
507
heightProp.
SetValue
(component, size);
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (1)
53
orientationProp.
SetValue
(_ownerComponent, orientation);
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
121
lockedProp.
SetValue
(component, true);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (4)
180
imageProperty?.
SetValue
(item, image);
327
displayStyleProperty?.
SetValue
(item, ToolStripItemDisplayStyle.Image);
331
textProperty?.
SetValue
(item, itemText);
347
imageProperty?.
SetValue
(item, image);
System\Windows\Forms\Design\TabControlDesigner.cs (2)
285
textProperty?.
SetValue
(page, pageText);
291
styleProp.
SetValue
(page, true);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (14)
469
rowProp?.
SetValue
(Table, Table.GetRowHeights().Length);
477
colProp?.
SetValue
(Table, Table.GetColumnWidths().Length);
643
colProp?.
SetValue
(Table, DesignerUtils.s_defaultColumnCount);
646
rowProp?.
SetValue
(Table, DesignerUtils.s_defaultRowCount);
1367
columnSpan?.
SetValue
(dragControl, 1);
1369
rowSpan?.
SetValue
(dragControl, 1);
1685
rowProp.
SetValue
(Table, Table.RowCount + 1);
1697
colProp.
SetValue
(Table, Table.ColumnCount + 1);
1732
prop?.
SetValue
(child, currentIndex + 1);
1741
spanProp?.
SetValue
(child, span + 1);
1821
prop?.
SetValue
(child, currentIndex - 1);
1831
spanProp?.
SetValue
(child, span - 1);
1846
rowProp.
SetValue
(Table, Table.RowCount - 1);
1858
colProp.
SetValue
(Table, Table.ColumnCount - 1);
System\Windows\Forms\Design\TabOrder.cs (1)
821
prop.
SetValue
(ctl, index);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (3)
98
imageProperty.
SetValue
(component, image);
103
dispProperty?.
SetValue
(component, ToolStripItemDisplayStyle.Image);
107
imageTransProperty?.
SetValue
(component, Color.Magenta);
System\Windows\Forms\Design\TextBoxActionList.cs (1)
27
TypeDescriptor.GetProperties(_textBox)["Multiline"]!.
SetValue
(Component, value);
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
96
textProp.
SetValue
(Component, string.Empty);
System\Windows\Forms\Design\ToolStripActionList.cs (1)
64
changingProperty?.
SetValue
(_toolStrip, value);
System\Windows\Forms\Design\ToolStripDesigner.cs (6)
601
textProperty.
SetValue
(item, text);
620
imageProperty.
SetValue
(item, image);
625
dispProperty?.
SetValue
(item, ToolStripItemDisplayStyle.Image);
629
imageTransProperty?.
SetValue
(item, Color.Magenta);
1488
dockProp?.
SetValue
(ToolStrip, DockStyle.None);
1505
mainMenuStripProperty.
SetValue
(parentForm, ToolStrip as MenuStrip);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
609
changingProperty?.
SetValue
(target, value);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (6)
378
textProp.
SetValue
(ToolStripItem, text);
691
pd.
SetValue
(component, site.Name);
705
textProp.
SetValue
(Component, string.Empty);
828
imageProperty.
SetValue
(newItem, image);
833
dispProperty?.
SetValue
(newItem, ToolStripItemDisplayStyle.Image);
837
imageTransProperty?.
SetValue
(newItem, Color.Magenta);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
546
textProp.
SetValue
(editedItem, text);
897
textProperty.
SetValue
(newItem, newText);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
381
dockProp?.
SetValue
(e.Control, DockStyle.None);
System\Windows\Forms\Design\TreeViewActionList.cs (1)
34
TypeDescriptor.GetProperties(_treeView)["ImageList"]!.
SetValue
(Component, value);
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
227
property.
SetValue
(new Component(), 1);
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (1)
52
inheritedPropertyDescriptor.
SetValue
(control, Color.Purple);
System.Windows.Forms.Tests (27)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (26)
785
property.
SetValue
(control, "CustomProperty");
804
property.
SetValue
(control, new DataSource
821
property.
SetValue
(control, new DataSource
850
property.
SetValue
(control, "CustomProperty");
881
property.
SetValue
(control, new DataSource
910
property.
SetValue
(control, new DataSource
942
property.
SetValue
(control, ConsoleColor.Blue);
971
property.
SetValue
(control, (int)ConsoleColor.Blue);
990
property.
SetValue
(null, "CustomProperty");
1014
property.
SetValue
(null, "Value");
1033
property.
SetValue
(new object(), "Value");
1058
Assert.Throws<TargetException>(() => property.
SetValue
(new object(), "Value"));
1067
Assert.Throws<TargetException>(() => property.
SetValue
(new object(), "Value"));
1085
property.
SetValue
(control, new object());
1110
Assert.Throws<ArgumentException>(() => property.
SetValue
(control, new object()));
1119
Assert.Throws<ArgumentException>(() => property.
SetValue
(control, new object()));
1135
property.
SetValue
(control, new object());
1158
Assert.Throws<ArgumentException>(() => property.
SetValue
(control, new object()));
1167
Assert.Throws<ArgumentException>(() => property.
SetValue
(control, new object()));
1183
property.
SetValue
(control, new object());
1206
Assert.Throws<ArgumentException>("value", () => property.
SetValue
(control, new object()));
1215
Assert.Throws<ArgumentException>("value", () => property.
SetValue
(control, new object()));
1234
property.
SetValue
(control, null);
1260
property.
SetValue
(control, null);
1269
property.
SetValue
(control, null);
1288
property.
SetValue
(control, null);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
144
urlProperty.
SetValue
(mediaPlayer, "Movie.mpg");