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