30 overrides of GetValue
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
32
public override object?
GetValue
(object? component) { return _descriptor.GetValue(component); }
System.ComponentModel.TypeConverter (12)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (7)
153
public override object
GetValue
(object? component)
205
public override object
GetValue
(object? component)
258
public override object
GetValue
(object? component)
326
public override object
GetValue
(object? component)
394
public override object
GetValue
(object? component)
441
public override object
GetValue
(object? component)
470
public override object
GetValue
(object? component)
System\ComponentModel\ArrayConverter.cs (1)
73
public override object?
GetValue
(object? instance)
System\ComponentModel\Design\DesignerOptionService.cs (2)
417
public override object?
GetValue
(object? component) => _property.GetValue(_target);
481
public override object
GetValue
(object? component) => _option;
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
113
public override object?
GetValue
(object? comp) => _extenderInfo.ExtenderGetValue(_provider, comp);
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
901
public override object?
GetValue
(object? component)
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
28
public override object?
GetValue
(object? component)
System\Data\Common\DbEnumerator.cs (1)
131
public override object?
GetValue
(object? component) => ((IDataRecord)component!)[_ordinal];
System\Data\DataColumnPropertyDescriptor.cs (1)
63
public override object
GetValue
(object? component)
System\Data\DataRelationPropertyDescriptor.cs (1)
32
public override object
GetValue
(object? component)
System\Data\DataTablePropertyDescriptor.cs (1)
32
public override object
GetValue
(object? component)
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
157
public override object?
GetValue
(object? component)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
636
public override object?
GetValue
(object? component)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
194
public override object?
GetValue
(object? component)
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1193
public override object?
GetValue
(object? component) => _value;
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
77
public override object?
GetValue
(object? component)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
189
public override object?
GetValue
(object? component)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1025
public override object?
GetValue
(object? component)
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
29
public override object
GetValue
(object component) => _basePropDesc.GetValue(component);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1348
public override object?
GetValue
(object? component)
System.Windows.Forms.Tests (3)
System\Windows\Forms\DataGridViewComboBoxCellTests.cs (1)
190
public override object?
GetValue
(object? component) => null!;
System\Windows\Forms\ListBindingHelperTests.cs (1)
754
public override object
GetValue
(object component) => throw new NotImplementedException();
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
154
public override object
GetValue
(object component) => throw new NotImplementedException();
265 references to GetValue
DemoConsole (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
52
Color backColor = (Color)dockProp.
GetValue
(Component);
PresentationFramework (5)
MS\Internal\Data\ValueTable.cs (2)
55
return pd.
GetValue
(item);
87
value = pd.
GetValue
(item);
MS\Internal\Data\XDeferredAxisSource.cs (1)
68
IEnumerable xda = _propertyDescriptor.
GetValue
(component) as IEnumerable;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
106
object value = descriptor.
GetValue
(_instance);
841
value = _descriptor.
GetValue
(_object.Instance);
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
173
return pd.
GetValue
(item);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
32
public override object? GetValue(object? component) { return _descriptor.
GetValue
(component); }
System\ComponentModel\DataAnnotations\Validator.cs (1)
528
items.Add(new KeyValuePair<ValidationContext, object?>(context, property.
GetValue
(instance)));
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\DesignerOptionService.cs (2)
88
return optionProp?.
GetValue
(null);
417
public override object? GetValue(object? component) => _property.
GetValue
(_target);
System\ComponentModel\TypeConverter.cs (1)
393
return attr.Value!.Equals(
GetValue
(component));
System.Data.Common (3)
System\Data\xmlsaver.cs (1)
165
object? propInst = pd.
GetValue
(instance);
System\Data\XMLSchema.cs (2)
328
object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.
GetValue
(instance);
399
object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.
GetValue
(instance);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2305
IList items = markupProp.PropertyDescriptor.
GetValue
(clone) as IList;
System.Windows.Forms (53)
misc\ImageListUtils.cs (1)
57
parentInstance = property.
GetValue
(parentInstance);
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
170
return _baseDescriptor.
GetValue
(component);
System\Windows\Forms\ActiveX\AxHost.cs (1)
996
if ((int)property.
GetValue
(this)! != _selectionStyle)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
993
|| property.
GetValue
(_control) is ISerializable;
1516
object sourceValue = currentProperty.
GetValue
(_control)!;
1556
value = converter.ConvertToInvariantString(currentProperty.
GetValue
(_control));
1563
currentProperty.
GetValue
(_control),
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
1178
value = _props![boundColumnIndex].
GetValue
(CurrencyManager![rowIndex]);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (11)
1049
displayValue = DisplayMemberProperty.
GetValue
(item);
1054
displayValue = ValueMemberProperty.
GetValue
(item);
1062
displayValue = propDesc.
GetValue
(item);
1071
displayValue = propDesc.
GetValue
(item);
1123
value = ValueMemberProperty.
GetValue
(item);
1128
value = DisplayMemberProperty.
GetValue
(item);
1136
value = propDesc.
GetValue
(item);
1146
value = propDesc.
GetValue
(item);
1430
object? value = property.
GetValue
(itemTmp);
1455
displayValue = propDesc.
GetValue
(item);
1473
displayValue = propDesc.
GetValue
(itemCandidate);
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
454
item = descriptor.
GetValue
(item);
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
56
object? listViewInstance = listViewProp.
GetValue
(instance);
65
imageList = (ImageList?)listViewImageListProperty.
GetValue
(listViewInstance);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
108
object propValue = props[i].
GetValue
(value)!;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1150
return property.
GetValue
(owner);
1367
property.
GetValue
(owner);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (1)
66
values[properties[i].Name] = properties[i].
GetValue
(owner);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (4)
203
object? @object = _descriptors[0].
GetValue
(GetPropertyOwnerForComponent(components, 0));
223
object? currentObject = _descriptors[i].
GetValue
(GetPropertyOwnerForComponent(components, i));
258
values[i] = _descriptors[i].
GetValue
(GetPropertyOwnerForComponent(components, i));
287
if (_descriptors[i].
GetValue
(GetPropertyOwnerForComponent(a, i)) is not IList properties)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
339
return PropertyDescriptor.
GetValue
(owner);
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (2)
103
instance = parentProp.
GetValue
(instance);
115
ImageList? imageList = (ImageList?)imageListProp.
GetValue
(instance);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1065
int curSelectionStyle = (int)prop.
GetValue
(this)!;
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
137
obj = FieldInfo.
GetValue
(obj);
System\Windows\Forms\DataBinding\Binding.cs (2)
584
if (_propIsNullInfo is not null && (bool?)_propIsNullInfo.
GetValue
(BindableComponent) == true)
589
return _propInfo?.
GetValue
(BindableComponent) ?? DataSourceNullValue;
System\Windows\Forms\DataBinding\BindingSource.cs (1)
908
currentValue = ListBindingHelper.GetList(dmProp.
GetValue
(cm.Current));
System\Windows\Forms\DataBinding\CurrencyManager.cs (1)
568
object? value = property.
GetValue
(_list[i]);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
187
val = TypeDescriptor.GetProperties(b)[constructorParameterProperty]?.
GetValue
(b);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (3)
72
return (currentItem is null) ? null : dmProp.
GetValue
(currentItem);
404
subList = GetList(listAccessors[startIndex].
GetValue
(instance));
461
object? value = listAccessors[startIndex].
GetValue
(target);
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (2)
163
SetDataSource(_fieldInfo.
GetValue
(currencyManager.Current));
198
SetDataSource(_fieldInfo.
GetValue
(_parentManager.Current));
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
91
public override object? Current => (DataSource is not null) ? _fieldInfo.
GetValue
(DataSource) : null;
System\Windows\Forms\Design\EventsTab.cs (1)
147
object? value = property.
GetValue
(component);
System\Windows\Forms\ImageIndexConverter.cs (2)
126
instance = parentProp.
GetValue
(instance);
138
ImageList? imageList = (ImageList?)imageListProp.
GetValue
(instance);
System\Windows\Forms\ImageKeyConverter.cs (2)
132
instance = parentProp.
GetValue
(instance);
144
ImageList? imageList = (ImageList?)imageListProp.
GetValue
(instance);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
525
controlInfo.Name = prop.
GetValue
(c);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
52
name = prop.
GetValue
(tableControl) as string;
System.Windows.Forms.Design (161)
System\ComponentModel\Design\ComponentDesigner.cs (1)
300
object? result = defaultPropEvent.
GetValue
(comp);
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
39
return property.
GetValue
(_designer.Component);
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (2)
74
Value = PropertyDescriptor.
GetValue
(_actionList);
100
Value = PropertyDescriptor.
GetValue
(info.List);
System\ComponentModel\Design\DesignerActionUIService.cs (1)
78
if (p is not null && p.PropertyType == typeof(bool) && !(bool)p.
GetValue
(null)!)
System\ComponentModel\Design\EventBindingService.cs (1)
234
string? methodName = (string?)prop.
GetValue
(component);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (4)
39
if (propertyDescriptor.
GetValue
(component) is ICollection { Count: > 0 } collection)
191
return _propertyDescriptor.
GetValue
(component);
215
currentValue = _propertyDescriptor.
GetValue
(component);
220
_defaultValue = _propertyDescriptor.
GetValue
(component);
System\ComponentModel\Design\ReferenceService.cs (1)
51
CreateReferences($"{trailingName}.{property.Name}", property.
GetValue
(reference), sitedComponent, references);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (4)
549
resources[prop.Name] = prop.
GetValue
(data._value);
604
if (eventProp.
GetValue
(data._value) is null)
621
Debug.Assert(prop.
GetValue
(data._value) is null, "ShouldSerializeValue and GetValue are differing");
636
object? modifier = TypeDescriptor.GetProperties(data._value)["Modifiers"]?.
GetValue
(data._value);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
73
ResetBrowsableProperties(prop.
GetValue
(instance));
366
ResetBrowsableProperties(prop.
GetValue
(instance));
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
1502
result = prop.
GetValue
(target);
2177
if (filterProp?.
GetValue
(manager) is ITypeDescriptorFilterService filterSvc)
2222
ResourceCodeDomSerializer.SerializeMetadata(manager, name, property.
GetValue
(value), property.ShouldSerializeValue(value));
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
31
object? optionValue = componentCacheProp?.
GetValue
(null);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1027
return _property.
GetValue
(_target);
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
43
string? methodName = (string?)prop.
GetValue
(value);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
50
propertyValue = property.
GetValue
(value);
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
35
return getProperty?.
GetValue
(component);
89
return dockProperty is null || (DockStyle?)dockProperty.
GetValue
(_toolStripContainer) == DockStyle.Fill;
System\ComponentModel\Design\UndoEngine.cs (1)
462
obj = prop.
GetValue
(comp);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
244
visibleState = (bool)propLoc.
GetValue
(currentControl);
872
if (snapProp is not null && (bool)snapProp.
GetValue
(parentControl))
880
_parentGridSize = (Size)gridProp.
GetValue
(parentControl);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (7)
267
if (snapProp is not null && (bool)snapProp.
GetValue
(control.Parent))
273
_parentGridSize = (Size)gridProp.
GetValue
(control.Parent);
333
if ((bool)prop.
GetValue
(control))
429
object value = propIntegralHeight.
GetValue
(control);
437
return pixelsMoved - (pixelsMoved % (int)propItemHeight.
GetValue
(control));
441
int integralHeight = (int)propItemHeight.
GetValue
(control);
571
object value = propIntegralHeight.
GetValue
(targetControl);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (4)
169
_styles = [..((TableLayoutStyleCollection)_changedProp.
GetValue
(_table)).Cast<TableLayoutStyle>()];
289
float rightStyleSize = (float)_rightStyle.styleProp.
GetValue
(_rightStyle.style);
297
float leftStyleSize = (float)_leftStyle.styleProp.
GetValue
(_leftStyle.style);
340
float curAbsStyleSize = (float)prop.
GetValue
(_styles[absIndex]);
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
190
object propertyValue = _targetProperty.
GetValue
(_designer.Component);
System\Windows\Forms\Design\CommandSet.cs (46)
537
return (Point)prop.
GetValue
(comp)!;
587
return prop is not null ? (Size)prop.
GetValue
(comp)! : Size.Empty;
617
snapSize = gridSizeProp is not null ? (Size)gridSizeProp.
GetValue
(snapComponent)! : Size.Empty;
843
snapOn = (bool)snapProperty.
GetValue
(snapComponent)!;
922
Point loc = (Point)propLoc.
GetValue
(component)!;
1009
if ((bool)lockProp.
GetValue
(comp)!)
1030
Size size = (Size)sizeProp.
GetValue
(comp)!;
1036
loc = (Point)locProp.
GetValue
(comp)!;
1044
loc = (Point)locProp.
GetValue
(comp)!;
1052
loc = (Point)locProp.
GetValue
(comp)!;
1060
loc = (Point)locProp.
GetValue
(comp)!;
1069
loc = (Point)locProp.
GetValue
(comp)!;
1077
loc = (Point)locProp.
GetValue
(comp)!;
1139
gridSize = (Size)prop.
GetValue
(baseComponent)!;
1157
if (lockedProp is not null && ((bool)lockedProp.
GetValue
(comp)!))
1179
var loc = (Point)locProp.
GetValue
(comp)!;
1284
if (lockProp is not null && (bool)lockProp.
GetValue
(comp)!)
1289
Size size = (Size)sizeProp.
GetValue
(comp)!;
1290
Point loc = (Point)locProp.
GetValue
(comp)!;
1339
Point loc = (Point)locProp.
GetValue
(comp)!;
1969
if (pd.
GetValue
(curComp) is string)
2252
bool drawGrid = (bool)prop.
GetValue
(baseComponent)!;
2300
primarySize = (Size)sizeProp.
GetValue
(component)!;
2323
if (lockedDesc is not null && (bool)lockedDesc.
GetValue
(obj)!)
2337
Size itemSize = (Size)sizeProp.
GetValue
(obj)!;
2401
grid = (Size)prop.
GetValue
(baseComponent)!;
2421
Size size = (Size)sizeProp.
GetValue
(comp)!;
2422
Point loc = (Point)locProp.
GetValue
(comp)!;
2485
bool snapToGrid = (bool)prop.
GetValue
(baseComponent)!;
2538
grid = (Size)prop.
GetValue
(baseComponent)!;
2601
curSize = (Size)curSizeDesc.
GetValue
(component)!;
2634
curLoc = (Point)curLocDesc.
GetValue
(curComp)!;
2643
curSize = (Size)curSizeDesc.
GetValue
(curComp)!;
2673
lastLoc = (Point)curLocDesc.
GetValue
(curComp)!;
2682
lastSize = (Size)curSizeDesc.
GetValue
(curComp)!;
2711
primaryLoc = (Point)primaryLocDesc.
GetValue
(primary)!;
2726
if (lockedDesc is not null && (bool)lockedDesc.
GetValue
(curComp)!)
2744
curLoc = (Point)curLocDesc.
GetValue
(curComp)!;
2753
curSize = (Size)curSizeDesc.
GetValue
(curComp)!;
2775
lastLoc = (Point)lastLocDesc.
GetValue
(lastComp)!;
2784
lastSize = (Size)lastSizeDesc.
GetValue
(lastComp)!;
3343
gridSize = (Size)gs.
GetValue
(baseComponent)!;
3464
Point pLoc = (Point)pProp.
GetValue
(p)!;
3465
Point qLoc = (Point)qProp.
GetValue
(q)!;
3482
Point pLoc = (Point)pProp.
GetValue
(p)!;
3483
Point qLoc = (Point)qProp.
GetValue
(q)!;
System\Windows\Forms\Design\ComponentTray.cs (3)
949
return (Point)(loc.
GetValue
(receiver));
2366
if (prop is not null && ((bool)prop.
GetValue
(_component)))
2468
string handler = (string)defaultPropEvent.
GetValue
(component);
System\Windows\Forms\Design\ContextMenuStripActionList.cs (1)
27
return getProperty.
GetValue
(_toolStripDropDown);
System\Windows\Forms\Design\ControlCommandSet.cs (10)
428
snapSize = (Size)gridSizeProp.
GetValue
(snapComponent);
533
DockStyle docked = (DockStyle)dockProp.
GetValue
(comp);
686
snapOn = (bool)snapProperty.
GetValue
(snapComponent);
770
object value = propIntegralHeight.
GetValue
(component);
776
offsetY *= (int)propItemHeight.
GetValue
(component); // adjust for integralheight
785
Size size = (Size)propSize.
GetValue
(component);
1182
if (lockedProp is not null && ((bool)lockedProp.
GetValue
(_baseControl)))
1200
if (lockedProp is not null && ((bool)lockedProp.
GetValue
(component)))
1252
bool drawGrid = (bool)property.
GetValue
(baseComponent);
1269
bool snapToGrid = (bool)property.
GetValue
(baseComponent);
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
29
public override object GetValue(object component) => _basePropDesc.
GetValue
(component);
System\Windows\Forms\Design\ControlDesigner.cs (6)
231
DockStyle dock = (DockStyle)(int)propDock.
GetValue
(component)!;
270
object? value = pd.
GetValue
(component);
318
autoSize = (bool)autoSizeProp!.
GetValue
(component)!;
323
AutoSizeMode mode = (AutoSizeMode)autoSizeModeProp.
GetValue
(component)!;
935
|| (bool)visibleProp.
GetValue
(component)!;
941
|| (bool)enabledProp.
GetValue
(component)!;
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (2)
31
DockStyle dockStyle = (DockStyle)dockProp.
GetValue
(Component)!;
65
DockStyle dockStyle = (DockStyle)dockProp.
GetValue
(Component)!;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
641
object? val = propertyDescriptor?.
GetValue
(col);
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
404
object? UserAddedColumn = pd?.
GetValue
(dataGridViewColumn);
464
object? UserAddedColumn = pd?.
GetValue
(dataGridViewColumn);
582
object? UserAddedColumn = propertyDescriptor?.
GetValue
(col);
System\Windows\Forms\Design\DataMemberFieldEditor.cs (1)
29
object? dataSource = property.
GetValue
(instance);
System\Windows\Forms\Design\DataMemberListEditor.cs (1)
24
object? dataSource = dataSourceProperty.
GetValue
(context.Instance);
System\Windows\Forms\Design\DesignerUtils.cs (2)
357
optionValue = snaplinesProp.
GetValue
(null);
374
return prop?.
GetValue
(null);
System\Windows\Forms\Design\DocumentDesigner.cs (3)
478
locked = (bool)prop.
GetValue
(Component);
485
autoSize = (bool)prop.
GetValue
(Component);
492
mode = (AutoSizeMode)prop.
GetValue
(Component);
System\Windows\Forms\Design\EditorServiceContext.cs (2)
52
object? value = descriptor.
GetValue
(objectToChange);
141
object? propertyValue = _targetProperty?.
GetValue
(_designer.Component);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
325
WindowState = (FormWindowState)windowStateProp.
GetValue
(component);
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
40
text = (string)property.
GetValue
(value);
System\Windows\Forms\Design\ImageIndexEditor.cs (4)
53
(ImageList?)currentProperty.
GetValue
(_currentInstance) != _currentImageList))
78
instance = properties[ParentImageListProperty]?.
GetValue
(instance);
84
_currentImageList = (ImageList?)imageListProperty.
GetValue
(instance);
180
parentInstance = property.
GetValue
(parentInstance);
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
40
text = (string?)property.
GetValue
(context.Instance);
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (1)
35
text = (string)property.
GetValue
(value);
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (1)
54
text = (string)property.
GetValue
(value);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
287
Globalization.CultureInfo ci = (Globalization.CultureInfo)prop.
GetValue
(rootComponent)!;
768
Point pt = (Point)loc.
GetValue
(comp)!;
System\Windows\Forms\Design\ParentControlDesigner.cs (6)
945
bool autoSize = (bool)prop.
GetValue
(component);
951
size = (Size)prop.
GetValue
(component);
966
size = (Size)prop.
GetValue
(component);
2139
parentLoc = (Point)locationProp.
GetValue
(newParent);
2161
controlLoc = (Point)locProp.
GetValue
(control);
2189
Point oldParentLoc = (Point)locProp.
GetValue
(oldParent);
System\Windows\Forms\Design\SelectionUIHandler.cs (4)
459
if (widthProp is not null && !widthProp.IsReadOnly && size.Width != (int)widthProp.
GetValue
(components[i])!)
472
if (heightProp is not null && !heightProp.IsReadOnly && size.Height != (int)heightProp.
GetValue
(components[i])!)
601
sz = (Size)sizeProp.
GetValue
(control)!;
610
loc = (Point)locProp.
GetValue
(control)!;
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (2)
31
bool needsVertical = ((Orientation)orientationProp.
GetValue
(_ownerComponent)!) == Orientation.Horizontal;
51
if (orientationProp is not null && ((Orientation)orientationProp.
GetValue
(_ownerComponent)!) != orientation)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
261
pageText = nameProp.
GetValue
(page) as string;
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
53
object? val = lsProp?.
GetValue
(panel);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
99
return (bool)prop.
GetValue
(host.RootComponent);
1058
bool locked = (prop is not null) && ((bool)prop.
GetValue
(Component));
System\Windows\Forms\Design\TabOrder.cs (1)
784
if (prop.IsReadOnly && prop.
GetValue
(ctl) is int propValue)
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (2)
135
object? value = prop?.
GetValue
(component);
139
object? auto = propAuto?.
GetValue
(component);
System\Windows\Forms\Design\ToolStripActionList.cs (1)
56
return getProperty?.
GetValue
(_toolStrip);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1523
if (mainMenuStripProperty is not null && mainMenuStripProperty.
GetValue
(parentForm) is null)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
588
return getProperty.
GetValue
(_currentItem);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
372
string oldValue = (string)textProp.
GetValue
(ToolStripItem);
667
string current = (string)pd.
GetValue
(component);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
537
string oldValue = (string)textProp.
GetValue
(editedItem);
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
44
return prop is null ? default : (T?)prop.
GetValue
(component);
System.Windows.Forms.Design.Tests (8)
ControlDesignerTests.cs (1)
346
dockPropDescriptor?.
GetValue
(_designer._control).Should().Be(dockStyle);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (3)
227
Assert.Equal(0, property.
GetValue
(new Component()));
229
Assert.Equal(1, property.
GetValue
(new Component()));
231
Assert.Equal(1, property.
GetValue
(new Component()));
System\Windows\Forms\Design\EditorServiceContextTests.cs (2)
49
_mockPropertyDescriptor.Setup(p => p.
GetValue
(_component)).Returns(oldValue);
77
_mockPropertyDescriptor.Setup(p => p.
GetValue
(_component)).Returns(list);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (2)
38
property?.
GetValue
(instance).Should().Be("Updated Text");
48
property?.
GetValue
(instance).Should().Be("Updated Text2");
System.Windows.Forms.Primitives (4)
System\ComponentModel\PropertyDescriptorCollectionExtensions.cs (1)
17
value = (T)propertyDescriptor.
GetValue
(component)!;
System\ComponentModel\PropertyDescriptorExtensions.cs (2)
12
value = (T?)descriptor.
GetValue
(component);
26
return (T?)descriptor.
GetValue
(component);
System\Windows\Forms\PaddingConverter.cs (1)
73
object? original = context?.PropertyDescriptor?.
GetValue
(context.Instance);
System.Windows.Forms.Tests (21)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (11)
503
Assert.Null(property.
GetValue
(control));
527
Assert.Null(property.
GetValue
(control));
546
Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.
GetValue
(control)).Value);
571
Assert.Equal("CustomProperty", property.
GetValue
(control));
607
Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.
GetValue
(control)).Value);
638
Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.
GetValue
(control)).Value);
659
Assert.Null(property.
GetValue
(null));
686
Assert.Null(property.
GetValue
(null));
707
Assert.Null(property.
GetValue
(new object()));
734
Assert.Throws<TargetInvocationException>(() => property.
GetValue
(new object()));
742
Assert.Null(property.
GetValue
(new object()));
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (9)
63
Assert.NotEqual(0, handleProperty.
GetValue
(iPictureDisp));
76
Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)(short)typeProperty.
GetValue
(iPictureDisp));
89
Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)(short)properties["Type"].
GetValue
(iPicture));
145
Assert.Equal(string.Empty, urlProperty.
GetValue
(mediaPlayer));
150
Assert.EndsWith("Movie.mpg", (string)urlProperty.
GetValue
(mediaPlayer));
177
Assert.Equal(0, accChildCount.
GetValue
(comWrapper));
182
Assert.Null(accFocus.
GetValue
(comWrapper));
201
Assert.Equal(42, accChildCount.
GetValue
(comWrapper));
205
Assert.Equal((int)PInvoke.CHILDID_SELF, accFocus.
GetValue
(comWrapper));
System\Windows\Forms\PropertyGridTests.cs (1)
3999
shortcutKeyEntry.PropertyDescriptor.
GetValue
(menuItem).Should().Be(Keys.None);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
413
string originalValue = propertyDescriptor?.
GetValue
(textBox) as string ?? string.Empty;
419
propertyDescriptor!.
GetValue
(textBox).Should().Be(originalValue);