29 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)
422
public override object?
GetValue
(object? component) => _property.GetValue(_target);
486
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)
1199
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)
1354
public override object?
GetValue
(object? component)
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (1)
752
public override object
GetValue
(object component) => throw new NotImplementedException();
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
152
public override object
GetValue
(object component) => throw new NotImplementedException();
264 references to GetValue
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
56
Color backColor = (Color)dockProp.
GetValue
(Component);
PresentationFramework (5)
MS\Internal\Data\ValueTable.cs (2)
56
return pd.
GetValue
(item);
88
value = pd.
GetValue
(item);
MS\Internal\Data\XDeferredAxisSource.cs (1)
69
IEnumerable xda = _propertyDescriptor.
GetValue
(component) as IEnumerable;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
107
object value = descriptor.
GetValue
(_instance);
842
value = _descriptor.
GetValue
(_object.Instance);
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
168
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)
529
items.Add(new KeyValuePair<ValidationContext, object?>(context, property.
GetValue
(instance)));
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\DesignerOptionService.cs (2)
93
return optionProp?.
GetValue
(null);
422
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)
331
object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.
GetValue
(instance);
402
object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.
GetValue
(instance);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2326
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)
999
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)
1052
displayValue = DisplayMemberProperty.
GetValue
(item);
1057
displayValue = ValueMemberProperty.
GetValue
(item);
1065
displayValue = propDesc.
GetValue
(item);
1074
displayValue = propDesc.
GetValue
(item);
1126
value = ValueMemberProperty.
GetValue
(item);
1131
value = DisplayMemberProperty.
GetValue
(item);
1139
value = propDesc.
GetValue
(item);
1149
value = propDesc.
GetValue
(item);
1433
object? value = property.
GetValue
(itemTmp);
1458
displayValue = propDesc.
GetValue
(item);
1476
displayValue = propDesc.
GetValue
(itemCandidate);
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
453
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)
1159
return property.
GetValue
(owner);
1376
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));
290
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)
1071
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 (158)
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 (1)
74
Value = PropertyDescriptor.
GetValue
(_actionList);
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);
2180
if (filterProp?.
GetValue
(manager) is ITypeDescriptorFilterService filterSvc)
2225
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);
92
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);
878
if (snapProp is not null && (bool)snapProp.
GetValue
(parentControl))
886
_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>().ToList();
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)
543
return (Point)prop.
GetValue
(comp)!;
593
return prop is not null ? (Size)prop.
GetValue
(comp)! : Size.Empty;
623
snapSize = gridSizeProp is not null ? (Size)gridSizeProp.
GetValue
(snapComponent)! : Size.Empty;
849
snapOn = (bool)snapProperty.
GetValue
(snapComponent)!;
928
Point loc = (Point)propLoc.
GetValue
(component)!;
1015
if ((bool)lockProp.
GetValue
(comp)!)
1036
Size size = (Size)sizeProp.
GetValue
(comp)!;
1042
loc = (Point)locProp.
GetValue
(comp)!;
1050
loc = (Point)locProp.
GetValue
(comp)!;
1058
loc = (Point)locProp.
GetValue
(comp)!;
1066
loc = (Point)locProp.
GetValue
(comp)!;
1075
loc = (Point)locProp.
GetValue
(comp)!;
1083
loc = (Point)locProp.
GetValue
(comp)!;
1145
gridSize = (Size)prop.
GetValue
(baseComponent)!;
1163
if (lockedProp is not null && ((bool)lockedProp.
GetValue
(comp)!))
1185
var loc = (Point)locProp.
GetValue
(comp)!;
1290
if (lockProp is not null && (bool)lockProp.
GetValue
(comp)!)
1295
Size size = (Size)sizeProp.
GetValue
(comp)!;
1296
Point loc = (Point)locProp.
GetValue
(comp)!;
1345
Point loc = (Point)locProp.
GetValue
(comp)!;
1975
if (pd.
GetValue
(curComp) is string)
2258
bool drawGrid = (bool)prop.
GetValue
(baseComponent)!;
2306
primarySize = (Size)sizeProp.
GetValue
(component)!;
2329
if (lockedDesc is not null && (bool)lockedDesc.
GetValue
(obj)!)
2343
Size itemSize = (Size)sizeProp.
GetValue
(obj)!;
2407
grid = (Size)prop.
GetValue
(baseComponent)!;
2427
Size size = (Size)sizeProp.
GetValue
(comp)!;
2428
Point loc = (Point)locProp.
GetValue
(comp)!;
2491
bool snapToGrid = (bool)prop.
GetValue
(baseComponent)!;
2544
grid = (Size)prop.
GetValue
(baseComponent)!;
2607
curSize = (Size)curSizeDesc.
GetValue
(component)!;
2640
curLoc = (Point)curLocDesc.
GetValue
(curComp)!;
2649
curSize = (Size)curSizeDesc.
GetValue
(curComp)!;
2679
lastLoc = (Point)curLocDesc.
GetValue
(curComp)!;
2688
lastSize = (Size)curSizeDesc.
GetValue
(curComp)!;
2717
primaryLoc = (Point)primaryLocDesc.
GetValue
(primary)!;
2732
if (lockedDesc is not null && (bool)lockedDesc.
GetValue
(curComp)!)
2750
curLoc = (Point)curLocDesc.
GetValue
(curComp)!;
2759
curSize = (Size)curSizeDesc.
GetValue
(curComp)!;
2781
lastLoc = (Point)lastLocDesc.
GetValue
(lastComp)!;
2790
lastSize = (Size)lastSizeDesc.
GetValue
(lastComp)!;
3349
gridSize = (Size)gs.
GetValue
(baseComponent)!;
3470
Point pLoc = (Point)pProp.
GetValue
(p)!;
3471
Point qLoc = (Point)qProp.
GetValue
(q)!;
3488
Point pLoc = (Point)pProp.
GetValue
(p)!;
3489
Point qLoc = (Point)qProp.
GetValue
(q)!;
System\Windows\Forms\Design\ComponentTray.cs (3)
964
return (Point)(loc.
GetValue
(receiver));
2384
if (prop is not null && ((bool)prop.
GetValue
(_component)))
2486
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)
431
snapSize = (Size)gridSizeProp.
GetValue
(snapComponent);
536
DockStyle docked = (DockStyle)dockProp.
GetValue
(comp);
689
snapOn = (bool)snapProperty.
GetValue
(snapComponent);
773
object value = propIntegralHeight.
GetValue
(component);
779
offsetY *= (int)propItemHeight.
GetValue
(component); // adjust for integralheight
788
Size size = (Size)propSize.
GetValue
(component);
1188
if (lockedProp is not null && ((bool)lockedProp.
GetValue
(_baseControl)))
1206
if (lockedProp is not null && ((bool)lockedProp.
GetValue
(component)))
1258
bool drawGrid = (bool)property.
GetValue
(baseComponent);
1275
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)!;
920
|| (bool)visibleProp.
GetValue
(component)!;
926
|| (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)
644
object? val = propertyDescriptor?.
GetValue
(col);
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
414
object? UserAddedColumn = pd?.
GetValue
(dataGridViewColumn);
474
object? UserAddedColumn = pd?.
GetValue
(dataGridViewColumn);
592
object? UserAddedColumn = propertyDescriptor?.
GetValue
(col);
System\Windows\Forms\Design\DesignerUtils.cs (2)
357
optionValue = snaplinesProp.
GetValue
(null);
374
return prop?.
GetValue
(null);
System\Windows\Forms\Design\DocumentDesigner.cs (3)
520
locked = (bool)prop.
GetValue
(Component);
527
autoSize = (bool)prop.
GetValue
(Component);
534
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);
2145
parentLoc = (Point)locationProp.
GetValue
(newParent);
2167
controlLoc = (Point)locProp.
GetValue
(control);
2195
Point oldParentLoc = (Point)locProp.
GetValue
(oldParent);
System\Windows\Forms\Design\SelectionUIHandler.cs (4)
489
if (widthProp is not null && !widthProp.IsReadOnly && size.Width != (int)widthProp.
GetValue
(components[i])!)
502
if (heightProp is not null && !heightProp.IsReadOnly && size.Height != (int)heightProp.
GetValue
(components[i])!)
631
sz = (Size)sizeProp.
GetValue
(control)!;
640
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)
278
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);
1064
bool locked = (prop is not null) && ((bool)prop.
GetValue
(Component));
System\Windows\Forms\Design\TabOrder.cs (1)
796
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)
1502
if (mainMenuStripProperty is not null && mainMenuStripProperty.
GetValue
(parentForm) is null)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
591
return getProperty.
GetValue
(_currentItem);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
375
string oldValue = (string)textProp.
GetValue
(ToolStripItem);
688
string current = (string)pd.
GetValue
(component);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
543
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 (11)
ControlDesignerTests.cs (1)
348
dockPropDescriptor?.
GetValue
(_designer._control).Should().Be(dockStyle);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (3)
225
Assert.Equal(0, property.
GetValue
(new Component()));
227
Assert.Equal(1, property.
GetValue
(new Component()));
229
Assert.Equal(1, property.
GetValue
(new Component()));
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (7)
17
Size size = (Size)inheritedPropertyDescriptor.
GetValue
(control);
21
size = (Size)inheritedPropertyDescriptor.
GetValue
(control);
31
AnchorStyles anchor = (AnchorStyles)inheritedPropertyDescriptor.
GetValue
(control);
35
anchor = (AnchorStyles)inheritedPropertyDescriptor.
GetValue
(control);
39
anchor = (AnchorStyles)inheritedPropertyDescriptor.
GetValue
(control);
49
Color backColor = (Color)inheritedPropertyDescriptor.
GetValue
(control);
53
backColor = (Color)inheritedPropertyDescriptor.
GetValue
(control);
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 (20)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (11)
501
Assert.Null(property.
GetValue
(control));
525
Assert.Null(property.
GetValue
(control));
544
Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.
GetValue
(control)).Value);
569
Assert.Equal("CustomProperty", property.
GetValue
(control));
605
Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.
GetValue
(control)).Value);
636
Assert.Equal("CustomProperty", Assert.IsType<DataSource>(property.
GetValue
(control)).Value);
657
Assert.Null(property.
GetValue
(null));
684
Assert.Null(property.
GetValue
(null));
705
Assert.Null(property.
GetValue
(new object()));
732
Assert.Throws<TargetInvocationException>(() => property.
GetValue
(new object()));
740
Assert.Null(property.
GetValue
(new object()));
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (9)
61
Assert.NotEqual(0, handleProperty.
GetValue
(iPictureDisp));
74
Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)(short)typeProperty.
GetValue
(iPictureDisp));
87
Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)(short)properties["Type"].
GetValue
(iPicture));
143
Assert.Equal(string.Empty, urlProperty.
GetValue
(mediaPlayer));
148
Assert.EndsWith("Movie.mpg", (string)urlProperty.
GetValue
(mediaPlayer));
175
Assert.Equal(0, accChildCount.
GetValue
(comWrapper));
180
Assert.Null(accFocus.
GetValue
(comWrapper));
199
Assert.Equal(42, accChildCount.
GetValue
(comWrapper));
203
Assert.Equal((int)PInvoke.CHILDID_SELF, accFocus.
GetValue
(comWrapper));
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);