370 references to GetProperties
DesignSurface (2)
CustomControls\CustomButtonDesignerActionList.cs (2)
53PropertyDescriptor dockProp = TypeDescriptor.GetProperties(Component)[nameof(CustomButton.BackColor)]; 92PropertyDescriptor pd = TypeDescriptor.GetProperties(_control)[propertyName];
DesignSurfaceExt (3)
DesignSurfaceExt.cs (3)
127PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(ctrl); 137PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(ctrl); 175PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(newComp);
PresentationFramework (6)
MS\Internal\Data\PropertyPathWorker.cs (1)
1488PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(item);
MS\Internal\Data\ValueTable.cs (1)
219pd = TypeDescriptor.GetProperties(item)[name];
System\Windows\Data\CollectionView.cs (1)
1477properties = TypeDescriptor.GetProperties(item);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
96foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(_instance))
System\Windows\PropertyPath.cs (2)
606accessor = TypeDescriptor.GetProperties(item)[propertyName]; 627accessor = TypeDescriptor.GetProperties(item)[propertyName];
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
70PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(list[0]);
PresentationFramework-SystemXmlLinq (1)
SystemXmlLinqExtension.cs (1)
22PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(xelement);
System.ComponentModel.TypeConverter (3)
System\ComponentModel\ComponentResourceManager.cs (1)
208static PropertyDescriptorCollection TypeDescriptorGetProperties(object value) => TypeDescriptor.GetProperties(value);
System\ComponentModel\Design\DesignerOptionService.cs (1)
183PropertyDescriptorCollection props = TypeDescriptor.GetProperties(_value);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
300return TypeDescriptor.GetProperties(instance)[attr.Name];
System.Data.Common (5)
System\Data\xmlsaver.cs (1)
117PropertyDescriptorCollection pds = TypeDescriptor.GetProperties(instance);
System\Data\XMLSchema.cs (4)
42PropertyDescriptor? pd = TypeDescriptor.GetProperties(instance)[name]; 289PropertyDescriptor? pd = TypeDescriptor.GetProperties(instance)[name]; 331object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance); 402object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance);
System.Windows.Forms (31)
misc\ImageListUtils.cs (1)
38PropertyDescriptor? property = TypeDescriptor.GetProperties(parentInstance)[pathInfo[i]];
System\Windows\Forms\ActiveX\AxHost.cs (2)
997if (TypeDescriptor.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int)) 2395if (TypeDescriptor.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int))
System\Windows\Forms\Control.cs (2)
12630sizeProperty = TypeDescriptor.GetProperties(this)[PropertyNames.Size]; 12631locationProperty = TypeDescriptor.GetProperties(this)[PropertyNames.Location];
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
168PropertyDescriptor? pd = TypeDescriptor.GetProperties(this)["UseVisualStyleBackColor"];
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (6)
1062PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(DisplayMember, ignoreCase: true); 1071PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(ValueMember, ignoreCase: true); 1136PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(ValueMember, ignoreCase: true); 1146PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(DisplayMember, ignoreCase: true); 1455PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item!).Find(field, ignoreCase: true); 1473PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(itemCandidate).Find(field, ignoreCase: true);
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
448descriptor = TypeDescriptor.GetProperties(item).Find(field, true);
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
50PropertyDescriptorCollection listViewItemProps = TypeDescriptor.GetProperties(instance); 61PropertyDescriptorCollection listViewProps = TypeDescriptor.GetProperties(listViewInstance);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1156PropertyDescriptor? property = TypeDescriptor.GetProperties(owner)[propertyName];
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
125PropertyDescriptor? pd = TypeDescriptor.GetProperties(this)[nameof(UseVisualStyleBackColor)];
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (1)
85PropertyDescriptorCollection props = TypeDescriptor.GetProperties(instance);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
735PropertyDescriptor? prop = TypeDescriptor.GetProperties(this)["SelectionStyle"]; 1068PropertyDescriptor? prop = TypeDescriptor.GetProperties(this)["SelectionStyle"];
System\Windows\Forms\DataBinding\Binding.cs (1)
502propInfos = TypeDescriptor.GetProperties(BindableComponent);
System\Windows\Forms\DataBinding\BindingManagerBase.cs (2)
123return TypeDescriptor.GetProperties(list[0]!); 159itemProps = TypeDescriptor.GetProperties(list[0]!);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (2)
141PropertyDescriptor? prop = TypeDescriptor.GetProperties(b)[constructorParameterProperty]; 187val = TypeDescriptor.GetProperties(b)[constructorParameterProperty]?.GetValue(b);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
142pdc = TypeDescriptor.GetProperties(target!);
System\Windows\Forms\DataBinding\PropertyManager.cs (1)
39_propInfo = TypeDescriptor.GetProperties(_dataSource).Find(_propName, true);
System\Windows\Forms\ImageIndexConverter.cs (1)
108PropertyDescriptorCollection props = TypeDescriptor.GetProperties(instance);
System\Windows\Forms\ImageKeyConverter.cs (1)
114PropertyDescriptorCollection props = TypeDescriptor.GetProperties(instance);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
515prop = TypeDescriptor.GetProperties(c)["Name"];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
49PropertyDescriptor? prop = TypeDescriptor.GetProperties(tableControl)["Name"];
System.Windows.Forms.Design (289)
System\ComponentModel\Design\ComponentDesigner.cs (1)
410PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(Component);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
669PropertyDescriptor? pd = TypeDescriptor.GetProperties(list)[pti.MemberName]
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
25protected PropertyDescriptor PropertyDescriptor => _propDesc ??= TypeDescriptor.GetProperties(_actionList!)[PropertyItem!.MemberName]!;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (5)
153PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 185PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 444PropertyDescriptor? modifierProp = TypeDescriptor.GetProperties(comp)["Modifiers"]; 580PropertyDescriptorCollection props = TypeDescriptor.GetProperties(data._value); 636object? modifier = TypeDescriptor.GetProperties(data._value)["Modifiers"]?.GetValue(data._value);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
233return TypeDescriptor.GetProperties(instance);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
63props ??= TypeDescriptor.GetProperties(comp); 105PropertyDescriptorCollection props = TypeDescriptor.GetProperties(value);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
672PropertyDescriptorCollection props = TypeDescriptor.GetProperties(propObject);
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
54PropertyDescriptor? prop = TypeDescriptor.GetProperties(comp)["LoadLanguage"];
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
306PropertyDescriptor? prop = TypeDescriptor.GetProperties(value)["Modifiers"];
System\ComponentModel\Design\ToolStripContainerActionList.cs (7)
34PropertyDescriptor? getProperty = TypeDescriptor.GetProperties(component)?[propertyName]; 55PropertyDescriptor? visibleProperty = TypeDescriptor.GetProperties(control)["Visible"]; 73PropertyDescriptor? changingProperty = TypeDescriptor.GetProperties(component)[propertyName]; 91PropertyDescriptor? dockProperty = TypeDescriptor.GetProperties(_toolStripContainer)["Dock"]; 124PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(_toolStripContainer)["Dock"]; 143PropertyDescriptor? autoScrollProp = TypeDescriptor.GetProperties(newParent)["AutoScroll"]; 171PropertyDescriptor? controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\ComponentModel\Design\UndoEngine.cs (1)
452PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (7)
237PropertyDescriptor propLoc = TypeDescriptor.GetProperties(currentControl)["Visible"]; 264PropertyDescriptor propLoc = TypeDescriptor.GetProperties(_dragComponents[dragComponentIndex].dragComponent)["Location"]; 341PropertyDescriptor targetProp = TypeDescriptor.GetProperties(dragTarget)["Controls"]; 342PropertyDescriptor sourceProp = TypeDescriptor.GetProperties(dragSource)["Controls"]; 460PropertyDescriptor propLoc = TypeDescriptor.GetProperties(primaryComponent)["Location"]; 877PropertyDescriptor snapProp = TypeDescriptor.GetProperties(parentControl)["SnapToGrid"]; 880PropertyDescriptor gridProp = TypeDescriptor.GetProperties(parentControl)["GridSize"];
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (14)
266PropertyDescriptor snapProp = TypeDescriptor.GetProperties(control.Parent)["SnapToGrid"]; 269PropertyDescriptor gridProp = TypeDescriptor.GetProperties(control.Parent)["GridSize"]; 330PropertyDescriptor prop = TypeDescriptor.GetProperties(control)["Locked"]; 426PropertyDescriptor propIntegralHeight = TypeDescriptor.GetProperties(control)["IntegralHeight"]; 432PropertyDescriptor propItemHeight = TypeDescriptor.GetProperties(control)["ItemHeight"]; 518propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Width"]; 519propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Height"]; 520propTop = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Top"]; 521propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Left"]; 568PropertyDescriptor propIntegralHeight = TypeDescriptor.GetProperties(targetControl)["IntegralHeight"]; 924PropertyDescriptor propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Width"]; 925PropertyDescriptor propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Height"]; 926PropertyDescriptor propTop = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Top"]; 927PropertyDescriptor propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Left"];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (6)
102_resizeProp = TypeDescriptor.GetProperties(_tableGlyph.Style)[isColumn ? "Width" : "Height"]; 108_changedProp = TypeDescriptor.GetProperties(_table)[isColumn ? "ColumnStyles" : "RowStyles"]; 127_rightStyle.styleProp = TypeDescriptor.GetProperties(_rightStyle.style)[isColumn ? "Width" : "Height"]; 131_leftStyle.styleProp = TypeDescriptor.GetProperties(_leftStyle.style)[isColumn ? "Width" : "Height"]; 323PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[i])[isColumn ? "Width" : "Height"]; 331PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[absIndex])[isColumn ? "Width" : "Height"];
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
164PropertyDescriptor? controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (2)
78MemberDescriptor? memberDescriptor = TypeDescriptor.GetProperties(navigator)["Items"]; 84PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(navigator)[itemName];
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
62PropertyDescriptorCollection propertyDescriptorCollection = TypeDescriptor.GetProperties(bindingSource);
System\Windows\Forms\Design\ButtonBaseDesigner.cs (2)
27PropertyDescriptor? prop = TypeDescriptor.GetProperties(Component)["UseVisualStyleBackColor"]; 51PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
65PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
62property = TypeDescriptor.GetProperties(Context.Instance)["Columns"];
System\Windows\Forms\Design\ComboBoxDesigner.cs (2)
84PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 110PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\CommandSet.cs (12)
559return TypeDescriptor.GetProperties(comp)[propName]; 604PropertyDescriptorCollection props = TypeDescriptor.GetProperties(currentSnapComponent); 925PropertyDescriptor? propLoc = TypeDescriptor.GetProperties(component)["Location"]; 1006PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 1277PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 1337PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 2087PropertyDescriptorCollection props = TypeDescriptor.GetProperties(curComp); 2727PropertyDescriptorCollection props = TypeDescriptor.GetProperties(curComp); 3467PropertyDescriptor pProp = TypeDescriptor.GetProperties(p!)["Location"]!; 3468PropertyDescriptor qProp = TypeDescriptor.GetProperties(q!)["Location"]!; 3485PropertyDescriptor pProp = TypeDescriptor.GetProperties(p!)["Location"]!; 3486PropertyDescriptor qProp = TypeDescriptor.GetProperties(q!)["Location"]!;
System\Windows\Forms\Design\ComponentTray.cs (5)
306PropertyDescriptor trayIconProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayLargeIcon"]; 412PropertyDescriptor trayAAProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayAutoArrange"]; 1840PropertyDescriptor ctlLocation = TypeDescriptor.GetProperties(comp)["TrayLocation"]; 1875PropertyDescriptor ctlLocation = TypeDescriptor.GetProperties(comp)["TrayLocation"]; 2371prop = TypeDescriptor.GetProperties(_component)["Locked"];
System\Windows\Forms\Design\ContextMenuStripActionList.cs (2)
23PropertyDescriptor? getProperty = TypeDescriptor.GetProperties(_toolStripDropDown)[propertyName]; 36PropertyDescriptor? changingProperty = TypeDescriptor.GetProperties(_toolStripDropDown)[propertyName];
System\Windows\Forms\Design\ControlCommandSet.cs (10)
384props = TypeDescriptor.GetProperties(c); 404props = TypeDescriptor.GetProperties(currentSnapComponent); 533PropertyDescriptor dockProp = TypeDescriptor.GetProperties(comp)["Dock"]; 770PropertyDescriptor propIntegralHeight = TypeDescriptor.GetProperties(component)["IntegralHeight"]; 776PropertyDescriptor propItemHeight = TypeDescriptor.GetProperties(component)["ItemHeight"]; 785PropertyDescriptor propSize = TypeDescriptor.GetProperties(component)["Size"]; 1046controlsProp = TypeDescriptor.GetProperties(parent)["Controls"]; 1109PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parent)["Controls"]; 1187PropertyDescriptor lockedProp = TypeDescriptor.GetProperties(_baseControl)["Locked"]; 1205lockedProp = TypeDescriptor.GetProperties(component)["Locked"];
System\Windows\Forms\Design\ControlDesigner.cs (5)
205PropertyDescriptorCollection props = TypeDescriptor.GetProperties(component); 1141PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 1177PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(Component)["Dock"]; 1201PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 1595_hasLocation = TypeDescriptor.GetProperties(Component)["Location"] is not null;
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (2)
28PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(Component)["Dock"]; 64PropertyDescriptor dockProp = TypeDescriptor.GetProperties(Component!)["Dock"]!;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
140PropertyDescriptorCollection props = TypeDescriptor.GetProperties(column); 540PropertyDescriptor? prop = TypeDescriptor.GetProperties(_liveDataGridView)["Columns"];
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (5)
183PropertyDescriptor? prop = TypeDescriptor.GetProperties(_liveDataGridView)["Columns"]; 264PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(newColumns[i])["DisplayIndex"]; 274PropertyDescriptor? pd = TypeDescriptor.GetProperties(newColumns[i])["UserAddedColumn"]; 643PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(col)["UserAddedColumn"]; 1268PropertyDescriptorCollection props = TypeDescriptor.GetProperties(DataGridViewColumn);
System\Windows\Forms\Design\DataGridViewDesigner.cs (11)
307PropertyDescriptorCollection props = TypeDescriptor.GetProperties(dataGridView); 413PropertyDescriptor? pd = TypeDescriptor.GetProperties(dataGridViewColumn)["UserAddedColumn"]; 453PropertyDescriptor? columnsProp = TypeDescriptor.GetProperties(dataGridView)["Columns"]; 473PropertyDescriptor? pd = TypeDescriptor.GetProperties(dataGridViewColumn)["UserAddedColumn"]; 579PropertyDescriptor? columnsProp = TypeDescriptor.GetProperties(dataGridView)["Columns"]; 591PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(col)["UserAddedColumn"]; 843PropertyDescriptor? dataSourceProp = TypeDescriptor.GetProperties(dataGridView)["DataSource"]; 937PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToAddRows"]; 980PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToDeleteRows"]; 1023PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToReorderColumns"]; 1066PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["ReadOnly"];
System\Windows\Forms\Design\DocumentDesigner.cs (3)
517PropertyDescriptor prop = TypeDescriptor.GetProperties(Component)["Locked"]; 524prop = TypeDescriptor.GetProperties(Component)["AutoSize"]; 531prop = TypeDescriptor.GetProperties(Component)["AutoSizeMode"];
System\Windows\Forms\Design\EditorServiceContext.cs (1)
46PropertyDescriptor descriptor = TypeDescriptor.GetProperties(objectToChange)[propName]!;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
591PropertyDescriptor controlsProperty = TypeDescriptor.GetProperties(Component)["Controls"]; 724PropertyDescriptor controlsProperty = TypeDescriptor.GetProperties(Component)["Controls"];
System\Windows\Forms\Design\FormatStringEditor.cs (10)
47changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["Format"]); 48changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["NullValue"]); 49changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["FormatProvider"]); 53changeService.OnComponentChanging(component, TypeDescriptor.GetProperties(component)["FormatString"]); 54changeService.OnComponentChanging(component, TypeDescriptor.GetProperties(component)["FormatInfo"]); 73changeService.OnComponentChanged(cellStyle, TypeDescriptor.GetProperties(cellStyle)["Format"]); 74changeService.OnComponentChanged(cellStyle, TypeDescriptor.GetProperties(cellStyle)["NullValue"]); 75changeService.OnComponentChanged(cellStyle, TypeDescriptor.GetProperties(cellStyle)["FormatProvider"]); 79changeService.OnComponentChanged(component, TypeDescriptor.GetProperties(component)["FormatString"]); 80changeService.OnComponentChanged(component, TypeDescriptor.GetProperties(component)["FormatInfo"]);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
236PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
37PropertyDescriptor property = TypeDescriptor.GetProperties(value)["Name"];
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
63PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(instance); 162PropertyDescriptor? property = TypeDescriptor.GetProperties(parentInstance)[pathInfo[i]];
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\LabelDesigner.cs (2)
35PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component); 147PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
37property = TypeDescriptor.GetProperties(context.Instance)["Text"];
System\Windows\Forms\Design\ListViewActionList.cs (3)
33set => TypeDescriptor.GetProperties(_listView)[nameof(View)]!.SetValue(Component, value); 39set => TypeDescriptor.GetProperties(_listView)[nameof(LargeImageList)]!.SetValue(Component, value); 45set => TypeDescriptor.GetProperties(_listView)[nameof(SmallImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
51PropertyDescriptor? maskProperty = TypeDescriptor.GetProperties(_maskedTextBox)["Mask"];
System\Windows\Forms\Design\OleDragDropHandler.cs (4)
283PropertyDescriptor? prop = TypeDescriptor.GetProperties(rootComponent)["Language"]; 355PropertyDescriptor? loc = TypeDescriptor.GetProperties(comps[i])["Location"]; 761PropertyDescriptor? loc = TypeDescriptor.GetProperties(comp)["TrayLocation"]; 763loc ??= TypeDescriptor.GetProperties(comp)["Location"];
System\Windows\Forms\Design\ParentControlDesigner.cs (12)
556PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Control)["Controls"]; 563PropertyDescriptorCollection props = TypeDescriptor.GetProperties(newChild); 938PropertyDescriptor prop = TypeDescriptor.GetProperties(component)["AutoSize"]; 948prop = TypeDescriptor.GetProperties(component)["PreferredSize"]; 961prop = TypeDescriptor.GetProperties(component)["Size"]; 1331_changeService.OnComponentChanging(Control, TypeDescriptor.GetProperties(Control)["Controls"]); 1343_changeService.OnComponentChanged(Control, TypeDescriptor.GetProperties(Control)["Controls"]); 1361_changeService.OnComponentChanging(Control, TypeDescriptor.GetProperties(Control)["Controls"]); 2137PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"]; 2138PropertyDescriptor locationProp = TypeDescriptor.GetProperties(newParent)["Location"]; 2164PropertyDescriptor locProp = TypeDescriptor.GetProperties(control)["Location"]; 2403PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parent)["Controls"];
System\Windows\Forms\Design\PictureBoxActionList.cs (1)
24set => TypeDescriptor.GetProperties(_pictureBox)[nameof(PictureBox.SizeMode)]!.SetValue(Component, value);
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
88PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
21PropertyDescriptor? prop = TypeDescriptor.GetProperties(Component)["TabStop"];
System\Windows\Forms\Design\SelectionUIHandler.cs (12)
394PropertyDescriptor? boundsProp = TypeDescriptor.GetProperties(components[i])["Bounds"]; 424PropertyDescriptor? trayProp = TypeDescriptor.GetProperties(components[i])["TrayLocation"]; 436PropertyDescriptor? leftProp = TypeDescriptor.GetProperties(components[i])["Left"]; 437PropertyDescriptor? topProp = TypeDescriptor.GetProperties(components[i])["Top"]; 466PropertyDescriptor? locationProp = TypeDescriptor.GetProperties(components[i])["Location"]; 486PropertyDescriptor? widthProp = TypeDescriptor.GetProperties(components[i])["Width"]; 487PropertyDescriptor? heightProp = TypeDescriptor.GetProperties(components[i])["Height"]; 547cs.OnComponentChanging(c, TypeDescriptor.GetProperties(c)["Location"]); 548PropertyDescriptor? sizeProp = TypeDescriptor.GetProperties(c)["Size"]; 552sizeProp = TypeDescriptor.GetProperties(c)["ClientSize"]; 623PropertyDescriptor? sizeProp = TypeDescriptor.GetProperties(control)["Size"]; 624PropertyDescriptor? locProp = TypeDescriptor.GetProperties(control)["Location"];
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
311RaiseComponentChanging(TypeDescriptor.GetProperties(_splitContainer!)["SplitterDistance"]); 312RaiseComponentChanged(TypeDescriptor.GetProperties(_splitContainer!)["SplitterDistance"], oldValue: null, newValue: null);
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (2)
28PropertyDescriptor? orientationProp = TypeDescriptor.GetProperties(_ownerComponent)["Orientation"]; 50PropertyDescriptor? orientationProp = TypeDescriptor.GetProperties(_ownerComponent!)["Orientation"];
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
118PropertyDescriptor? lockedProp = TypeDescriptor.GetProperties(component)["Locked"];
System\Windows\Forms\Design\StandardMenuStripVerb.cs (7)
178PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)["Image"]; 201MemberDescriptor member = TypeDescriptor.GetProperties(rootItem)["DropDownItems"]; 214MemberDescriptor topMember = TypeDescriptor.GetProperties(tool)["Items"]; 325PropertyDescriptor displayStyleProperty = TypeDescriptor.GetProperties(item)["DisplayStyle"]; 329PropertyDescriptor textProperty = TypeDescriptor.GetProperties(item)["Text"]; 345PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)["Image"]; 359MemberDescriptor topMember = TypeDescriptor.GetProperties(tool)["Items"];
System\Windows\Forms\Design\StyleEditorForm.cs (2)
109_rowStyleProp = TypeDescriptor.GetProperties(_tableLayoutPanel)["RowStyles"]; 110_colStyleProp = TypeDescriptor.GetProperties(_tableLayoutPanel)["ColumnStyles"];
System\Windows\Forms\Design\TabControlDesigner.cs (6)
99MemberDescriptor member = TypeDescriptor.GetProperties(component: Component)["Controls"]; 262MemberDescriptor member = TypeDescriptor.GetProperties(tc)["Controls"]; 275PropertyDescriptor nameProp = TypeDescriptor.GetProperties(page)["Name"]; 283PropertyDescriptor textProperty = TypeDescriptor.GetProperties(page)["Text"]; 288PropertyDescriptor styleProp = TypeDescriptor.GetProperties(page)["UseVisualStyleBackColor"]; 332MemberDescriptor member = TypeDescriptor.GetProperties(Component)["Controls"];
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
52PropertyDescriptor? lsProp = TypeDescriptor.GetProperties(panel)[LayoutSettingsPropName];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (24)
96PropertyDescriptor prop = TypeDescriptor.GetProperties(host.RootComponent)["Localizable"]; 468PropertyDescriptor rowProp = TypeDescriptor.GetProperties(Table)["RowCount"]; 476PropertyDescriptor colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"]; 489PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Table)["Controls"]; 642PropertyDescriptor colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"]; 645PropertyDescriptor rowProp = TypeDescriptor.GetProperties(Table)["RowCount"]; 1063PropertyDescriptor prop = TypeDescriptor.GetProperties(Component)["Locked"]; 1175_rowStyleProp = TypeDescriptor.GetProperties(Table)["RowStyles"]; 1176_colStyleProp = TypeDescriptor.GetProperties(Table)["ColumnStyles"]; 1365PropertyDescriptor columnSpan = TypeDescriptor.GetProperties(dragControl)["ColumnSpan"]; 1366PropertyDescriptor rowSpan = TypeDescriptor.GetProperties(dragControl)["RowSpan"]; 1436PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Component)["Controls"]; 1462PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Component)["Controls"]; 1678PropertyDescriptor rowProp = TypeDescriptor.GetProperties(Table)["RowCount"]; 1690PropertyDescriptor colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"]; 1713PropertyDescriptor childProp = TypeDescriptor.GetProperties(Table)["Controls"]; 1719PropertyDescriptor prop = TypeDescriptor.GetProperties(child)[isRow ? "Row" : "Column"]; 1720PropertyDescriptor spanProp = TypeDescriptor.GetProperties(child)[isRow ? "RowSpan" : "ColumnSpan"]; 1788PropertyDescriptor childProp = TypeDescriptor.GetProperties(Table)["Controls"]; 1794PropertyDescriptor prop = TypeDescriptor.GetProperties(child)[isRow ? "Row" : "Column"]; 1795PropertyDescriptor spanProp = TypeDescriptor.GetProperties(child)[isRow ? "RowSpan" : "ColumnSpan"]; 1843PropertyDescriptor rowProp = TypeDescriptor.GetProperties(Table)["RowCount"]; 1855PropertyDescriptor colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"]; 1897PropertyDescriptor childProp = TypeDescriptor.GetProperties(Table)["Controls"];
System\Windows\Forms\Design\TabOrder.cs (1)
453PropertyDescriptor? prop = TypeDescriptor.GetProperties(control)["TabIndex"];
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (3)
94PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(component)["Image"]; 101PropertyDescriptor dispProperty = TypeDescriptor.GetProperties(component)["DisplayStyle"]; 105PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(component)["ImageTransparentColor"];
System\Windows\Forms\Design\TextBoxActionList.cs (1)
22set => TypeDescriptor.GetProperties(_textBox)[nameof(Multiline)]!.SetValue(Component, value);
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (4)
31PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component); 93PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 133PropertyDescriptor? prop = TypeDescriptor.GetProperties(component)["Multiline"]; 138PropertyDescriptor? propAuto = TypeDescriptor.GetProperties(component)["AutoSize"];
System\Windows\Forms\Design\ToolStripActionList.cs (2)
54PropertyDescriptor? getProperty = TypeDescriptor.GetProperties(_toolStrip)[propertyName]; 62PropertyDescriptor? changingProperty = TypeDescriptor.GetProperties(_toolStrip)[propertyName];
System\Windows\Forms\Design\ToolStripDesigner.cs (17)
597PropertyDescriptor textProperty = TypeDescriptor.GetProperties(item)["Text"]; 616PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)["Image"]; 623PropertyDescriptor dispProperty = TypeDescriptor.GetProperties(item)["DisplayStyle"]; 627PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(item)["ImageTransparentColor"]; 908RaiseComponentChanging(TypeDescriptor.GetProperties(Component)["Items"]); 930RaiseComponentChanged(TypeDescriptor.GetProperties(Component)["Items"], null, null); 1042RaiseComponentChanged(TypeDescriptor.GetProperties(Component)["Items"], null, null); 1117RaiseComponentChanging(TypeDescriptor.GetProperties(Component)["Items"]); 1440new EditorServiceContext(this, TypeDescriptor.GetProperties(Component)["Items"], SR.ToolStripItemCollectionEditorVerb); 1486PropertyDescriptor dockProp = TypeDescriptor.GetProperties(ToolStrip)["Dock"]; 1501PropertyDescriptor mainMenuStripProperty = TypeDescriptor.GetProperties(parentForm)["MainMenuStrip"]; 1513PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parentPanel)["Controls"]; 1522PropertyDescriptor locationProp = TypeDescriptor.GetProperties(ToolStrip)["Location"]; 1858changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 1921changeService?.OnComponentChanged(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 1928changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 1929changeService.OnComponentChanged(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
408new EditorServiceContext(this, TypeDescriptor.GetProperties(Component)["Items"], SR.ToolStripItemCollectionEditorVerb);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (8)
684changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 688changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 766changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 770changeService.OnComponentChanged(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 779changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 780changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 784changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 785changeService.OnComponentChanged(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
212_verbManager = new CollectionEditVerbManager(SR.ToolStripDropDownItemCollectionEditorVerb, itemDesigner, TypeDescriptor.GetProperties(_currentItem)["DropDownItems"], false); 571PropertyDescriptor getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName]; 587PropertyDescriptor getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName]; 605PropertyDescriptor changingProperty = TypeDescriptor.GetProperties(target)[propertyName];
System\Windows\Forms\Design\ToolStripItemDesigner.cs (14)
374PropertyDescriptor textProp = TypeDescriptor.GetProperties(ToolStripItem)["Text"]; 534changeService.OnComponentChanging(parent, TypeDescriptor.GetProperties(parent)["DropDownItems"]); 556changeService.OnComponentChanged(parent, TypeDescriptor.GetProperties(parent)["DropDownItems"]); 684PropertyDescriptor pd = TypeDescriptor.GetProperties(ToolStripItem)["Text"]; 702PropertyDescriptor textProp = TypeDescriptor.GetProperties(Component)["Text"]; 785changeService.OnComponentChanging(parent, TypeDescriptor.GetProperties(parent)["Items"]); 789changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 790changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 824PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(newItem)["Image"]; 831PropertyDescriptor dispProperty = TypeDescriptor.GetProperties(newItem)["DisplayStyle"]; 835PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(newItem)["ImageTransparentColor"]; 845changeService.OnComponentChanged(parent, TypeDescriptor.GetProperties(parent)["Items"]); 849changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 850changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (12)
542PropertyDescriptor textProp = TypeDescriptor.GetProperties(editedItem)["Text"]; 893PropertyDescriptor textProperty = TypeDescriptor.GetProperties(newItem)["Text"]; 1683MemberDescriptor member = TypeDescriptor.GetProperties(MenuItem.DropDown)["Items"]; 1689RaiseComponentChanging(TypeDescriptor.GetProperties(MenuItem)["DropDownItems"]); 1786MemberDescriptor member = TypeDescriptor.GetProperties(MenuItem.DropDown)["Items"]; 1792RaiseComponentChanged(TypeDescriptor.GetProperties(MenuItem)["DropDownItems"], null, null); 1892RaiseComponentChanged(TypeDescriptor.GetProperties(ownerItem)["DropDownItems"], null, null); 1982RaiseComponentChanging(TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2717changeService?.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2774changeService?.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2781changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2782changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
380PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(e.Control)["Dock"];
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
43PropertyDescriptor? prop = TypeDescriptor.GetProperties(component)[propertyName];
System\Windows\Forms\Design\TreeViewActionList.cs (1)
26set => TypeDescriptor.GetProperties(_treeView)[nameof(TreeView.ImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
47PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System.Windows.Forms.Design.Tests (8)
ControlDesignerTests.cs (1)
345PropertyDescriptor? dockPropDescriptor = TypeDescriptor.GetProperties(_designer._control)[nameof(Control.Dock)];
System\Windows\Forms\Design\FormatStringEditorTests.cs (6)
66cs => cs.OnComponentChanging(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["Format"]), 70cs => cs.OnComponentChanging(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["NullValue"]), 74cs => cs.OnComponentChanging(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["FormatProvider"]), 89cs => cs.OnComponentChanged(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["Format"], null, null), 93cs => cs.OnComponentChanged(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["NullValue"], null, null), 97cs => cs.OnComponentChanged(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["FormatProvider"], null, null),
System\Windows\Forms\Design\InheritedPropertyDescriptorTestExtensions.cs (1)
13PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(control);
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeDescriptorHelper.cs (1)
42PropertyDescriptor? property = TypeDescriptor.GetProperties(component)[name];
System.Windows.Forms.Tests (19)
System\Windows\Forms\AxSystemMonitorTests.cs (1)
26var properties = TypeDescriptor.GetProperties(_control);
System\Windows\Forms\AxWebBrowserTests.cs (1)
28var properties = TypeDescriptor.GetProperties(_control);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (3)
27ValidateIPictureDispProperties(iPictureDisp, TypeDescriptor.GetProperties(iPictureDisp)); 86var properties = TypeDescriptor.GetProperties(iPicture); 217var properties = TypeDescriptor.GetProperties(vbcontrol);
System\Windows\Forms\DockPaddingEdgesTests.cs (5)
388PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 409PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 430PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 451PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 472PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding);
System\Windows\Forms\PaddingTests.cs (6)
97PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 117PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 167PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 217PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 267PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding); 317PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(padding);
System\Windows\Forms\SpecialFolderEnumConverterTests.cs (3)
15PropertyDescriptor descriptor = TypeDescriptor.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false); 89PropertyDescriptor descriptor = TypeDescriptor.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false); 96PropertyDescriptor descriptor = TypeDescriptor.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
410PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(textBox)["Text"];