29 overrides of GetValue
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
32public override object? GetValue(object? component) { return _descriptor.GetValue(component); }
System.ComponentModel.TypeConverter (12)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (7)
153public override object GetValue(object? component) 205public override object GetValue(object? component) 258public override object GetValue(object? component) 326public override object GetValue(object? component) 394public override object GetValue(object? component) 441public override object GetValue(object? component) 470public override object GetValue(object? component)
System\ComponentModel\ArrayConverter.cs (1)
73public override object? GetValue(object? instance)
System\ComponentModel\Design\DesignerOptionService.cs (2)
422public override object? GetValue(object? component) => _property.GetValue(_target); 486public override object GetValue(object? component) => _option;
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
113public override object? GetValue(object? comp) => _extenderInfo.ExtenderGetValue(_provider, comp);
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
901public override object? GetValue(object? component)
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
28public override object? GetValue(object? component)
System\Data\Common\DbEnumerator.cs (1)
131public override object? GetValue(object? component) => ((IDataRecord)component!)[_ordinal];
System\Data\DataColumnPropertyDescriptor.cs (1)
63public override object GetValue(object? component)
System\Data\DataRelationPropertyDescriptor.cs (1)
32public override object GetValue(object? component)
System\Data\DataTablePropertyDescriptor.cs (1)
32public override object GetValue(object? component)
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
157public override object? GetValue(object? component)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
636public override object? GetValue(object? component)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
194public override object? GetValue(object? component)
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1199public override object? GetValue(object? component) => _value;
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
77public override object? GetValue(object? component)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
189public override object? GetValue(object? component)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1025public override object? GetValue(object? component)
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
29public override object GetValue(object component) => _basePropDesc.GetValue(component);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1354public override object? GetValue(object? component)
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (1)
752public override object GetValue(object component) => throw new NotImplementedException();
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
152public override object GetValue(object component) => throw new NotImplementedException();
264 references to GetValue
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
56Color backColor = (Color)dockProp.GetValue(Component);
PresentationFramework (5)
MS\Internal\Data\ValueTable.cs (2)
56return pd.GetValue(item); 88value = pd.GetValue(item);
MS\Internal\Data\XDeferredAxisSource.cs (1)
69IEnumerable xda = _propertyDescriptor.GetValue(component) as IEnumerable;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
107object value = descriptor.GetValue(_instance); 842value = _descriptor.GetValue(_object.Instance);
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
168return pd.GetValue(item);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
32public override object? GetValue(object? component) { return _descriptor.GetValue(component); }
System\ComponentModel\DataAnnotations\Validator.cs (1)
529items.Add(new KeyValuePair<ValidationContext, object?>(context, property.GetValue(instance)));
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\DesignerOptionService.cs (2)
93return optionProp?.GetValue(null); 422public override object? GetValue(object? component) => _property.GetValue(_target);
System\ComponentModel\TypeConverter.cs (1)
393return attr.Value!.Equals(GetValue(component));
System.Data.Common (3)
System\Data\xmlsaver.cs (1)
165object? propInst = pd.GetValue(instance);
System\Data\XMLSchema.cs (2)
331object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance); 402object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2326IList items = markupProp.PropertyDescriptor.GetValue(clone) as IList;
System.Windows.Forms (53)
misc\ImageListUtils.cs (1)
57parentInstance = property.GetValue(parentInstance);
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
170return _baseDescriptor.GetValue(component);
System\Windows\Forms\ActiveX\AxHost.cs (1)
999if ((int)property.GetValue(this)! != _selectionStyle)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
993|| property.GetValue(_control) is ISerializable; 1516object sourceValue = currentProperty.GetValue(_control)!; 1556value = converter.ConvertToInvariantString(currentProperty.GetValue(_control)); 1563currentProperty.GetValue(_control),
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
1178value = _props![boundColumnIndex].GetValue(CurrencyManager![rowIndex]);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (11)
1052displayValue = DisplayMemberProperty.GetValue(item); 1057displayValue = ValueMemberProperty.GetValue(item); 1065displayValue = propDesc.GetValue(item); 1074displayValue = propDesc.GetValue(item); 1126value = ValueMemberProperty.GetValue(item); 1131value = DisplayMemberProperty.GetValue(item); 1139value = propDesc.GetValue(item); 1149value = propDesc.GetValue(item); 1433object? value = property.GetValue(itemTmp); 1458displayValue = propDesc.GetValue(item); 1476displayValue = propDesc.GetValue(itemCandidate);
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
453item = descriptor.GetValue(item);
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
56object? listViewInstance = listViewProp.GetValue(instance); 65imageList = (ImageList?)listViewImageListProperty.GetValue(listViewInstance);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
108object propValue = props[i].GetValue(value)!;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1159return property.GetValue(owner); 1376property.GetValue(owner);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (1)
66values[properties[i].Name] = properties[i].GetValue(owner);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (4)
203object? @object = _descriptors[0].GetValue(GetPropertyOwnerForComponent(components, 0)); 223object? currentObject = _descriptors[i].GetValue(GetPropertyOwnerForComponent(components, i)); 258values[i] = _descriptors[i].GetValue(GetPropertyOwnerForComponent(components, i)); 290if (_descriptors[i].GetValue(GetPropertyOwnerForComponent(a, i)) is not IList properties)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
339return PropertyDescriptor.GetValue(owner);
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (2)
103instance = parentProp.GetValue(instance); 115ImageList? imageList = (ImageList?)imageListProp.GetValue(instance);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1071int curSelectionStyle = (int)prop.GetValue(this)!;
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
137obj = FieldInfo.GetValue(obj);
System\Windows\Forms\DataBinding\Binding.cs (2)
584if (_propIsNullInfo is not null && (bool?)_propIsNullInfo.GetValue(BindableComponent) == true) 589return _propInfo?.GetValue(BindableComponent) ?? DataSourceNullValue;
System\Windows\Forms\DataBinding\BindingSource.cs (1)
908currentValue = ListBindingHelper.GetList(dmProp.GetValue(cm.Current));
System\Windows\Forms\DataBinding\CurrencyManager.cs (1)
568object? value = property.GetValue(_list[i]);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
187val = TypeDescriptor.GetProperties(b)[constructorParameterProperty]?.GetValue(b);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (3)
72return (currentItem is null) ? null : dmProp.GetValue(currentItem); 404subList = GetList(listAccessors[startIndex].GetValue(instance)); 461object? value = listAccessors[startIndex].GetValue(target);
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (2)
163SetDataSource(_fieldInfo.GetValue(currencyManager.Current)); 198SetDataSource(_fieldInfo.GetValue(_parentManager.Current));
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
91public override object? Current => (DataSource is not null) ? _fieldInfo.GetValue(DataSource) : null;
System\Windows\Forms\Design\EventsTab.cs (1)
147object? value = property.GetValue(component);
System\Windows\Forms\ImageIndexConverter.cs (2)
126instance = parentProp.GetValue(instance); 138ImageList? imageList = (ImageList?)imageListProp.GetValue(instance);
System\Windows\Forms\ImageKeyConverter.cs (2)
132instance = parentProp.GetValue(instance); 144ImageList? imageList = (ImageList?)imageListProp.GetValue(instance);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
525controlInfo.Name = prop.GetValue(c);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
52name = prop.GetValue(tableControl) as string;
System.Windows.Forms.Design (158)
System\ComponentModel\Design\ComponentDesigner.cs (1)
300object? result = defaultPropEvent.GetValue(comp);
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
39return property.GetValue(_designer.Component);
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
74Value = PropertyDescriptor.GetValue(_actionList);
System\ComponentModel\Design\DesignerActionUIService.cs (1)
78if (p is not null && p.PropertyType == typeof(bool) && !(bool)p.GetValue(null)!)
System\ComponentModel\Design\EventBindingService.cs (1)
234string? methodName = (string?)prop.GetValue(component);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (4)
39if (propertyDescriptor.GetValue(component) is ICollection { Count: > 0 } collection) 191return _propertyDescriptor.GetValue(component); 215currentValue = _propertyDescriptor.GetValue(component); 220_defaultValue = _propertyDescriptor.GetValue(component);
System\ComponentModel\Design\ReferenceService.cs (1)
51CreateReferences($"{trailingName}.{property.Name}", property.GetValue(reference), sitedComponent, references);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (4)
549resources[prop.Name] = prop.GetValue(data._value); 604if (eventProp.GetValue(data._value) is null) 621Debug.Assert(prop.GetValue(data._value) is null, "ShouldSerializeValue and GetValue are differing"); 636object? modifier = TypeDescriptor.GetProperties(data._value)["Modifiers"]?.GetValue(data._value);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
73ResetBrowsableProperties(prop.GetValue(instance)); 366ResetBrowsableProperties(prop.GetValue(instance));
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
1502result = prop.GetValue(target); 2180if (filterProp?.GetValue(manager) is ITypeDescriptorFilterService filterSvc) 2225ResourceCodeDomSerializer.SerializeMetadata(manager, name, property.GetValue(value), property.ShouldSerializeValue(value));
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
31object? optionValue = componentCacheProp?.GetValue(null);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1027return _property.GetValue(_target);
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
43string? methodName = (string?)prop.GetValue(value);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
50propertyValue = property.GetValue(value);
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
35return getProperty?.GetValue(component); 92return dockProperty is null || (DockStyle?)dockProperty.GetValue(_toolStripContainer) == DockStyle.Fill;
System\ComponentModel\Design\UndoEngine.cs (1)
462obj = prop.GetValue(comp);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
244visibleState = (bool)propLoc.GetValue(currentControl); 878if (snapProp is not null && (bool)snapProp.GetValue(parentControl)) 886_parentGridSize = (Size)gridProp.GetValue(parentControl);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (7)
267if (snapProp is not null && (bool)snapProp.GetValue(control.Parent)) 273_parentGridSize = (Size)gridProp.GetValue(control.Parent); 333if ((bool)prop.GetValue(control)) 429object value = propIntegralHeight.GetValue(control); 437return pixelsMoved - (pixelsMoved % (int)propItemHeight.GetValue(control)); 441int integralHeight = (int)propItemHeight.GetValue(control); 571object value = propIntegralHeight.GetValue(targetControl);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (4)
169_styles = ((TableLayoutStyleCollection)_changedProp.GetValue(_table)).Cast<TableLayoutStyle>().ToList(); 289float rightStyleSize = (float)_rightStyle.styleProp.GetValue(_rightStyle.style); 297float leftStyleSize = (float)_leftStyle.styleProp.GetValue(_leftStyle.style); 340float curAbsStyleSize = (float)prop.GetValue(_styles[absIndex]);
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
190object propertyValue = _targetProperty.GetValue(_designer.Component);
System\Windows\Forms\Design\CommandSet.cs (46)
543return (Point)prop.GetValue(comp)!; 593return prop is not null ? (Size)prop.GetValue(comp)! : Size.Empty; 623snapSize = gridSizeProp is not null ? (Size)gridSizeProp.GetValue(snapComponent)! : Size.Empty; 849snapOn = (bool)snapProperty.GetValue(snapComponent)!; 928Point loc = (Point)propLoc.GetValue(component)!; 1015if ((bool)lockProp.GetValue(comp)!) 1036Size size = (Size)sizeProp.GetValue(comp)!; 1042loc = (Point)locProp.GetValue(comp)!; 1050loc = (Point)locProp.GetValue(comp)!; 1058loc = (Point)locProp.GetValue(comp)!; 1066loc = (Point)locProp.GetValue(comp)!; 1075loc = (Point)locProp.GetValue(comp)!; 1083loc = (Point)locProp.GetValue(comp)!; 1145gridSize = (Size)prop.GetValue(baseComponent)!; 1163if (lockedProp is not null && ((bool)lockedProp.GetValue(comp)!)) 1185var loc = (Point)locProp.GetValue(comp)!; 1290if (lockProp is not null && (bool)lockProp.GetValue(comp)!) 1295Size size = (Size)sizeProp.GetValue(comp)!; 1296Point loc = (Point)locProp.GetValue(comp)!; 1345Point loc = (Point)locProp.GetValue(comp)!; 1975if (pd.GetValue(curComp) is string) 2258bool drawGrid = (bool)prop.GetValue(baseComponent)!; 2306primarySize = (Size)sizeProp.GetValue(component)!; 2329if (lockedDesc is not null && (bool)lockedDesc.GetValue(obj)!) 2343Size itemSize = (Size)sizeProp.GetValue(obj)!; 2407grid = (Size)prop.GetValue(baseComponent)!; 2427Size size = (Size)sizeProp.GetValue(comp)!; 2428Point loc = (Point)locProp.GetValue(comp)!; 2491bool snapToGrid = (bool)prop.GetValue(baseComponent)!; 2544grid = (Size)prop.GetValue(baseComponent)!; 2607curSize = (Size)curSizeDesc.GetValue(component)!; 2640curLoc = (Point)curLocDesc.GetValue(curComp)!; 2649curSize = (Size)curSizeDesc.GetValue(curComp)!; 2679lastLoc = (Point)curLocDesc.GetValue(curComp)!; 2688lastSize = (Size)curSizeDesc.GetValue(curComp)!; 2717primaryLoc = (Point)primaryLocDesc.GetValue(primary)!; 2732if (lockedDesc is not null && (bool)lockedDesc.GetValue(curComp)!) 2750curLoc = (Point)curLocDesc.GetValue(curComp)!; 2759curSize = (Size)curSizeDesc.GetValue(curComp)!; 2781lastLoc = (Point)lastLocDesc.GetValue(lastComp)!; 2790lastSize = (Size)lastSizeDesc.GetValue(lastComp)!; 3349gridSize = (Size)gs.GetValue(baseComponent)!; 3470Point pLoc = (Point)pProp.GetValue(p)!; 3471Point qLoc = (Point)qProp.GetValue(q)!; 3488Point pLoc = (Point)pProp.GetValue(p)!; 3489Point qLoc = (Point)qProp.GetValue(q)!;
System\Windows\Forms\Design\ComponentTray.cs (3)
964return (Point)(loc.GetValue(receiver)); 2384if (prop is not null && ((bool)prop.GetValue(_component))) 2486string handler = (string)defaultPropEvent.GetValue(component);
System\Windows\Forms\Design\ContextMenuStripActionList.cs (1)
27return getProperty.GetValue(_toolStripDropDown);
System\Windows\Forms\Design\ControlCommandSet.cs (10)
431snapSize = (Size)gridSizeProp.GetValue(snapComponent); 536DockStyle docked = (DockStyle)dockProp.GetValue(comp); 689snapOn = (bool)snapProperty.GetValue(snapComponent); 773object value = propIntegralHeight.GetValue(component); 779offsetY *= (int)propItemHeight.GetValue(component); // adjust for integralheight 788Size size = (Size)propSize.GetValue(component); 1188if (lockedProp is not null && ((bool)lockedProp.GetValue(_baseControl))) 1206if (lockedProp is not null && ((bool)lockedProp.GetValue(component))) 1258bool drawGrid = (bool)property.GetValue(baseComponent); 1275bool snapToGrid = (bool)property.GetValue(baseComponent);
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
29public override object GetValue(object component) => _basePropDesc.GetValue(component);
System\Windows\Forms\Design\ControlDesigner.cs (6)
231DockStyle dock = (DockStyle)(int)propDock.GetValue(component)!; 270object? value = pd.GetValue(component); 318autoSize = (bool)autoSizeProp!.GetValue(component)!; 323AutoSizeMode mode = (AutoSizeMode)autoSizeModeProp.GetValue(component)!; 920|| (bool)visibleProp.GetValue(component)!; 926|| (bool)enabledProp.GetValue(component)!;
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (2)
31DockStyle dockStyle = (DockStyle)dockProp.GetValue(Component)!; 65DockStyle dockStyle = (DockStyle)dockProp.GetValue(Component)!;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
644object? val = propertyDescriptor?.GetValue(col);
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
414object? UserAddedColumn = pd?.GetValue(dataGridViewColumn); 474object? UserAddedColumn = pd?.GetValue(dataGridViewColumn); 592object? UserAddedColumn = propertyDescriptor?.GetValue(col);
System\Windows\Forms\Design\DesignerUtils.cs (2)
357optionValue = snaplinesProp.GetValue(null); 374return prop?.GetValue(null);
System\Windows\Forms\Design\DocumentDesigner.cs (3)
520locked = (bool)prop.GetValue(Component); 527autoSize = (bool)prop.GetValue(Component); 534mode = (AutoSizeMode)prop.GetValue(Component);
System\Windows\Forms\Design\EditorServiceContext.cs (2)
52object? value = descriptor.GetValue(objectToChange); 141object? propertyValue = _targetProperty?.GetValue(_designer.Component);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
325WindowState = (FormWindowState)windowStateProp.GetValue(component);
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
40text = (string)property.GetValue(value);
System\Windows\Forms\Design\ImageIndexEditor.cs (4)
53(ImageList?)currentProperty.GetValue(_currentInstance) != _currentImageList)) 78instance = properties[ParentImageListProperty]?.GetValue(instance); 84_currentImageList = (ImageList?)imageListProperty.GetValue(instance); 180parentInstance = property.GetValue(parentInstance);
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
40text = (string?)property.GetValue(context.Instance);
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (1)
35text = (string)property.GetValue(value);
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (1)
54text = (string)property.GetValue(value);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
287Globalization.CultureInfo ci = (Globalization.CultureInfo)prop.GetValue(rootComponent)!; 768Point pt = (Point)loc.GetValue(comp)!;
System\Windows\Forms\Design\ParentControlDesigner.cs (6)
945bool autoSize = (bool)prop.GetValue(component); 951size = (Size)prop.GetValue(component); 966size = (Size)prop.GetValue(component); 2145parentLoc = (Point)locationProp.GetValue(newParent); 2167controlLoc = (Point)locProp.GetValue(control); 2195Point oldParentLoc = (Point)locProp.GetValue(oldParent);
System\Windows\Forms\Design\SelectionUIHandler.cs (4)
489if (widthProp is not null && !widthProp.IsReadOnly && size.Width != (int)widthProp.GetValue(components[i])!) 502if (heightProp is not null && !heightProp.IsReadOnly && size.Height != (int)heightProp.GetValue(components[i])!) 631sz = (Size)sizeProp.GetValue(control)!; 640loc = (Point)locProp.GetValue(control)!;
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (2)
31bool needsVertical = ((Orientation)orientationProp.GetValue(_ownerComponent)!) == Orientation.Horizontal; 51if (orientationProp is not null && ((Orientation)orientationProp.GetValue(_ownerComponent)!) != orientation)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
278pageText = nameProp.GetValue(page) as string;
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
53object? val = lsProp?.GetValue(panel);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
99return (bool)prop.GetValue(host.RootComponent); 1064bool locked = (prop is not null) && ((bool)prop.GetValue(Component));
System\Windows\Forms\Design\TabOrder.cs (1)
796if (prop.IsReadOnly && prop.GetValue(ctl) is int propValue)
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (2)
135object? value = prop?.GetValue(component); 139object? auto = propAuto?.GetValue(component);
System\Windows\Forms\Design\ToolStripActionList.cs (1)
56return getProperty?.GetValue(_toolStrip);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1502if (mainMenuStripProperty is not null && mainMenuStripProperty.GetValue(parentForm) is null)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
591return getProperty.GetValue(_currentItem);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
375string oldValue = (string)textProp.GetValue(ToolStripItem); 688string current = (string)pd.GetValue(component);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
543string oldValue = (string)textProp.GetValue(editedItem);
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
44return prop is null ? default : (T?)prop.GetValue(component);
System.Windows.Forms.Design.Tests (11)
ControlDesignerTests.cs (1)
348dockPropDescriptor?.GetValue(_designer._control).Should().Be(dockStyle);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (3)
225Assert.Equal(0, property.GetValue(new Component())); 227Assert.Equal(1, property.GetValue(new Component())); 229Assert.Equal(1, property.GetValue(new Component()));
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (7)
17Size size = (Size)inheritedPropertyDescriptor.GetValue(control); 21size = (Size)inheritedPropertyDescriptor.GetValue(control); 31AnchorStyles anchor = (AnchorStyles)inheritedPropertyDescriptor.GetValue(control); 35anchor = (AnchorStyles)inheritedPropertyDescriptor.GetValue(control); 39anchor = (AnchorStyles)inheritedPropertyDescriptor.GetValue(control); 49Color backColor = (Color)inheritedPropertyDescriptor.GetValue(control); 53backColor = (Color)inheritedPropertyDescriptor.GetValue(control);
System.Windows.Forms.Primitives (4)
System\ComponentModel\PropertyDescriptorCollectionExtensions.cs (1)
17value = (T)propertyDescriptor.GetValue(component)!;
System\ComponentModel\PropertyDescriptorExtensions.cs (2)
12value = (T?)descriptor.GetValue(component); 26return (T?)descriptor.GetValue(component);
System\Windows\Forms\PaddingConverter.cs (1)
73object? original = context?.PropertyDescriptor?.GetValue(context.Instance);
System.Windows.Forms.Tests (20)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (11)
501Assert.Null(property.GetValue(control)); 525Assert.Null(property.GetValue(control)); 544Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.GetValue(control)).Value); 569Assert.Equal("CustomProperty", property.GetValue(control)); 605Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.GetValue(control)).Value); 636Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.GetValue(control)).Value); 657Assert.Null(property.GetValue(null)); 684Assert.Null(property.GetValue(null)); 705Assert.Null(property.GetValue(new object())); 732Assert.Throws<TargetInvocationException>(() => property.GetValue(new object())); 740Assert.Null(property.GetValue(new object()));
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (9)
61Assert.NotEqual(0, handleProperty.GetValue(iPictureDisp)); 74Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)(short)typeProperty.GetValue(iPictureDisp)); 87Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)(short)properties["Type"].GetValue(iPicture)); 143Assert.Equal(string.Empty, urlProperty.GetValue(mediaPlayer)); 148Assert.EndsWith("Movie.mpg", (string)urlProperty.GetValue(mediaPlayer)); 175Assert.Equal(0, accChildCount.GetValue(comWrapper)); 180Assert.Null(accFocus.GetValue(comWrapper)); 199Assert.Equal(42, accChildCount.GetValue(comWrapper)); 203Assert.Equal((int)PInvoke.CHILDID_SELF, accFocus.GetValue(comWrapper));
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
413string originalValue = propertyDescriptor?.GetValue(textBox) as string ?? string.Empty; 419propertyDescriptor!.GetValue(textBox).Should().Be(originalValue);