23 types derived from PropertyDescriptor
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
6internal sealed class MetadataPropertyDescriptorWrapper : PropertyDescriptor
System.ComponentModel.TypeConverter (6)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
66internal abstract class XPropertyDescriptor<T, TProperty> : PropertyDescriptor where T : XObject
System\ComponentModel\Design\DesignerOptionService.cs (2)
401private sealed class WrappedPropertyDescriptor : PropertyDescriptor 469private sealed class OptionPropertyDescriptor : PropertyDescriptor
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
13internal sealed class ExtendedPropertyDescriptor : PropertyDescriptor
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
47internal sealed class ReflectPropertyDescriptor : PropertyDescriptor
System\ComponentModel\TypeConverter.cs (1)
344protected abstract class SimplePropertyDescriptor : PropertyDescriptor
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
8internal sealed class DbConnectionStringBuilderDescriptor : PropertyDescriptor
System\Data\Common\DbEnumerator.cs (1)
111private sealed class DbColumnDescriptor : PropertyDescriptor
System\Data\DataColumnPropertyDescriptor.cs (1)
11internal sealed class DataColumnPropertyDescriptor : PropertyDescriptor
System\Data\DataRelationPropertyDescriptor.cs (1)
9internal sealed class DataRelationPropertyDescriptor : PropertyDescriptor
System\Data\DataTablePropertyDescriptor.cs (1)
9internal sealed class DataTablePropertyDescriptor : PropertyDescriptor
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
14internal class AxPropertyDescriptor : PropertyDescriptor
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
27internal unsafe partial class Com2PropertyDescriptor : PropertyDescriptor, ICloneable
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
12internal partial class MergePropertyDescriptor : PropertyDescriptor
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1118private class SelectionWrapper : PropertyDescriptor, ICustomTypeDescriptor
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
19private class EventPropertyDescriptor : PropertyDescriptor
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
14internal sealed class InheritedPropertyDescriptor : PropertyDescriptor
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
989private sealed class WrappedPropertyDescriptor : PropertyDescriptor
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
12private class CanResetSizePropertyDescriptor : PropertyDescriptor
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1334private class ColumnTypePropertyDescriptor : PropertyDescriptor
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (1)
738private class CustomPropertyDescriptor : PropertyDescriptor
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
137private class CustomPropertyDescriptor : PropertyDescriptor
1458 references to PropertyDescriptor
DesignSurface (3)
CustomControls\CustomButtonDesignerActionList.cs (3)
53PropertyDescriptor dockProp = TypeDescriptor.GetProperties(Component)[nameof(CustomButton.BackColor)]; 90protected PropertyDescriptor GetProperty(string propertyName) 92PropertyDescriptor pd = TypeDescriptor.GetProperties(_control)[propertyName];
DesignSurfaceExt (4)
DesignSurfaceExt.cs (4)
129PropertyDescriptor pdS = pdc.Find("Size", false); 139PropertyDescriptor pdS = pdc.Find("Size", false); 177PropertyDescriptor pdS = pdc.Find("Size", false); 179PropertyDescriptor pdL = pdc.Find("Location", false);
netstandard (1)
netstandard.cs (1)
394[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.PropertyDescriptor))]
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TypeContext.cs (1)
123public PropertyDescriptor PropertyDescriptor
PresentationFramework (99)
MS\Internal\Data\ClrBindingWorker.cs (2)
809PropertyDescriptor pd; 815if ((pd = info as PropertyDescriptor) != null)
MS\Internal\Data\DataBindEngine.cs (3)
418internal object GetValue(object item, PropertyDescriptor pd, bool indexerIsNext) 426PropertyDescriptor pd = descriptor as PropertyDescriptor;
MS\Internal\Data\DefaultValueConverter.cs (1)
797public PropertyDescriptor PropertyDescriptor { get { return null; } }
MS\Internal\Data\PropertyPathWorker.cs (14)
124PropertyDescriptor pd; 235PropertyDescriptor pd; 340PropertyDescriptor pd; 700PropertyDescriptor oldPD; 872PropertyDescriptor newPD; 1021PropertyDescriptor pd; 1022if (level < 0 || (pd = _arySVS[level].info as PropertyDescriptor) == null) 1045!(_arySVS[k].info is PropertyDescriptor)) 1145PropertyDescriptor pd; 1316if (cacheAccessor && info != null && !(info is PropertyDescriptor)) 1595void SetPropertyInfo(object info, out PropertyInfo pi, out PropertyDescriptor pd, out DependencyProperty dp, out DynamicPropertyAccessor dpa) 1607pd = info as PropertyDescriptor; 1618PropertyDescriptor pd; 1717PropertyDescriptor pd;
MS\Internal\Data\ValueChangedEventManager.cs (21)
67public static void AddListener(object source, IWeakEventListener listener, PropertyDescriptor pd) 78public static void RemoveListener(object source, IWeakEventListener listener, PropertyDescriptor pd) 89public static void AddHandler(object source, EventHandler<ValueChangedEventArgs> handler, PropertyDescriptor pd) 101public static void RemoveHandler(object source, EventHandler<ValueChangedEventArgs> handler, PropertyDescriptor pd) 157PropertyDescriptor[] keys = new PropertyDescriptor[ic.Count]; 219_toRemove.Add((PropertyDescriptor)ide.Key); 227foreach (PropertyDescriptor key in _toRemove) 299private void PrivateAddListener(object source, IWeakEventListener listener, PropertyDescriptor pd) 307private void PrivateRemoveListener(object source, IWeakEventListener listener, PropertyDescriptor pd) 315private void PrivateAddHandler(object source, EventHandler<ValueChangedEventArgs> handler, PropertyDescriptor pd) 321private void PrivateRemoveHandler(object source, EventHandler<ValueChangedEventArgs> handler, PropertyDescriptor pd) 326private void AddListener(object source, PropertyDescriptor pd, IWeakEventListener listener, EventHandler<ValueChangedEventArgs> handler) 358private void RemoveListener(object source, PropertyDescriptor pd, IWeakEventListener listener, EventHandler<ValueChangedEventArgs> handler) 390List<PropertyDescriptor> _toRemove = new List<PropertyDescriptor>(); 396public ValueChangedRecord(ValueChangedEventManager manager, object source, PropertyDescriptor pd) 538PropertyDescriptor _pd; 552internal ValueChangedEventArgs(PropertyDescriptor pd) 557internal PropertyDescriptor PropertyDescriptor 562private PropertyDescriptor _pd;
MS\Internal\Data\ValueTable.cs (13)
37internal static bool ShouldCache(object item, PropertyDescriptor pd) 55internal object GetValue(object item, PropertyDescriptor pd, bool indexerIsNext) 156internal void RegisterForChanges(object item, PropertyDescriptor pd, DataBindEngine engine) 211foreach (PropertyDescriptor pd1 in GetPropertiesForItem(item)) 220PropertyDescriptor pd; 235void InvalidateCache(object item, PropertyDescriptor pd) 246IEnumerable<PropertyDescriptor> GetPropertiesForItem(object item) 248List<PropertyDescriptor> result = new List<PropertyDescriptor>(); 306public ValueTableKey(object item, PropertyDescriptor pd) 322public PropertyDescriptor PropertyDescriptor 324get { return (PropertyDescriptor)_descriptor.Target; } 341PropertyDescriptor descriptor = this.PropertyDescriptor;
MS\Internal\Data\XDeferredAxisSource.cs (2)
47internal XDeferredAxisSource(object component, PropertyDescriptor pd) 111PropertyDescriptor _propertyDescriptor; // the PD to obtain its elements or descendants
MS\Internal\SystemDataHelper.cs (2)
48internal static bool IsDataSetCollectionProperty(PropertyDescriptor pd) 55internal static object GetValue(object item, PropertyDescriptor pd, bool useFollowParent)
MS\Internal\SystemXmlLinqHelper.cs (2)
33internal static bool IsXLinqCollectionProperty(PropertyDescriptor pd) 41internal static bool IsXLinqNonIdempotentProperty(PropertyDescriptor pd)
MS\Internal\TraceData.cs (1)
288PropertyDescriptor pd => $"{pd.GetType().Name}({pd.Name})",
System\Windows\Controls\ContentPresenter.cs (1)
1144PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor { get { return null; } }
System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (1)
111typeof(PropertyDescriptor).IsAssignableFrom(value.GetType()) ||
System\Windows\Controls\DataGridColumn.cs (2)
1210PropertyDescriptor pd = itemProperty.Descriptor as PropertyDescriptor;
System\Windows\Data\BindingListCollectionView.cs (1)
2222PropertyDescriptor dd = pdc.Find(sorts[i].PropertyName, true);
System\Windows\Data\CollectionView.cs (2)
1496PropertyDescriptor pd; 1499if ((pd = property as PropertyDescriptor) != null)
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
173System.ComponentModel.PropertyDescriptor System.ComponentModel.ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
98PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (1)
61PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Primitives\ElementMarkupObject.cs (10)
107foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(_instance)) 213private static bool ShouldSerialize(PropertyDescriptor pd, object instance, XamlDesignerSerializationManager manager) 578private bool PropertyIsAttached(PropertyDescriptor descriptor) 668PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor 679PropertyDescriptor descriptor = this.PropertyDescriptor; 750internal ElementProperty(ElementMarkupObject obj, PropertyDescriptor descriptor) : base(obj) 766public override PropertyDescriptor PropertyDescriptor 962private PropertyDescriptor _descriptor; 1197public ValueSerializer GetValueSerializerFor(PropertyDescriptor descriptor) 1249public PropertyDescriptor PropertyDescriptor
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
148public override PropertyDescriptor PropertyDescriptor
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (3)
134public override PropertyDescriptor PropertyDescriptor 169PropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(_propertyValue.Property, _item.ObjectType); 221private PropertyDescriptor _descriptor;
System\Windows\Markup\Primitives\MarkupWriter.cs (3)
874PropertyDescriptor descriptor = property.PropertyDescriptor; 1463public ValueSerializer GetValueSerializerFor(PropertyDescriptor descriptor) 1498public PropertyDescriptor PropertyDescriptor
System\Windows\Markup\TypeContext.cs (1)
123public PropertyDescriptor PropertyDescriptor
System\Windows\Media\Animation\Storyboard.cs (2)
780else if( propertyAccessor is PropertyDescriptor ) 782return ((PropertyDescriptor)propertyAccessor).Name;
System\Windows\PropertyPath.cs (6)
176PropertyDescriptor pd; 197out DependencyProperty dp, out PropertyInfo pi, out PropertyDescriptor pd, out DynamicObjectAccessor doa) 210else if ((pd = accessor as PropertyDescriptor) != null) 943accessor is PropertyDescriptor || 952PropertyDescriptor pd; 959else if ((pd = accessor as PropertyDescriptor) != null)
System\Windows\PropertyPathConverter.cs (1)
205PropertyDescriptor pd;
System\Windows\TemplateContent.cs (1)
1503PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
PresentationFramework-SystemData (3)
SystemDataExtension.cs (3)
46internal override bool IsDataSetCollectionProperty(PropertyDescriptor pd) 83internal override object GetValue(object item, PropertyDescriptor pd, bool useFollowParent) 144private object GetRawValue(object item, PropertyDescriptor pd, bool useFollowParent)
PresentationFramework-SystemXmlLinq (2)
SystemXmlLinqExtension.cs (2)
46internal override bool IsXLinqCollectionProperty(PropertyDescriptor pd) 60internal override bool IsXLinqNonIdempotentProperty(PropertyDescriptor pd)
ReachFramework (1)
Serialization\Manager\XpsTokenContext.cs (1)
179PropertyDescriptor
System (1)
src\libraries\shims\System\ref\System.cs (1)
380[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.PropertyDescriptor))]
System.ComponentModel.Annotations (10)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (4)
53List<PropertyDescriptor> tempPropertyDescriptors = new List<PropertyDescriptor>(); 54foreach (PropertyDescriptor propDescriptor in originalCollection) 57PropertyDescriptor descriptor = propDescriptor;
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (2)
8private readonly PropertyDescriptor _descriptor; 11public MetadataPropertyDescriptorWrapper(PropertyDescriptor descriptor, Attribute[] newAttributes)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (3)
216foreach (PropertyDescriptor property in properties) 226/// Method to extract only the explicitly specified attributes from a <see cref="PropertyDescriptor"/> 235private static AttributeCollection GetExplicitAttributes(PropertyDescriptor propertyDescriptor)
System\ComponentModel\DataAnnotations\Validator.cs (1)
521foreach (PropertyDescriptor property in properties)
System.ComponentModel.TypeConverter (183)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (3)
32[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 38[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 58foreach (PropertyDescriptor property in base.GetProperties(attributes))
System\ComponentModel\ArrayConverter.cs (2)
45PropertyDescriptor[] props = new PropertyDescriptor[length];
System\ComponentModel\BindingList.cs (9)
401PropertyDescriptor? IBindingList.SortProperty => SortPropertyCore; 403protected virtual PropertyDescriptor? SortPropertyCore => null; 409void IBindingList.ApplySort(PropertyDescriptor prop, ListSortDirection direction) 414protected virtual void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction) 426int IBindingList.Find(PropertyDescriptor prop, object key) => FindCore(prop, key); 428protected virtual int FindCore(PropertyDescriptor prop, object key) 433void IBindingList.AddIndex(PropertyDescriptor prop) 438void IBindingList.RemoveIndex(PropertyDescriptor prop) 522PropertyDescriptor? pd = _itemTypeProperties.Find(e.PropertyName, true);
System\ComponentModel\ComponentResourceManager.cs (1)
172PropertyDescriptor? prop = TypeDescriptorGetProperties(value).Find(propName, IgnoreCase);
System\ComponentModel\CustomTypeDescriptor.cs (5)
124[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 125public virtual PropertyDescriptor? GetDefaultProperty() => _parent?.GetDefaultProperty(); 196[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 244[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 262public virtual object? GetPropertyOwner(PropertyDescriptor? pd) => _parent?.GetPropertyOwner(pd);
System\ComponentModel\Design\DesignerOptionService.cs (8)
53private PropertyDescriptor? GetOptionProperty(string pageName, string valueName) 92PropertyDescriptor? optionProp = GetOptionProperty(pageName, valueName); 102PropertyDescriptor? optionProp = GetOptionProperty(pageName, valueName); 185foreach (PropertyDescriptor prop in props) 201var propArray = new PropertyDescriptor[propList.Count]; 404private readonly PropertyDescriptor _property; 406internal WrappedPropertyDescriptor(PropertyDescriptor property, object target) : base(property.Name, null) 453foreach (PropertyDescriptor p in options.Properties)
System\ComponentModel\Design\IEventPropertyService.cs (2)
30EventDescriptor? GetEvent(PropertyDescriptor property); 40PropertyDescriptor GetEventProperty(EventDescriptor e);
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
45public ExtendedPropertyDescriptor(PropertyDescriptor extender, Attribute[] attributes) : base(extender, attributes)
System\ComponentModel\ExtenderProvidedPropertyAttribute.cs (2)
19internal static ExtenderProvidedPropertyAttribute Create(PropertyDescriptor? extenderProperty, Type? receiverType, IExtenderProvider? provider) 39public PropertyDescriptor? ExtenderProperty { get; private set; }
System\ComponentModel\IBindingList.cs (5)
27PropertyDescriptor? SortProperty { get; } 33void AddIndex(PropertyDescriptor property); 35void ApplySort(PropertyDescriptor property, ListSortDirection direction); 37int Find(PropertyDescriptor property, object key); 39void RemoveIndex(PropertyDescriptor property);
System\ComponentModel\IComNativeDescriptorHandler.cs (1)
20PropertyDescriptor GetDefaultProperty(object component);
System\ComponentModel\ICustomTypeDescriptor.cs (5)
44[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 45PropertyDescriptor? GetDefaultProperty(); 68[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 74[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 80object? GetPropertyOwner(PropertyDescriptor? pd);
System\ComponentModel\ITypeDescriptorContext.cs (1)
25PropertyDescriptor? PropertyDescriptor { get; }
System\ComponentModel\ITypedList.cs (2)
8string GetListName(PropertyDescriptor[]? listAccessors); 10PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[]? listAccessors);
System\ComponentModel\ListChangedEventArgs.cs (3)
15public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, PropertyDescriptor? propDesc) : this(listChangedType, newIndex) 21public ListChangedEventArgs(ListChangedType listChangedType, PropertyDescriptor? propDesc) 40public PropertyDescriptor? PropertyDescriptor { get; }
System\ComponentModel\ListSortDescription.cs (2)
8public ListSortDescription(PropertyDescriptor? property, ListSortDirection direction) 14public PropertyDescriptor? PropertyDescriptor { get; set; }
System\ComponentModel\PropertyDescriptor.cs (5)
28/// Initializes a new instance of the <see cref='System.ComponentModel.PropertyDescriptor'/> class with the specified name and 36/// Initializes a new instance of the <see cref='System.ComponentModel.PropertyDescriptor'/> class with 45/// Initializes a new instance of the <see cref='System.ComponentModel.PropertyDescriptor'/> class with 188/// Compares this to another <see cref='System.ComponentModel.PropertyDescriptor'/> 210if (obj is PropertyDescriptor pd && pd.NameHashCode == NameHashCode
System\ComponentModel\PropertyDescriptorCollection.cs (40)
23private PropertyDescriptor[] _properties; 36public PropertyDescriptorCollection(PropertyDescriptor[]? properties) 40_properties = Array.Empty<PropertyDescriptor>(); 55public PropertyDescriptorCollection(PropertyDescriptor[]? properties, bool readOnly) : this(properties) 60private PropertyDescriptorCollection(PropertyDescriptor[] properties, int propCount, string[]? namedSort, IComparer? comparer) 81public virtual PropertyDescriptor this[int index] 97public virtual PropertyDescriptor? this[string name] => Find(name, false); 99public int Add(PropertyDescriptor value) 122public bool Contains(PropertyDescriptor value) => IndexOf(value) >= 0; 137PropertyDescriptor[] newProps = new PropertyDescriptor[Count]; 160_properties = new PropertyDescriptor[sizeNeeded]; 167PropertyDescriptor[] newProps = new PropertyDescriptor[newSize]; 175public virtual PropertyDescriptor? Find(string name, bool ignoreCase) 179PropertyDescriptor? p = null; 200return (PropertyDescriptor)cached; 232public int IndexOf(PropertyDescriptor? value) => Array.IndexOf(_properties, value, 0, Count); 234public void Insert(int index, PropertyDescriptor value) 250public void Remove(PropertyDescriptor? value) 332List<PropertyDescriptor?> propList = new List<PropertyDescriptor?>(_properties); 340PropertyDescriptor? currentProp = propList[j]; 395PropertyDescriptor[] enumProps = new PropertyDescriptor[Count]; 418if (!(value is PropertyDescriptor newProp)) 458if (value != null && !(value is PropertyDescriptor)) 492Add((PropertyDescriptor)value!); 497_properties[index] = (PropertyDescriptor)value!; 526PropertyDescriptor[] newProps = new PropertyDescriptor[Count]; 541PropertyDescriptor? pd = this[(string)key]; 549int IList.Add(object? value) => Add((PropertyDescriptor)value!); 551bool IList.Contains(object? value) => Contains((PropertyDescriptor)value!); 553int IList.IndexOf(object? value) => IndexOf((PropertyDescriptor)value!); 555void IList.Insert(int index, object? value) => Insert(index, (PropertyDescriptor)value!); 561void IList.Remove(object? value) => Remove((PropertyDescriptor?)value); 579if (value != null && !(value is PropertyDescriptor)) 585_properties[index] = (PropertyDescriptor)value!; 605PropertyDescriptor curProp = _owner[_index];
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
162PropertyDescriptor oldReflectPropertyDescriptor, 566internal void ExtenderResetValue(IExtenderProvider provider, object component, PropertyDescriptor notifyDesc) 622internal void ExtenderSetValue(IExtenderProvider? provider, object? component, object? value, PropertyDescriptor notifyDesc)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (24)
397[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of instance cannot be statically discovered.")] 398internal PropertyDescriptor? GetDefaultProperty([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, object? instance) 525internal static PropertyDescriptor? GetExtendedDefaultProperty() 599List<PropertyDescriptor>? propertyList = null; 603PropertyDescriptor[] propertyArray = ReflectGetExtendedProperties(extenders[idx]); 605propertyList ??= new List<PropertyDescriptor>(propertyArray.Length * extenders.Length); 609PropertyDescriptor prop = propertyArray[propIdx]; 632PropertyDescriptor[] fullArray = new PropertyDescriptor[propertyList.Count]; 879[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 1236private static PropertyDescriptor[] ReflectGetExtendedProperties(IExtenderProvider provider) 1239PropertyDescriptor[]? properties; 1243properties = cache[s_extenderProviderPropertiesKey] as PropertyDescriptor[]; 1308properties = new PropertyDescriptor[extendedProperties.Length]; 1328[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 1329private static PropertyDescriptor[] ReflectGetProperties( 1333private static PropertyDescriptor[] ReflectGetPropertiesFromRegisteredType(Type type) 1338private static PropertyDescriptor[] ReflectGetPropertiesImpl(Type type) 1341PropertyDescriptor[]? properties = (PropertyDescriptor[]?)propertyCache[type]; 1349properties = (PropertyDescriptor[]?)propertyCache[type]; 1363properties = new PropertyDescriptor[propertyInfos.Length]; 1401PropertyDescriptor[] newProperties = new PropertyDescriptor[propertyCount];
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (8)
281[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of instance cannot be statically discovered.")] 282internal PropertyDescriptor? GetDefaultProperty(object? instance) 470[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 478PropertyDescriptor[] propertyArray; 479Dictionary<string, PropertyDescriptor> propertyList = new Dictionary<string, PropertyDescriptor>(10); 486foreach (PropertyDescriptor p in propertyArray) 494propertyArray = new PropertyDescriptor[propertyList.Count];
System\ComponentModel\TypeDescriptor.cs (51)
510[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 511public static PropertyDescriptor CreateProperty( 524[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 525public static PropertyDescriptor CreateProperty( 527PropertyDescriptor oldPropertyDescriptor, 930[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 931public static PropertyDescriptor? GetDefaultProperty( 946[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")] 947public static PropertyDescriptor? GetDefaultProperty(object component) => GetDefaultProperty(component, false); 953[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")] 954public static PropertyDescriptor? GetDefaultProperty(object component, bool noCustomTypeDesc) 1327[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 1353[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1371var descriptors = new PropertyDescriptor[filteredProperties.Count]; 1383[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")] 1401[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")] 1412[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1423[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1434[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1510PropertyDescriptor[] propArray = new PropertyDescriptor[results.Count]; 1579PropertyDescriptor[] propArray = new PropertyDescriptor[results.Count]; 1917PropertyDescriptor[] propArray = new PropertyDescriptor[list.Count]; 2101PropertyDescriptor[] propArray = new PropertyDescriptor[list.Count]; 2108throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(PropertyDescriptor).FullName)); 2256PropertyDescriptor[] propArray = new PropertyDescriptor[list.Count]; 2830[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 2831PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() 2853[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 2859[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 2865object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => _instance; 3141[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3142PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 3186[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3198[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 3212object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 3564[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3565PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 3676[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3719[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 3747object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 3952[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3953public PropertyDescriptor? GetDefaultProperty() 3959PropertyDescriptor? defaultProperty; 4088[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 4146[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 4174public object? GetPropertyOwner(PropertyDescriptor? pd)
System.Data.Common (52)
System\Data\Common\DataRecordInternal.cs (2)
333PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 365object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbConnectionStringBuilder.cs (12)
413PropertyDescriptor[] properties = new PropertyDescriptor[descriptors.Count]; 442foreach (PropertyDescriptor reflected in TypeDescriptor.GetProperties(this, true)) 451PropertyDescriptor descriptor = new DbConnectionStringBuilderDescriptor(reflected.Name, 523PropertyDescriptor descriptor = new DbConnectionStringBuilderDescriptor(keyword, 550PropertyDescriptor[] propertiesArray = new PropertyDescriptor[propertyDescriptors.Count]; 556foreach (PropertyDescriptor property in propertyDescriptors) 581PropertyDescriptor[] filteredPropertiesArray = new PropertyDescriptor[index]; 622PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 655object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbDataRecord.cs (2)
86PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 104object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\Common\DbEnumerator.cs (2)
95PropertyDescriptor[] props = new PropertyDescriptor[_reader.FieldCount];
System\Data\DataRowView.cs (2)
243PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 260object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\DataSet.cs (2)
3398internal static DataTable? FindTable(DataTable? baseTable, PropertyDescriptor[] props, int propStart) 3405PropertyDescriptor currentProp = props[propStart];
System\Data\DataTable.cs (2)
4910PropertyDescriptor[] props = new PropertyDescriptor[columnsCount + relationsCount];
System\Data\DataView.cs (11)
951PropertyDescriptor? IBindingList.SortProperty => GetSortProperty(); 953internal PropertyDescriptor? GetSortProperty() 992void IBindingList.AddIndex(PropertyDescriptor property) => GetFindIndex(property.Name, keepIndex: true); 994void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection direction) 999int IBindingList.Find(PropertyDescriptor property, object key) 1038void IBindingList.RemoveIndex(PropertyDescriptor property) 1069PropertyDescriptor? property = sort.PropertyDescriptor; 1073throw ExceptionBuilder.ArgumentNull(nameof(PropertyDescriptor)); 1097private static string CreateSortString(PropertyDescriptor property, ListSortDirection direction) 1154string System.ComponentModel.ITypedList.GetListName(PropertyDescriptor[]? listAccessors) 1178PropertyDescriptorCollection System.ComponentModel.ITypedList.GetItemProperties(PropertyDescriptor[]? listAccessors)
System\Data\DataViewManager.cs (8)
221PropertyDescriptor IBindingList.SortProperty 233void IBindingList.AddIndex(PropertyDescriptor property) 238void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection direction) 243int IBindingList.Find(PropertyDescriptor property, object key) 248void IBindingList.RemoveIndex(PropertyDescriptor property) 259string System.ComponentModel.ITypedList.GetListName(PropertyDescriptor[]? listAccessors) 282PropertyDescriptorCollection System.ComponentModel.ITypedList.GetItemProperties(PropertyDescriptor[]? listAccessors) 332PropertyDescriptor? NullProp = null;
System\Data\DataViewManagerListItemTypeDescriptor.cs (4)
64PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 116PropertyDescriptor[]? props = null; 121props = new PropertyDescriptor[tableCount]; 139object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\LinqDataView.cs (1)
247PropertyDescriptor? IBindingList.SortProperty
System\Data\xmlsaver.cs (2)
132internal void AddXdoProperty(PropertyDescriptor pd, object instance, XmlElement root) 227private static bool ContainsDesignerSerializationVisibleAttribute(PropertyDescriptor pd) => pd.Attributes.Contains(DesignerSerializationVisibilityAttribute.Visible);
System\Data\XMLSchema.cs (2)
42PropertyDescriptor? pd = TypeDescriptor.GetProperties(instance)[name]; 289PropertyDescriptor? pd = TypeDescriptor.GetProperties(instance)[name];
System.Drawing.Common.Tests (2)
System\Drawing\FontConverterTests.cs (1)
106foreach (PropertyDescriptor prop in props)
System\Drawing\Printing\MarginsConverterTests.cs (1)
152public PropertyDescriptor PropertyDescriptor { get { return null; } }
System.Windows.Forms (180)
misc\ImageListUtils.cs (4)
11public static PropertyDescriptor? GetImageListProperty(PropertyDescriptor? currentComponent, ref object instance) 26PropertyDescriptor? imageListProperty = null; 38PropertyDescriptor? property = TypeDescriptor.GetProperties(parentInstance)[pathInfo[i]];
System\Drawing\Design\IPropertyValueUIService.cs (2)
35/// A <see cref="PropertyDescriptor" /> that indicates the property to match with the properties to return. 37PropertyValueUIItem[] GetPropertyUIValueItems(ITypeDescriptorContext context, PropertyDescriptor propDesc);
System\Drawing\Design\PropertyValueUIHandler.cs (2)
14/// A <see cref="PropertyDescriptor" /> that represents the property being queried. 20public delegate void PropertyValueUIHandler(ITypeDescriptorContext context, PropertyDescriptor propDesc, ArrayList valueUIItemList);
System\Drawing\Design\PropertyValueUIItemInvokeHandler.cs (1)
19public delegate void PropertyValueUIItemInvokeHandler(ITypeDescriptorContext context, PropertyDescriptor descriptor, PropertyValueUIItem invokedItem);
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
16private readonly PropertyDescriptor _baseDescriptor; 31internal AxPropertyDescriptor(PropertyDescriptor baseDescriptor, AxHost owner) : base(baseDescriptor)
System\Windows\Forms\ActiveX\AxHost.cs (10)
126private Dictionary<string, PropertyDescriptor>? _properties; 2478PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 2571List<PropertyDescriptor> returnProperties = []; 2600PropertyDescriptor? prop = null; 2610if (!_properties.TryGetValue(propName, out PropertyDescriptor? propDesc)) 2656List<PropertyDescriptor>? removeList = null; 2658foreach (PropertyDescriptor prop in returnProperties) 2671foreach (PropertyDescriptor prop in removeList) 2702object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 2712foreach (PropertyDescriptor prop in props)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
499foreach (PropertyDescriptor p in props)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
982private bool IsResourceProperty(PropertyDescriptor property) 1058PropertyDescriptor currentProperty = props[i]; 1122bool SetValue(PropertyDescriptor currentProperty, object data) 1512PropertyDescriptor currentProperty = props[i];
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (2)
59PropertyDescriptor[] descriptors = new PropertyDescriptor[properties.Count];
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (2)
44PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => _handler.GetDefaultProperty(_instance); 60object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => _instance;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
258internal PropertyDescriptor? GetDefaultProperty(object component)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (2)
26PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 36object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => null;
System\Windows\Forms\Control.cs (2)
12586PropertyDescriptor? sizeProperty = null; 12587PropertyDescriptor? locationProperty = null;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
168PropertyDescriptor? pd = TypeDescriptor.GetProperties(this)["UseVisualStyleBackColor"];
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (3)
214GetSortingInformationFromBackend(out PropertyDescriptor? sortField, out SortOrder sortOrder); 307GetSortingInformationFromBackend(out PropertyDescriptor? sortProperty, out SortOrder sortOrder); 972private void GetSortingInformationFromBackend(out PropertyDescriptor? sortProperty, out SortOrder sortOrder)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (13)
224private PropertyDescriptor? DisplayMemberProperty 226get => Properties.GetValueOrDefault<PropertyDescriptor?>(s_propComboBoxCellDisplayMemberProp); 480private PropertyDescriptor? ValueMemberProperty 482get => Properties.GetValueOrDefault<PropertyDescriptor?>(s_propComboBoxCellValueMemberProp); 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); 1363PropertyDescriptor? displayMemberProperty = props.Find(displayBindingMember.BindingField, true); 1394PropertyDescriptor? valueMemberProperty = props.Find(valueBindingMember.BindingField, true); 1410private object? ItemFromComboBoxDataSource(PropertyDescriptor property, object key) 1459PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item!).Find(field, ignoreCase: true); 1477PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(itemCandidate).Find(field, ignoreCase: true);
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
151PropertyDescriptor? displayMemberProperty = props.Find(_displayMember.BindingField, true); 378PropertyDescriptor? property = props.Find(propertyName, true); 441PropertyDescriptor? descriptor;
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
51PropertyDescriptor? listViewProp = listViewItemProps["ListView"]; 62PropertyDescriptor? listViewImageListProperty = listViewProps["StateImageList"];
System\Windows\Forms\Controls\PropertyGrid\GridItem.cs (3)
45/// <see cref="System.ComponentModel.PropertyDescriptor"/> and check its Name property. 56/// <see cref="System.ComponentModel.PropertyDescriptor"/> that is associated with this <see cref="GridItem"/>. 59public abstract PropertyDescriptor? PropertyDescriptor { get; }
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (9)
614public override PropertyDescriptor? PropertyDescriptor => null; 1156PropertyDescriptor? property = TypeDescriptor.GetProperties(owner)[propertyName]; 1300PropertyDescriptor? defaultProperty = null; 1324var propertyDescriptors = new PropertyDescriptor[properties.Count]; 1362foreach (PropertyDescriptor property in properties) 2100private static PropertyDescriptor[] SortParenProperties(PropertyDescriptor[] props) 2102PropertyDescriptor[]? newProperties = null; 2110newProperties ??= new PropertyDescriptor[props.Length];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.DisplayNameSortComparer.cs (2)
17((PropertyDescriptor)left!).DisplayName, 18((PropertyDescriptor)right!).DisplayName,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (2)
17/// <see cref="PropertyDescriptor"/> to change the value, but recreate the property object each time. 25PropertyDescriptor propertyInfo,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (5)
14private readonly PropertyDescriptor[] _descriptors; 22public MergePropertyDescriptor(PropertyDescriptor[] descriptors) 45foreach (PropertyDescriptor pd in _descriptors) 66foreach (PropertyDescriptor pd in _descriptors) 82public PropertyDescriptor this[int index] => _descriptors[index];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (2)
18PropertyDescriptor[] propertyDescriptors, 233PropertyDescriptor? propertyInfo = entry.PropertyDescriptor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyDescriptorComparer.cs (4)
16var a1 = obj1 as PropertyDescriptor; 17var a2 = obj2 as PropertyDescriptor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (17)
30List<PropertyDescriptor[]>? commonProperties = GetCommonProperties(objects, presort: true, tab, parentEntry); 49List<PropertyDescriptor[]>? properties = GetCommonProperties(objects.AsSpan(1), presort: true, tab, parentEntry); 52List<PropertyDescriptor[]>? firstProperties = GetCommonProperties(objects.AsSpan(0, 1), presort: false, tab, parentEntry); 56var firstPropertyDescriptors = new PropertyDescriptor[firstProperties.Count]; 92/// Returns a list of <see cref="PropertyDescriptor"/> arrays, one for each component. 94private static List<PropertyDescriptor[]>? GetCommonProperties( 130List<PropertyDescriptor[]> mergedList = []; 131var matchArray = new PropertyDescriptor[objects.Length]; 142PropertyDescriptor pivotProperty = objectProperties[0][i]; 155PropertyDescriptor property = objectProperties[j][positions[j]]; 219mergedList.Add((PropertyDescriptor[])matchArray.Clone()); 265private static List<PropertyDescriptor[]> UnsortedMerge( 266PropertyDescriptor[] baseEntries, 267List<PropertyDescriptor[]> sortedMergedEntries) 269List<PropertyDescriptor[]> mergedEntries = []; 271foreach (PropertyDescriptor basePropertyDescriptor in baseEntries) 285PropertyDescriptor propertyDescriptor = propertyDescriptors[0];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (2)
16public override PropertyDescriptor? GetDefaultProperty(object obj) 19PropertyDescriptor? defaultProperty = base.GetDefaultProperty(obj);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
39PropertyDescriptor propertyDescriptor, 110PropertyDescriptor? componentProperty = TypeDescriptor.GetProperties(ownerType)[PropertyName!]; 161public sealed override PropertyDescriptor PropertyDescriptor { get; } 342protected void Initialize(PropertyDescriptor propertyDescriptor)
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
125PropertyDescriptor? pd = TypeDescriptor.GetProperties(this)[nameof(UseVisualStyleBackColor)];
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (3)
81PropertyDescriptor? imageListProp = ImageListUtils.GetImageListProperty(context.PropertyDescriptor, ref instance); 87foreach (PropertyDescriptor prop in props) 100PropertyDescriptor? parentProp = props[ParentImageListProperty];
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.BindToObject.cs (1)
194internal PropertyDescriptor? FieldInfo { get; private set; }
System\Windows\Forms\DataBinding\Binding.cs (4)
28private PropertyDescriptor? _propInfo; 29private PropertyDescriptor? _propIsNullInfo; 485PropertyDescriptor? tempPropInfo = null; 486PropertyDescriptor? tempPropIsNullInfo = null;
System\Windows\Forms\DataBinding\BindingContext.cs (1)
266PropertyDescriptor? prop = formerManager.GetItemProperties().Find(dataField, true)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (4)
72internal abstract PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[]? listAccessors); 86PropertyDescriptor[] properties = new PropertyDescriptor[listAccessors.Count]; 178if (property.Name.Equals(((PropertyDescriptor)listAccessors[offset]!).Name))
System\Windows\Forms\DataBinding\BindingSource.cs (11)
650PropertyDescriptor? pd = (_itemShape?.Find(propertyName, true)) 719PropertyDescriptor? dmProp = dsProps[_dataMember]; 905PropertyDescriptor? dmProp = dsProps[_dataMember]; 1003PropertyDescriptor? prop = props.Find(current, true) 1542public virtual string GetListName(PropertyDescriptor[]? listAccessors) => 1545public virtual PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[]? listAccessors) 1698public virtual PropertyDescriptor? SortProperty 1710void IBindingList.AddIndex(PropertyDescriptor property) 1721public virtual void ApplySort(PropertyDescriptor property, ListSortDirection sort) 1731public virtual int Find(PropertyDescriptor prop, object key) 1741void IBindingList.RemoveIndex(PropertyDescriptor prop)
System\Windows\Forms\DataBinding\CurrencyManager.cs (7)
518internal void SetSort(PropertyDescriptor property, ListSortDirection sortDirection) 527/// Gets a <see cref="PropertyDescriptor"/> for a CurrencyManager. 529internal PropertyDescriptor? GetSortProperty() 555internal int Find(PropertyDescriptor? property, object key) 599PropertyDescriptor[] properties = new PropertyDescriptor[listAccessors.Count]; 607internal override PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[]? listAccessors) =>
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
141PropertyDescriptor? prop = TypeDescriptor.GetProperties(b)[constructorParameterProperty];
System\Windows\Forms\DataBinding\ListBindingHelper.cs (13)
48PropertyDescriptor? dmProp = dsProps.Find(dataMember, true) 75public static string GetListName(object? list, PropertyDescriptor[]? listAccessors) 149public static PropertyDescriptorCollection GetListItemProperties(object? list, PropertyDescriptor[]? listAccessors) 174public static PropertyDescriptorCollection GetListItemProperties(object? dataSource, string? dataMember, PropertyDescriptor[]? listAccessors) 182PropertyDescriptor? dmProp = dsProps.Find(dataMember, true); 186PropertyDescriptor[] listAccessors2 = new PropertyDescriptor[len]; 295PropertyDescriptor? dmProp = dsProps.Find(dataMember, true); 345private static PropertyDescriptorCollection GetListItemPropertiesByType(PropertyDescriptor[] listAccessors, int startIndex) 381private static PropertyDescriptorCollection GetListItemPropertiesByEnumerable(IEnumerable iEnumerable, PropertyDescriptor[] listAccessors, int startIndex) 445private static PropertyDescriptorCollection GetListItemPropertiesByInstance(object? target, PropertyDescriptor[] listAccessors, int startIndex) 469PropertyDescriptor[]? accessors = null; 474accessors = new PropertyDescriptor[accessorsCount];
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
13private PropertyDescriptor? _propInfo; 63internal override PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[]? listAccessors)
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (5)
16private PropertyDescriptor _fieldInfo; 75internal override PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[]? listAccessors) 77PropertyDescriptor[] accessors; 81accessors = new PropertyDescriptor[listAccessors.Length + 1]; 86accessors = new PropertyDescriptor[1];
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (5)
12private PropertyDescriptor _fieldInfo; 56internal override PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[]? listAccessors) 58PropertyDescriptor[] accessors; 62accessors = new PropertyDescriptor[listAccessors.Length + 1]; 67accessors = new PropertyDescriptor[1];
System\Windows\Forms\Design\EventsTab.cs (4)
33public override PropertyDescriptor? GetDefaultProperty(object obj) 139List<PropertyDescriptor>? matchingPropertyEvents = null; 140foreach (PropertyDescriptor property in matchingComponentProperties) 163var mergedEvents = new PropertyDescriptor[componentEventProperties.Count + matchingPropertyEvents.Count];
System\Windows\Forms\Design\PropertyTab.cs (1)
106public virtual PropertyDescriptor? GetDefaultProperty(object component)
System\Windows\Forms\ImageIndexConverter.cs (3)
104PropertyDescriptor? imageListProp = ImageListUtils.GetImageListProperty(context.PropertyDescriptor, ref instance); 110foreach (PropertyDescriptor prop in props) 123PropertyDescriptor? parentProp = props[ParentImageListProperty];
System\Windows\Forms\ImageKeyConverter.cs (3)
110PropertyDescriptor? imageListProp = ImageListUtils.GetImageListProperty(context.PropertyDescriptor, ref instance); 116foreach (PropertyDescriptor prop in props) 129PropertyDescriptor? parentProp = props[ParentImageListProperty];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
512PropertyDescriptor? prop;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
49PropertyDescriptor? prop = TypeDescriptor.GetProperties(tableControl)["Name"];
System.Windows.Forms.Design (433)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
91foreach (PropertyDescriptor p in TypeDescriptor.GetProperties(type)) 1258PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() => this; 1307object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\ComponentModel\Design\CollectionEditor.cs (1)
153PropertyDescriptor? property = TypeDescriptor.GetDefaultProperty(CollectionType);
System\ComponentModel\Design\ComponentDesigner.cs (11)
40PropertyDescriptor? defaultProperty = TypeDescriptor.GetDefaultProperty(_component); 279PropertyDescriptor? defaultPropEvent = ebs.GetEventProperty(defaultEvent); 414PropertyDescriptor[] values = new PropertyDescriptor[properties.Count]; 417foreach (PropertyDescriptor prop in values) 661PropertyDescriptor[] values = new PropertyDescriptor[properties.Values.Count]; 664foreach (PropertyDescriptor prop in values) 678PropertyDescriptor? newInnerProp = (PropertyDescriptor?)properties[de.Key]; 711&& properties?[SettingsKeyName] is PropertyDescriptor prop)
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (5)
15private Dictionary<string, PropertyDescriptor>? _descriptors; 37PropertyDescriptor property = GetShadowedPropertyDescriptor(propertyName) ?? throw new ArgumentException("The requested property does not exist", nameof(propertyName)); 56private PropertyDescriptor? GetShadowedPropertyDescriptor(string propertyName) 60if (!_descriptors.TryGetValue(propertyName, out PropertyDescriptor? descriptor)) 85PropertyDescriptor shadowedPropertyDescriptor = GetShadowedPropertyDescriptor(propertyName) ?? throw new InvalidOperationException("Failed to retrieve the shadowed PropertyDescriptor");
System\ComponentModel\Design\DesignerActionPanel.cs (2)
407private static bool IsReadOnlyProperty(PropertyDescriptor propertyDescriptor) 669PropertyDescriptor? pd = TypeDescriptor.GetProperties(list)[pti.MemberName]
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (2)
16private PropertyDescriptor? _propDesc; 25protected PropertyDescriptor PropertyDescriptor => _propDesc ??= TypeDescriptor.GetProperties(_actionList!)[PropertyItem!.MemberName]!;
System\ComponentModel\Design\DesignerActionPanel.TypeDescriptorContext.cs (2)
12public TypeDescriptorContext(IServiceProvider serviceProvider, PropertyDescriptor propertyDescriptor, object instance) 25public PropertyDescriptor PropertyDescriptor { get; }
System\ComponentModel\Design\DesignerActionUIService.cs (1)
77PropertyDescriptor? p = opts.Options.Properties["ObjectBoundSmartTagAutoShow"];
System\ComponentModel\Design\EventBindingService.cs (6)
131EventDescriptor? IEventBindingService.GetEvent(PropertyDescriptor property) 176List<PropertyDescriptor> props = new(events.Count); 187PropertyDescriptor prop = new EventPropertyDescriptor(events[i]!, this); 197PropertyDescriptor IEventBindingService.GetEventProperty(EventDescriptor e) 201PropertyDescriptor prop = new EventPropertyDescriptor(e, this); 233PropertyDescriptor prop = ((IEventBindingService)this).GetEventProperty(e);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (3)
16private PropertyDescriptor _propertyDescriptor; 23public InheritedPropertyDescriptor(PropertyDescriptor propertyDescriptor, object component) : base(propertyDescriptor, []) 121internal PropertyDescriptor PropertyDescriptor
System\ComponentModel\Design\ReferenceService.cs (1)
47foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(reference, s_attributes))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (8)
156PropertyDescriptor? prop = props[propName]; 189PropertyDescriptor? prop = props[stateEntry.Key]; 423PropertyDescriptor? prop = eventProps[eventName]; 444PropertyDescriptor? modifierProp = TypeDescriptor.GetProperties(comp)["Modifiers"]; 545if (md._member is PropertyDescriptor prop && prop.PropertyType.IsSerializable) 581foreach (PropertyDescriptor prop in props) 597foreach (PropertyDescriptor eventProp in events) 617if (md._member is PropertyDescriptor prop && !prop.ShouldSerializeValue(data._value))
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (2)
144if (!typeof(PropertyDescriptor).IsAssignableFrom(objectType)) 173if (!manager.TryGetContext(out PropertyDescriptor? serializingProperty) || !serializingProperty.IsLocalizable)
System\ComponentModel\Design\Serialization\CodeDomSerializationProvider.cs (1)
106if (typeof(PropertyDescriptor).IsAssignableFrom(objectType))
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (3)
67foreach (PropertyDescriptor prop in props) 244if (member is PropertyDescriptor property) 349foreach (PropertyDescriptor prop in props)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (12)
376PropertyDescriptor? property = ourProperties[propertyName]; 501PropertyDescriptor prop = evtSvc.GetEventProperty(evt); 1236PropertyDescriptor prop = evtSvc.GetEventProperty(evt); 1499PropertyDescriptor? prop = GetPropertiesHelper(manager, target, null)[propertyReferenceEx.PropertyName]; 1548PropertyDescriptor? p = properties[propertyReferenceEx.PropertyName]; 1589PropertyDescriptor? rhsProp = GetPropertiesHelper(manager, rhsPropTarget, null)[rhsPropRef.PropertyName]; 2152foreach (PropertyDescriptor property in properties) 2174PropertyDescriptor[] propArray = new PropertyDescriptor[props.Count]; 2179PropertyDescriptor? filterProp = manager.Properties["FilteredProperties"]; 2204foreach (PropertyDescriptor property in props) 2246protected void SerializeProperty(IDesignerSerializationManager manager, CodeStatementCollection statements, object value, PropertyDescriptor propertyToSerialize)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (4)
147manager.TryGetContext(out PropertyDescriptor? property) && property.PropertyType == context.ExpressionType) 658PropertyDescriptor? clearProperty = manager.Properties["ClearCollections"]; 666PropertyDescriptor? property = manager.GetContext<PropertyDescriptor>();
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
30PropertyDescriptor? componentCacheProp = options.Options.Properties["UseOptimizedCodeGeneration"];
System\ComponentModel\Design\Serialization\ComponentCache.ResourceEntry.cs (2)
14PropertyDescriptor? propertyDescriptor, 22public readonly PropertyDescriptor? PropertyDescriptor = propertyDescriptor;
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (3)
65foreach (PropertyDescriptor property in props) 180PropertyDescriptor? generateProp = props["GenerateMember"]; 220PropertyDescriptor? modifiersProp = props["Modifiers"];
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (5)
627private static WrappedPropertyDescriptor WrapProperty(PropertyDescriptor property, object owner) 665PropertyDescriptor[] propArray; 673propArray = new PropertyDescriptor[props.Count]; 992private readonly PropertyDescriptor _property; 994internal WrappedPropertyDescriptor(PropertyDescriptor property, object target) : base(property.Name, null)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
42PropertyDescriptor prop = eventBindings.GetEventProperty(eventToSerialize);
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (3)
66PropertyDescriptor? descriptor = (PropertyDescriptor?)manager.Context[typeof(PropertyDescriptor)];
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (6)
23private static object? GetPropertyValue(IDesignerSerializationManager manager, PropertyDescriptor property, object value, out bool validValue) 89if (descriptor is not PropertyDescriptor propertyToSerialize) 130private void SerializeContentProperty(IDesignerSerializationManager manager, object value, PropertyDescriptor property, bool isExtender, CodeStatementCollection statements) 224private void SerializeExtenderProperty(IDesignerSerializationManager manager, object value, PropertyDescriptor property, CodeStatementCollection statements) 282private void SerializeNormalProperty(IDesignerSerializationManager manager, object value, PropertyDescriptor property, CodeStatementCollection statements) 365if (descriptor is not PropertyDescriptor propertyToSerialize)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (2)
150manager.GetContext<PropertyDescriptor>(), 674if (manager.TryGetContext(out PropertyDescriptor? prop))
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
54PropertyDescriptor? prop = TypeDescriptor.GetProperties(comp)["LoadLanguage"];
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
143PropertyDescriptor? supportGenerate = manager.Properties["SupportsStatementGeneration"]; 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)
453foreach (PropertyDescriptor prop in props)
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"]; 510PropertyDescriptor propWidth = null; 511PropertyDescriptor propHeight = null; 512PropertyDescriptor propTop = null; 513PropertyDescriptor propLeft = null; 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\SelectionManager.cs (1)
82PropertyDescriptor? p = options?.Options.Properties["UseSmartTags"];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (5)
21private PropertyDescriptor _resizeProp; // cached property descriptor representing either the row or column styles 22private PropertyDescriptor _changedProp; // cached property descriptor that refers to the RowSTyles or ColumnStyles collection. 323PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[i])[isColumn ? "Width" : "Height"]; 331PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[absIndex])[isColumn ? "Width" : "Height"]; 412public PropertyDescriptor styleProp;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
164PropertyDescriptor? controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
84PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(navigator)[itemName];
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
63PropertyDescriptor? propertyDescriptor = propertyDescriptorCollection?["DataMember"];
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
27PropertyDescriptor? prop = TypeDescriptor.GetProperties(Component)["UseVisualStyleBackColor"];
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
65PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\CollectionEditVerbManager.cs (3)
21private readonly PropertyDescriptor _targetProperty; 27internal CollectionEditVerbManager(string text, ComponentDesigner designer, PropertyDescriptor prop, bool addToDesignerVerbs) 124PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
59PropertyDescriptor? property = null;
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
84PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"];
System\Windows\Forms\Design\CommandSet.cs (39)
537PropertyDescriptor? prop = GetProperty(comp, "Location"); 557protected static PropertyDescriptor? GetProperty(object comp, string propName) 592PropertyDescriptor? prop = GetProperty(comp, "Size"); 599protected virtual void GetSnapInformation(IDesignerHost host, IComponent component, out Size snapSize, out IComponent snapComponent, out PropertyDescriptor? snapProperty) 606PropertyDescriptor? currentSnapProp = props["SnapToGrid"]; 612PropertyDescriptor? gridSizeProp = props["GridSize"]; 845GetSnapInformation(host, comp, out Size snapSize, out IComponent snapComponent, out PropertyDescriptor? snapProperty); 925PropertyDescriptor? propLoc = TypeDescriptor.GetProperties(component)["Location"]; 1008PropertyDescriptor? locProp = props["Location"]; 1009PropertyDescriptor? sizeProp = props["Size"]; 1010PropertyDescriptor? lockProp = props["Locked"]; 1142PropertyDescriptor? prop = GetProperty(baseComponent, "GridSize"); 1162PropertyDescriptor? lockedProp = GetProperty(comp, "Locked"); 1177PropertyDescriptor? locProp = GetProperty(comp, "Location"); 1279PropertyDescriptor? locProp = props["Location"]; 1280PropertyDescriptor? sizeProp = props["Size"]; 1289PropertyDescriptor? lockProp = props["Locked"]; 1339PropertyDescriptor locProp = props["Location"]!; 1965foreach (PropertyDescriptor pd in eventProps) 2088PropertyDescriptor? nameProp = props["Name"]; 2093PropertyDescriptor? textProp = props["Text"]; 2255PropertyDescriptor? prop = GetProperty(baseComponent, "DrawGrid"); 2299PropertyDescriptor? sizeProp = GetProperty(component, "Size"); 2328PropertyDescriptor? lockedDesc = GetProperty(obj, "Locked"); 2334PropertyDescriptor? sizeProp = GetProperty(obj, "Size"); 2404PropertyDescriptor? prop = GetProperty(baseComponent, "CurrentGridSize"); 2416PropertyDescriptor? sizeProp = GetProperty(comp, "Size"); 2417PropertyDescriptor? locProp = GetProperty(comp, "Location"); 2488PropertyDescriptor? prop = GetProperty(baseComponent, "SnapToGrid"); 2541PropertyDescriptor? prop = GetProperty(baseComponent, "CurrentGridSize"); 2555PropertyDescriptor? curSizeDesc = null, lastSizeDesc = null; 2556PropertyDescriptor? curLocDesc = null, lastLocDesc = null; 2714PropertyDescriptor? primaryLocDesc = GetProperty(primary, "Location"); 2731PropertyDescriptor? lockedDesc = props["Locked"]; 3346PropertyDescriptor? gs = GetProperty(baseComponent, "GridSize"); 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 (8)
306PropertyDescriptor trayIconProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayLargeIcon"]; 412PropertyDescriptor trayAAProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayAutoArrange"]; 958PropertyDescriptor loc = TypeDescriptor.GetProperties(receiver.GetType())["Location"]; 1544PropertyDescriptor loc = TypeDescriptor.GetProperties(receiver.GetType())["Location"]; 1840PropertyDescriptor ctlLocation = TypeDescriptor.GetProperties(comp)["TrayLocation"]; 1875PropertyDescriptor ctlLocation = TypeDescriptor.GetProperties(comp)["TrayLocation"]; 2368PropertyDescriptor prop; 2471PropertyDescriptor defaultPropEvent = null;
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 (12)
367protected override void GetSnapInformation(IDesignerHost host, IComponent component, out Size snapSize, out IComponent snapComponent, out PropertyDescriptor snapProperty) 371PropertyDescriptor gridSizeProp = null; 372PropertyDescriptor currentSnapProp = null; 533PropertyDescriptor dockProp = TypeDescriptor.GetProperties(comp)["Dock"]; 685GetSnapInformation(host, comp, out snapSize, out IComponent snapComponent, out PropertyDescriptor snapProperty); 770PropertyDescriptor propIntegralHeight = TypeDescriptor.GetProperties(component)["IntegralHeight"]; 776PropertyDescriptor propItemHeight = TypeDescriptor.GetProperties(component)["ItemHeight"]; 785PropertyDescriptor propSize = TypeDescriptor.GetProperties(component)["Size"]; 870PropertyDescriptor prop = GetProperty(comp, "Locked"); 1037PropertyDescriptor controlsProp = null; 1109PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parent)["Controls"]; 1187PropertyDescriptor lockedProp = TypeDescriptor.GetProperties(_baseControl)["Locked"];
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (2)
14private readonly PropertyDescriptor _basePropDesc; 16public CanResetSizePropertyDescriptor(PropertyDescriptor pd) : base(pd) => _basePropDesc = pd;
System\Windows\Forms\Design\ControlDesigner.cs (15)
204PropertyDescriptor? prop; 206PropertyDescriptor? autoSizeProp = props["AutoSize"]; 207PropertyDescriptor? autoSizeModeProp = props["AutoSizeMode"]; 229if (props["Dock"] is PropertyDescriptor propDock) 268if (props["Locked"] is PropertyDescriptor pd) 307private bool IsResizableConsiderAutoSize(PropertyDescriptor? autoSizeProp, PropertyDescriptor? autoSizeModeProp) 916PropertyDescriptor? visibleProp = props["Visible"]; 922PropertyDescriptor? enabledProp = props["Enabled"]; 1141PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 1177PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(Component)["Dock"]; 1201PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 1631if (properties[shadowProps[i]] is PropertyDescriptor prop) 1639if (properties["Controls"] is PropertyDescriptor controlsProp) 1650if (properties["Size"] is PropertyDescriptor sizeProp)
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 (3)
142PropertyDescriptor? pd = props["UserAddedColumn"]; 541PropertyDescriptor? prop = TypeDescriptor.GetProperties(_liveDataGridView)["Columns"]; 729PropertyDescriptor propertyDescriptor = propertyDescriptorCollection[i];
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (10)
183PropertyDescriptor? prop = TypeDescriptor.GetProperties(_liveDataGridView)["Columns"]; 264PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(newColumns[i])["DisplayIndex"]; 274PropertyDescriptor? pd = TypeDescriptor.GetProperties(newColumns[i])["UserAddedColumn"]; 645PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(col)["UserAddedColumn"]; 1255PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => TypeDescriptor.GetDefaultProperty(DataGridViewColumn); 1272PropertyDescriptor[]? propArray = null; 1281Dictionary<string, PropertyDescriptor> hash = []; 1291propArray = new PropertyDescriptor[hash.Count + 1]; 1296propArray = new PropertyDescriptor[props.Count + 1]; 1305object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (3)
235PropertyDescriptor? prop = properties["Width"] as PropertyDescriptor; 241prop = properties["Name"] as PropertyDescriptor;
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (3)
102PropertyDescriptor? property = (PropertyDescriptor?)properties["ValueMember"]; 108property = (PropertyDescriptor?)properties["DisplayMember"];
System\Windows\Forms\Design\DataGridViewDesigner.cs (15)
43PropertyDescriptor? prop = TypeDescriptor.GetProperties(typeof(DataGridViewColumn))["Width"]; 308PropertyDescriptor? propertyDescriptor = props?["DataMember"]; 371if (properties[shadowProps[i]] is PropertyDescriptor prop) 413PropertyDescriptor? pd = TypeDescriptor.GetProperties(dataGridViewColumn)["UserAddedColumn"]; 420PropertyDescriptor? dataFieldProperty = backEndProps?[dataGridViewColumn.DataPropertyName]; 453PropertyDescriptor? columnsProp = TypeDescriptor.GetProperties(dataGridView)["Columns"]; 473PropertyDescriptor? pd = TypeDescriptor.GetProperties(dataGridViewColumn)["UserAddedColumn"]; 481PropertyDescriptor? dataFieldProperty = backEndProps?[dataGridViewColumn.DataPropertyName]; 579PropertyDescriptor? columnsProp = TypeDescriptor.GetProperties(dataGridView)["Columns"]; 591PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(col)["UserAddedColumn"]; 844PropertyDescriptor? dataSourceProp = TypeDescriptor.GetProperties(dataGridView)["DataSource"]; 949PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToAddRows"]; 995PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToDeleteRows"]; 1041PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToReorderColumns"]; 1087PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["ReadOnly"];
System\Windows\Forms\Design\DesignBindingPicker.cs (9)
767PropertyDescriptor property = properties[i]; 865PropertyDescriptor property = properties[i]; 1106foreach (PropertyDescriptor pd in properties) 1152PropertyDescriptor propertyDescriptor, 1174PropertyDescriptor propertyDescriptor, 1205foreach (PropertyDescriptor descriptor in properties) 1236PropertyDescriptor propertyDescriptor, 1501private static bool IsBindableDataMember(PropertyDescriptor property) 1522private static bool IsListMember(PropertyDescriptor property)
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (2)
32internal void OnGetUIValueItem(ITypeDescriptorContext context, PropertyDescriptor propDesc, ArrayList valueUIItemList) 48private static void OnPropertyValueUIItemInvoke(ITypeDescriptorContext context, PropertyDescriptor descriptor, PropertyValueUIItem invokedItem)
System\Windows\Forms\Design\DesignerUtils.cs (2)
354PropertyDescriptor? snaplinesProp = options.Options.Properties["UseSnapLines"]; 373PropertyDescriptor? prop = designerOptionService.Options.Properties[name];
System\Windows\Forms\Design\DocumentDesigner.cs (7)
518PropertyDescriptor prop = TypeDescriptor.GetProperties(Component)["Locked"]; 677PropertyDescriptor backProp = TypeDescriptor.GetProperties(Component.GetType())["BackColor"]; 1250PropertyDescriptor prop; 1292prop = (PropertyDescriptor)properties[shadowProps[i]]; 1299prop = (PropertyDescriptor)properties["AutoScaleDimensions"]; 1305prop = (PropertyDescriptor)properties["AutoScaleMode"]; 1313prop = (PropertyDescriptor)properties[noBrowseProps[i]];
System\Windows\Forms\Design\EditorServiceContext.cs (5)
19private readonly PropertyDescriptor? _targetProperty; 21internal EditorServiceContext(ComponentDesigner designer, PropertyDescriptor? prop) 37internal EditorServiceContext(ComponentDesigner designer, PropertyDescriptor? prop, string newVerbText) : this(designer, prop) 46PropertyDescriptor descriptor = TypeDescriptor.GetProperties(objectToChange)[propName]!; 98PropertyDescriptor? ITypeDescriptorContext.PropertyDescriptor => _targetProperty;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (4)
91PropertyDescriptor flowDirection = (PropertyDescriptor)properties["FlowDirection"]; 591PropertyDescriptor controlsProperty = TypeDescriptor.GetProperties(Component)["Controls"]; 724PropertyDescriptor controlsProperty = TypeDescriptor.GetProperties(Component)["Controls"];
System\Windows\Forms\Design\FormDocumentDesigner.cs (5)
322PropertyDescriptor windowStateProp = TypeDescriptor.GetProperties(component.GetType())["WindowState"]; 458PropertyDescriptor prop; 465prop = (PropertyDescriptor)properties[shadowProps[i]]; 473prop = (PropertyDescriptor)properties["AutoScaleBaseSize"]; 480prop = (PropertyDescriptor)properties["ClientSize"];
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
37PropertyDescriptor property = TypeDescriptor.GetProperties(value)["Name"];
System\Windows\Forms\Design\ImageIndexEditor.cs (8)
16protected WeakReference<PropertyDescriptor>? _currentImageListPropertyReference; 52_currentImageListPropertyReference.TryGetTarget(out PropertyDescriptor? currentProperty) && 58PropertyDescriptor? imageListProperty = GetImageListProperty(context.PropertyDescriptor!, ref instance); 65foreach (PropertyDescriptor property in properties) 85_currentImageListPropertyReference = new WeakReference<PropertyDescriptor>(imageListProperty); 137internal static PropertyDescriptor? GetImageListProperty(PropertyDescriptor currentComponent, ref object? instance) 162PropertyDescriptor? property = TypeDescriptor.GetProperties(parentInstance)[pathInfo[i]];
System\Windows\Forms\Design\ImageListDesigner.cs (3)
116if (properties[shadowProps[i]] is PropertyDescriptor prop) 124PropertyDescriptor? imageProp = (PropertyDescriptor?)properties["Images"];
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
33PropertyDescriptor? property = null;
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
65if (properties[nameof(IntegralHeight)] is PropertyDescriptor integralHeightProp) 70if (properties[nameof(Dock)] is PropertyDescriptor dockProp)
System\Windows\Forms\Design\ListViewDesigner.cs (4)
116PropertyDescriptor ownerDrawProp = (PropertyDescriptor)properties["OwnerDraw"]; 123PropertyDescriptor viewProp = (PropertyDescriptor)properties["View"];
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (1)
32PropertyDescriptor property = TypeDescriptor.GetDefaultProperty(CollectionType);
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (1)
50PropertyDescriptor property = TypeDescriptor.GetDefaultProperty(CollectionType);
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (2)
173PropertyDescriptor? prop; 176prop = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
51PropertyDescriptor? maskProperty = TypeDescriptor.GetProperties(_maskedTextBox)["Mask"];
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
283PropertyDescriptor? prop = TypeDescriptor.GetProperties(rootComponent)["Language"]; 355PropertyDescriptor? loc = TypeDescriptor.GetProperties(comps[i])["Location"]; 761PropertyDescriptor? loc = TypeDescriptor.GetProperties(comp)["TrayLocation"];
System\Windows\Forms\Design\ParentControlDesigner.cs (7)
556PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Control)["Controls"]; 566PropertyDescriptor prop = props["Size"]; 938PropertyDescriptor prop = TypeDescriptor.GetProperties(component)["AutoSize"]; 2136PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"]; 2137PropertyDescriptor locationProp = TypeDescriptor.GetProperties(newParent)["Location"]; 2163PropertyDescriptor locProp = TypeDescriptor.GetProperties(control)["Location"]; 2402PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parent)["Controls"];
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
89PropertyDescriptor? propSizeMode = TypeDescriptor.GetProperties(Component)["SizeMode"];
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
21PropertyDescriptor? prop = TypeDescriptor.GetProperties(Component)["TabStop"];
System\Windows\Forms\Design\RichTextBoxDesigner.cs (2)
74PropertyDescriptor? prop; 77prop = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\SelectionUIHandler.cs (10)
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"]; 548PropertyDescriptor? sizeProp = TypeDescriptor.GetProperties(c)["Size"]; 623PropertyDescriptor? sizeProp = TypeDescriptor.GetProperties(control)["Size"]; 624PropertyDescriptor? locProp = TypeDescriptor.GetProperties(control)["Location"];
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 (3)
118PropertyDescriptor? lockedProp = TypeDescriptor.GetProperties(component)["Locked"]; 230PropertyDescriptor descriptor = (PropertyDescriptor)de.Value!;
System\Windows\Forms\Design\StandardMenuStripVerb.cs (4)
178PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)["Image"]; 325PropertyDescriptor displayStyleProperty = TypeDescriptor.GetProperties(item)["DisplayStyle"]; 329PropertyDescriptor textProperty = TypeDescriptor.GetProperties(item)["Text"]; 345PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)["Image"];
System\Windows\Forms\Design\StyleEditorForm.cs (3)
33private readonly PropertyDescriptor _rowStyleProp; 34private readonly PropertyDescriptor _colStyleProp; 1058PropertyDescriptor childProperty = TypeDescriptor.GetProperties(_tableLayoutPanel)[nameof(TableLayoutPanel.Controls)];
System\Windows\Forms\Design\TabControlDesigner.cs (5)
275PropertyDescriptor nameProp = TypeDescriptor.GetProperties(page)["Name"]; 283PropertyDescriptor textProperty = TypeDescriptor.GetProperties(page)["Text"]; 288PropertyDescriptor styleProp = TypeDescriptor.GetProperties(page)["UseVisualStyleBackColor"]; 473PropertyDescriptor prop = properties[shadowProps[i]] as PropertyDescriptor;
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
52PropertyDescriptor? lsProp = TypeDescriptor.GetProperties(panel)[LayoutSettingsPropName];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (30)
40private PropertyDescriptor _rowStyleProp; 41private PropertyDescriptor _colStyleProp; 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"]; 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"]; 2108PropertyDescriptor prop = (PropertyDescriptor)properties[shadowProps[i]]; 2118PropertyDescriptor controlsProp = (PropertyDescriptor)properties["Controls"]; 2136private void PropChanging(PropertyDescriptor prop) 2144private void PropChanged(PropertyDescriptor prop)
System\Windows\Forms\Design\TabOrder.cs (3)
32private readonly Dictionary<Control, PropertyDescriptor> _tabProperties; 453PropertyDescriptor? prop = TypeDescriptor.GetProperties(control)["TabIndex"]; 789if (!_tabProperties.TryGetValue(ctl, out PropertyDescriptor? prop))
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\TextBoxBaseDesigner.cs (4)
93PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 112if (properties[shadowProps[i]] is PropertyDescriptor prop) 133PropertyDescriptor? prop = TypeDescriptor.GetProperties(component)["Multiline"]; 138PropertyDescriptor? propAuto = TypeDescriptor.GetProperties(component)["AutoSize"];
System\Windows\Forms\Design\TextBoxDesigner.cs (2)
46PropertyDescriptor? prop; 57prop = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripActionList.cs (2)
54PropertyDescriptor? getProperty = TypeDescriptor.GetProperties(_toolStrip)[propertyName]; 62PropertyDescriptor? changingProperty = TypeDescriptor.GetProperties(_toolStrip)[propertyName];
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (2)
448PropertyDescriptor? propertyDescriptor = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripDesigner.cs (10)
597PropertyDescriptor textProperty = TypeDescriptor.GetProperties(item)["Text"]; 616PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)["Image"]; 623PropertyDescriptor dispProperty = TypeDescriptor.GetProperties(item)["DisplayStyle"]; 627PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(item)["ImageTransparentColor"]; 1487PropertyDescriptor dockProp = TypeDescriptor.GetProperties(ToolStrip)["Dock"]; 1502PropertyDescriptor mainMenuStripProperty = TypeDescriptor.GetProperties(parentForm)["MainMenuStrip"]; 1514PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parentPanel)["Controls"]; 1523PropertyDescriptor locationProp = TypeDescriptor.GetProperties(ToolStrip)["Location"]; 2205PropertyDescriptor prop; 2215prop = (PropertyDescriptor)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
558PropertyDescriptor prop; 563prop = (PropertyDescriptor)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (3)
571PropertyDescriptor getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName]; 587PropertyDescriptor getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName]; 605PropertyDescriptor changingProperty = TypeDescriptor.GetProperties(target)[propertyName];
System\Windows\Forms\Design\ToolStripItemDesigner.cs (8)
374PropertyDescriptor textProp = TypeDescriptor.GetProperties(ToolStripItem)["Text"]; 684PropertyDescriptor pd = TypeDescriptor.GetProperties(ToolStripItem)["Text"]; 702PropertyDescriptor textProp = TypeDescriptor.GetProperties(Component)["Text"]; 824PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(newItem)["Image"]; 831PropertyDescriptor dispProperty = TypeDescriptor.GetProperties(newItem)["DisplayStyle"]; 835PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(newItem)["ImageTransparentColor"]; 1042PropertyDescriptor prop; 1046prop = (PropertyDescriptor)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (4)
542PropertyDescriptor textProp = TypeDescriptor.GetProperties(editedItem)["Text"]; 893PropertyDescriptor textProperty = TypeDescriptor.GetProperties(newItem)["Text"]; 2272PropertyDescriptor prop; 2276prop = (PropertyDescriptor)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (5)
380PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(e.Control)["Dock"]; 562PropertyDescriptor? propertyDescriptor = (PropertyDescriptor?)properties[noBrowseProps[i]]; 574PropertyDescriptor? propertyDescriptor = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
43PropertyDescriptor? prop = TypeDescriptor.GetProperties(component)[propertyName];
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (2)
48PropertyDescriptor? prop; 51prop = (PropertyDescriptor?)properties[shadowProps[i]];
System.Windows.Forms.Design.Tests (41)
ControlDesignerTests.cs (2)
345PropertyDescriptor? dockPropDescriptor = TypeDescriptor.GetProperties(_designer._control)[nameof(Control.Dock)]; 347dockPropDescriptor.Should().BeAssignableTo<PropertyDescriptor>();
EnsureEditorsTests.cs (1)
153PropertyDescriptor propertyDescriptor = properties.Find(propertyName, true);
System\ComponentModel\Design\ComponentDesignerTests.cs (22)
71PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 72Dictionary<string, PropertyDescriptor> properties = new() 79PropertyDescriptor result = properties["SettingsKey"]; 1592public void ComponentDesigner_DoDefaultAction_InvokeWithComponentWithHostInvalidProperty_Success(PropertyDescriptor property) 2306PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 2307Dictionary<string, PropertyDescriptor> properties = new() 2314PropertyDescriptor result = properties["SettingsKey"]; 2326PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 2327Dictionary<string, PropertyDescriptor> properties = new() 2334PropertyDescriptor result = properties["SettingsKey"]; 2347PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 2359PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 2360Dictionary<string, PropertyDescriptor> properties = new() 2736PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 2737Dictionary<string, PropertyDescriptor> properties = new() 2744PropertyDescriptor result = properties["SettingsKey"]; 2757PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 2758Dictionary<string, PropertyDescriptor> properties = new() 2765PropertyDescriptor result = properties["SettingsKey"]; 2779PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 2792PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0]; 2793Dictionary<string, PropertyDescriptor> properties = new()
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (6)
208PropertyDescriptor property = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(properties)); 305PropertyDescriptor property = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(properties)); 313PropertyDescriptor otherProperty = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(otherProperties));
System\Windows\Forms\Design\CollectionEditVerbManagerTests.cs (1)
28PropertyDescriptor? propertyDescriptor = properties[nameof(ToolStripButton.Text)];
System\Windows\Forms\Design\DataMemberFieldConverterTests.cs (1)
55public PropertyDescriptor PropertyDescriptor { get { return null; } }
System\Windows\Forms\Design\InheritedPropertyDescriptorTestExtensions.cs (1)
14PropertyDescriptor propertyDescriptor = properties.Find(property, false);
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (5)
36Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 60Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 77Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 84Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 100Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name));
ToolStripMenuItemDesignerTest.cs (2)
113PropertyDescriptor propertyDescriptor = properties.Find("Visible", true); 114Dictionary<string, PropertyDescriptor> property = new()
System.Windows.Forms.Primitives (6)
System\ComponentModel\PropertyDescriptorCollectionExtensions.cs (1)
14PropertyDescriptor? propertyDescriptor = propertyDescriptors[name];
System\ComponentModel\PropertyDescriptorExtensions.cs (4)
8public static bool TryGetValue<T>(this PropertyDescriptor descriptor, object? component, out T? value) 22public static T? GetValue<T>(this PropertyDescriptor descriptor, object? component) where T : class 32public static T? GetEditor<T>(this PropertyDescriptor descriptor) => (T?)descriptor.GetEditor(typeof(T)); 34public static bool TryGetEditor<T>(this PropertyDescriptor descriptor, [NotNullWhen(true)] out T? value)
System\ComponentModel\TypeDescriptorHelper.cs (1)
42PropertyDescriptor? property = TypeDescriptor.GetProperties(component)[name];
System.Windows.Forms.Tests (416)
System\Drawing\Design\PropertyValueUIItemTests.cs (1)
41private static void Dummy_PropertyValueUIItemInvokeHandler(ITypeDescriptorContext context, PropertyDescriptor propDesc, PropertyValueUIItem invokedItem) { }
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (64)
23PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 39PropertyDescriptor property = events[nameof(CustomAxHost.DispIdProperty)]; 55PropertyDescriptor property = events[nameof(CustomAxHost.DispIdNotBrowsableProperty)]; 71PropertyDescriptor property = events[nameof(CustomAxHost.DispIdReadOnlyProperty)]; 87PropertyDescriptor property = events[nameof(CustomAxHost.DispIdNotBrowsableReadOnlyProperty)]; 103PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 114PropertyDescriptor property = events[nameof(CustomAxHost.CategoryProperty)]; 125PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 136PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 147PropertyDescriptor property = events[nameof(CustomAxHost.DispIdProperty)]; 167PropertyDescriptor property = events[nameof(CustomAxHost.DispIdProperty)]; 188PropertyDescriptor property = events[nameof(CustomAxHost.CustomConverterProperty)]; 199PropertyDescriptor property = events[nameof(CustomAxHost.DispIdCustomConverterProperty)]; 210PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 221PropertyDescriptor property = events[nameof(CustomAxHost.DescriptionProperty)]; 232PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 243PropertyDescriptor property = events[nameof(CustomAxHost.GetOnlyProperty)]; 254PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 265PropertyDescriptor property = events[nameof(CustomAxHost.NotBrowsableProperty)]; 276PropertyDescriptor property = events[nameof(CustomAxHost.ReadOnlyProperty)]; 287PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 301PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 312PropertyDescriptor property = events[nameof(CustomAxHost.ReadOnlyProperty)]; 367PropertyDescriptor property = events[nameof(CustomAxHost.DispIdProperty)]; 378PropertyDescriptor property = events[nameof(CustomAxHost.DispIdEditorProperty)]; 392PropertyDescriptor property = events[nameof(CustomAxHost.DispIdUITypeEditorProperty)]; 415PropertyDescriptor property = events[nameof(CustomAxHost.DispIdProperty)]; 438PropertyDescriptor property = events[nameof(CustomAxHost.DispIdEditorProperty)]; 464PropertyDescriptor property = events[nameof(CustomAxHost.DispIdUITypeEditorProperty)]; 499PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 523PropertyDescriptor property = events[nameof(CustomAxHost.DataSourceProperty)]; 542PropertyDescriptor property = events[nameof(CustomAxHost.DispIdDataSourceProperty)]; 567PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 603PropertyDescriptor property = events[nameof(CustomAxHost.DataSourceProperty)]; 634PropertyDescriptor property = events[nameof(CustomAxHost.DispIdDataSourceProperty)]; 655PropertyDescriptor property = events[propertyName]; 682PropertyDescriptor property = events[propertyName]; 703PropertyDescriptor property = events[propertyName]; 730PropertyDescriptor property = events[propertyName]; 756PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 768PropertyDescriptor property = events[nameof(CustomAxHost.ReadOnlyProperty)]; 783PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 802PropertyDescriptor property = events[nameof(CustomAxHost.DataSourceProperty)]; 819PropertyDescriptor property = events[nameof(CustomAxHost.DispIdDataSourceProperty)]; 848PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 879PropertyDescriptor property = events[nameof(CustomAxHost.DataSourceProperty)]; 908PropertyDescriptor property = events[nameof(CustomAxHost.DispIdDataSourceProperty)]; 940PropertyDescriptor property = events[nameof(CustomAxHost.EnumProperty)]; 969PropertyDescriptor property = events[nameof(CustomAxHost.EnumProperty)]; 988PropertyDescriptor property = events[propertyName]; 1012PropertyDescriptor property = events[propertyName]; 1031PropertyDescriptor property = events[propertyName]; 1056PropertyDescriptor property = events[propertyName]; 1083PropertyDescriptor property = events[propertyName]; 1108PropertyDescriptor property = events[propertyName]; 1133PropertyDescriptor property = events[nameof(CustomAxHost.IntProperty)]; 1156PropertyDescriptor property = events[nameof(CustomAxHost.IntProperty)]; 1181PropertyDescriptor property = events[nameof(CustomAxHost.EnumProperty)]; 1204PropertyDescriptor property = events[nameof(CustomAxHost.EnumProperty)]; 1232PropertyDescriptor property = events[nameof(CustomAxHost.IntProperty)]; 1258PropertyDescriptor property = events[nameof(CustomAxHost.IntProperty)]; 1286PropertyDescriptor property = events[nameof(CustomAxHost.EnumProperty)]; 1342PropertyDescriptor property = events[nameof(CustomAxHost.CustomProperty)]; 1353PropertyDescriptor property = events[nameof(CustomAxHost.ReadOnlyProperty)];
System\Windows\Forms\AxHostTests.cs (5)
2539PropertyDescriptor propertyDescriptor = customTypeDescriptor.GetDefaultProperty(); 2562PropertyDescriptor propertyDescriptor = customTypeDescriptor.GetDefaultProperty(); 3030PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(string))[nameof(string.Length)]; 3036public void AxHost_ICustomTypeDescriptorGetPropertyOwner_Invoke_ReturnsExpected(PropertyDescriptor pd) 3050public void AxHost_ICustomTypeDescriptorGetPropertyOwner_InvokeWithHandle_ReturnsExpected(PropertyDescriptor pd)
System\Windows\Forms\AxSystemMonitorTests.cs (1)
40foreach (PropertyDescriptor prop in properties)
System\Windows\Forms\AxWebBrowserTests.cs (1)
40.Cast<PropertyDescriptor>()
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
152foreach (PropertyDescriptor property in propertyDescriptors)
System\Windows\Forms\BindingSourceTests.cs (7)
343PropertyDescriptor sortProperty = TypeDescriptor.GetProperties(typeof(DataClass))[0]; 846public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors) 851public string GetListName(PropertyDescriptor[] listAccessors) 863public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors) 868public string GetListName(PropertyDescriptor[] listAccessors) 881public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors) 886public string GetListName(PropertyDescriptor[] listAccessors)
System\Windows\Forms\ButtonBaseTests.cs (6)
1776PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)]; 1795PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)]; 1823PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)]; 4280PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)]; 4298PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)]; 4325PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
System\Windows\Forms\ColorDialogTests.cs (2)
146PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)]; 162PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)];
System\Windows\Forms\ColumnHeaderTests.cs (7)
239PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)]; 260PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)]; 858PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)]; 885PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)]; 914PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)]; 1054PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)]; 1081PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)];
System\Windows\Forms\ComboBoxTests.cs (4)
279PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)]; 295PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)]; 1147PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.ForeColor)]; 1163PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.ForeColor)];
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
124public PropertyDescriptor? GetDefaultProperty() => throw new NotImplementedException(); 136public object? GetPropertyOwner(PropertyDescriptor? pd) => _propertyOwner;
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (7)
47var handleProperty = properties["Handle"]; 65var typeProperty = properties["Type"]; 130var urlProperty = properties["URL"]; 172var accChildCount = properties["accChildCount"]; 176var accFocus = properties["accFocus"]; 196var accChildCount = properties["accChildCount"]; 200var accFocus = properties["accFocus"];
System\Windows\Forms\ControlTests.Properties.cs (28)
1604PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.BackColor)]; 1620PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.BackColor)]; 3673PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Controls)]; 3693PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Controls)]; 4765PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Enabled)]; 4781PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Enabled)]; 5242PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Font)]; 5267PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Font)]; 5638PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)]; 5654PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)]; 7572PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Location)]; 7596PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Location)]; 7850PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Margin)]; 7866PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Margin)]; 8443PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.MaximumSize)]; 8467PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.MaximumSize)]; 9213PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.MinimumSize)]; 9237PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.MinimumSize)]; 9645PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Padding)]; 9661PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Padding)]; 10442PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.RightToLeft)]; 10470PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.RightToLeft)]; 11753PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Size)]; 11777PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Size)]; 12043PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Text)]; 12070PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Text)]; 13067PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Visible)]; 13083PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Visible)];
System\Windows\Forms\Design\EventsTabTests.cs (2)
63PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithDefaultEvent))[0]; 99PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithDefaultEvent))[0];
System\Windows\Forms\DockPaddingEdgesTests.cs (5)
389PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.All)]; 410PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.Left)]; 431PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.Top)]; 452PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.Right)]; 473PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.Bottom)];
System\Windows\Forms\ErrorProviderTests.cs (6)
308PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)]; 319PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)]; 510PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)]; 521PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)]; 557PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)]; 569PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)];
System\Windows\Forms\FontDialogTests.cs (2)
331PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(FontDialog))[nameof(FontDialog.Font)]; 348PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(FontDialog))[nameof(FontDialog.Font)];
System\Windows\Forms\GridItemCollectionTests.cs (1)
67public override PropertyDescriptor PropertyDescriptor => null;
System\Windows\Forms\GridItemTests.cs (1)
58public override PropertyDescriptor PropertyDescriptor => null;
System\Windows\Forms\ImageListTests.cs (6)
169PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)]; 186PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)]; 363PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)]; 380PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)]; 779PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)]; 796PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)];
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (1)
1900.Returns(new PropertyDescriptorCollection(Array.Empty<PropertyDescriptor>()));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (1)
318.Returns(new PropertyDescriptorCollection(Array.Empty<PropertyDescriptor>()));
System\Windows\Forms\ListBindingHelperTests.cs (86)
291IEnumerable<PropertyDescriptor> properties = ListBindingHelper.GetListItemProperties(list)?.Cast<PropertyDescriptor>(); 295properties = ListBindingHelper.GetListItemProperties(list, null)?.Cast<PropertyDescriptor>(); 299properties = ListBindingHelper.GetListItemProperties(list, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>(); 303properties = ListBindingHelper.GetListItemProperties(list, null, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>(); 307properties = ListBindingHelper.GetListItemProperties(list, string.Empty, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>(); 313yield return new object[] { null, TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 315yield return new object[] { new DataClass(), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 316yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 318yield return new object[] { new ListDataClass(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 319yield return new object[] { new ListDataClass() { ListProperty = [new()] }, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 320yield return new object[] { typeof(ListDataClass), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 322yield return new object[] { new MultiListDataClass(), TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } }; 323yield return new object[] { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] }, TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().Take(0).ToArray(), new string[] { "ParentListProperty" } }; 325var inner = new PropertyDescriptor[] { TypeDescriptor.GetProperties(typeof(MultiListDataClass))[0], TypeDescriptor.GetProperties(typeof(ListDataClass))[0], TypeDescriptor.GetProperties(typeof(DataClass))[0] }; 327yield return new object[] { typeof(MultiListDataClass), TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } }; 329yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 330yield return new object[] { new DataClass(), new PropertyDescriptor[] { null }, Array.Empty<string>() }; 331yield return new object[] { typeof(DataClass), new PropertyDescriptor[] { null }, Array.Empty<string>() }; 334PropertyDescriptor[] descriptors = TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(); 364yield return new object[] { new EnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 365yield return new object[] { new List<EnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 366yield return new object[] { new ArrayList { new EnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 367yield return new object[] { new IEnumerableWrapper(new object[] { new EnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 372yield return new object[] { new NonEnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 373yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 374yield return new object[] { new ArrayList { new NonEnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 375yield return new object[] { new IEnumerableWrapper(new object[] { new NonEnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 379yield return new object[] { new ITypedListDataClass(), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 380yield return new object[] { typedListDataClass, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 381yield return new object[] { typeof(ITypedListDataClass), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 382yield return new object[] { new ITypedListDataClass[] { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 383yield return new object[] { new ITypedListDataClass[] { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 384yield return new object[] { new List<ITypedListDataClass> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 385yield return new object[] { new List<ITypedListDataClass> { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 386yield return new object[] { new ArrayList { new ITypedListDataClass() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 387yield return new object[] { new ArrayList { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 388yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListDataClass() }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 389yield return new object[] { new IEnumerableWrapper(new object[] { typedListDataClass }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 390yield return new object[] { typeof(ITypedListDataClass[]), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 393yield return new object[] { new ITypedListParent(), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 394yield return new object[] { typedListParent, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 395yield return new object[] { new ITypedListParent[] { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 396yield return new object[] { new ITypedListParent[] { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 397yield return new object[] { new List<ITypedListParent> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 398yield return new object[] { new List<ITypedListParent> { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 399yield return new object[] { new ArrayList { new ITypedListParent() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 400yield return new object[] { new ArrayList { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 401yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListParent() }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 402yield return new object[] { new IEnumerableWrapper(new object[] { typedListParent }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 407public void ListBindingHelper_GetListItemProperties_InvokeObjectPropertyDescriptorArray_ReturnsExpected(object list, PropertyDescriptor[] listAccessors, string[] expected) 409IEnumerable<PropertyDescriptor> properties = ListBindingHelper.GetListItemProperties(list, listAccessors)?.Cast<PropertyDescriptor>(); 413properties = ListBindingHelper.GetListItemProperties(list, null, listAccessors)?.Cast<PropertyDescriptor>(); 417properties = ListBindingHelper.GetListItemProperties(list, string.Empty, listAccessors)?.Cast<PropertyDescriptor>(); 424yield return new object[] { new ListDataClass(), "listproperty", Array.Empty<PropertyDescriptor>(), new string[] { "Property" } }; 425yield return new object[] { new MultiListDataClass(), "ParentListProperty", TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 427yield return new object[] { typeof(ListDataClass), "listproperty", Array.Empty<PropertyDescriptor>(), new string[] { "Property" } }; 428yield return new object[] { typeof(MultiListDataClass), "ParentListProperty", TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 433public void ListBindingHelper_GetListItemProperties_InvokeObjectStringPropertyDescriptorArray_ReturnsExpected(object list, string dataMember, PropertyDescriptor[] listAccessors, string[] expected) 435IEnumerable<PropertyDescriptor> properties = ListBindingHelper.GetListItemProperties(list, dataMember, listAccessors)?.Cast<PropertyDescriptor>(); 456Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray())); 457Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), null, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray())); 458Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), string.Empty, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray())); 471yield return new object[] { 1, Array.Empty<PropertyDescriptor>(), "Int32" }; 472yield return new object[] { typeof(int), Array.Empty<PropertyDescriptor>(), "Int32" }; 473yield return new object[] { 1, new PropertyDescriptor[] { null }, "Int32" }; 474yield return new object[] { typeof(int), new PropertyDescriptor[] { null }, "Int32" }; 490yield return new object[] { typeof(IEnumerable), new PropertyDescriptor[] { TypeDescriptor.GetProperties(typeof(DataClass))[0] }, "Int32" }; 495public void ListBindingHelper_GetListName_Invoke_ReturnsExpected(object list, PropertyDescriptor[] listAccessors, string expected) 531public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors) 543public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors) 548public string GetListName(PropertyDescriptor[] listAccessors) 562public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors) 567public string GetListName(PropertyDescriptor[] listAccessors) 695public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors) 700public string GetListName(PropertyDescriptor[] listAccessors) 715public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors) 720public string GetListName(PropertyDescriptor[] listAccessors) 827public PropertyDescriptor GetDefaultProperty() 901public object GetPropertyOwner(PropertyDescriptor pd)
System\Windows\Forms\ListBoxTests.cs (6)
443PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.BackColor)]; 459PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.BackColor)]; 1340PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ForeColor)]; 1356PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ForeColor)]; 1816PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)]; 1833PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)];
System\Windows\Forms\MdiClientTests.cs (6)
145PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.BackColor)]; 161PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.BackColor)]; 435PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.Location)]; 459PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.Location)]; 1148PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(Control.Size)]; 1172PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(Control.Size)];
System\Windows\Forms\PaddingTests.cs (6)
98PropertyDescriptor property = properties[nameof(Padding.All)]; 118PropertyDescriptor property = properties[nameof(Padding.All)]; 168PropertyDescriptor property = properties[nameof(Padding.Left)]; 218PropertyDescriptor property = properties[nameof(Padding.Top)]; 268PropertyDescriptor property = properties[nameof(Padding.Right)]; 318PropertyDescriptor property = properties[nameof(Padding.Bottom)];
System\Windows\Forms\PageSetupDialogTests.cs (2)
225PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)]; 254PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)];
System\Windows\Forms\PictureBoxTests.cs (6)
387PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.ErrorImage)]; 404PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.ErrorImage)]; 597PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.Image)]; 614PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.Image)]; 1084PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)]; 1101PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)];
System\Windows\Forms\ProgressBarTests.cs (2)
624PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)]; 640PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (4)
93PropertyDescriptor propertyDescriptor = TypeDescriptor.GetProperties(typeof(TestEntity)). 112PropertyDescriptor propertyDescriptor = TypeDescriptor.GetProperties(typeof(TestEntity)). 207public EnumerablePropertyDescriptorGridEntry(PropertyGrid ownerGrid, GridEntry parent, PropertyDescriptor propertyDescriptor, bool hide) 217public DropDownEditablePropertyDescriptorGridEntry(PropertyGrid ownerGrid, GridEntry parent, PropertyDescriptor propertyDescriptor, bool hide)
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
53PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[0];
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (1)
130.Returns((PropertyDescriptor)null)
System\Windows\Forms\PropertyGridTests.cs (40)
378PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)]; 394PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)]; 752PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategoryForeColor)]; 768PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategoryForeColor)]; 830PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategorySplitterColor)]; 846PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategorySplitterColor)]; 915PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsActiveLinkColor)]; 931PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsActiveLinkColor)]; 993PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBackColor)]; 1009PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBackColor)]; 1078PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBorderColor)]; 1094PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBorderColor)]; 1163PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsDisabledLinkColor)]; 1179PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsDisabledLinkColor)]; 1241PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsForeColor)]; 1257PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsForeColor)]; 1326PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsLinkColor)]; 1342PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsLinkColor)]; 1490PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.DisabledItemForeColor)]; 1506PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.DisabledItemForeColor)]; 1703PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)]; 1719PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)]; 1781PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBackColor)]; 1797PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBackColor)]; 1866PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBorderColor)]; 1882PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBorderColor)]; 1944PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpForeColor)]; 1960PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpForeColor)]; 2200PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)]; 2216PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)]; 2447PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusBackColor)]; 2463PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusBackColor)]; 2525PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusForeColor)]; 2541PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusForeColor)]; 3251PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)]; 3267PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)]; 3336PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBorderColor)]; 3352PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBorderColor)]; 3421PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)]; 3437PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)];
System\Windows\Forms\PropertyValueChangedEventArgsTests.cs (1)
36public override PropertyDescriptor PropertyDescriptor { get; }
System\Windows\Forms\ScrollableControlTests.cs (4)
416PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)]; 440PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)]; 657PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMinSize)]; 681PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMinSize)];
System\Windows\Forms\SelectedGridItemChangedEventArgsTests.cs (1)
38public override PropertyDescriptor PropertyDescriptor { get; }
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\StatusStripTests.cs (2)
549PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)]; 577PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\TabControlTests.cs (4)
1557PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)]; 1581PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)]; 1766PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.Padding)]; 1790PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.Padding)];
System\Windows\Forms\TableLayoutPanelTests.cs (3)
336PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TableLayoutPanel))[nameof(Control.Controls)]; 356PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TableLayoutPanel))[nameof(Control.Controls)]; 2154.Returns(new PropertyDescriptorCollection(Array.Empty<PropertyDescriptor>()));
System\Windows\Forms\TabPageTests.cs (2)
2364PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabPage))[nameof(TabPage.Location)]; 2392PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabPage))[nameof(TabPage.Location)];
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
1435PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)]; 1463PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)];
System\Windows\Forms\ToolStripControlHostTests.cs (16)
331PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 348PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 362PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 379PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 998PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1024PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1038PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1064PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1150PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)]; 1167PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)]; 1181PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)]; 1198PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)]; 1641PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)]; 1670PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)]; 1684PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)]; 1713PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1431PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 1447PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
System\Windows\Forms\ToolStripItemTests.cs (38)
1736PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.BackColor)]; 1752PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.BackColor)]; 2329PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)]; 2345PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)]; 3178PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Font)]; 3207PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Font)]; 3429PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ForeColor)]; 3445PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ForeColor)]; 4083PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)]; 4100PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)]; 4128PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)]; 4145PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)]; 4736PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4757PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4782PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4816PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4836PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4860PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 5223PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)]; 5250PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)]; 5281PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)]; 5315PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)]; 5342PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)]; 5373PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)]; 5780PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageTransparentColor)]; 5796PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageTransparentColor)]; 6097PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Margin)]; 6113PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Margin)]; 6912PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Padding)]; 6928PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Padding)]; 7414PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.RightToLeft)]; 7442PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.RightToLeft)]; 8772PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)]; 8796PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)]; 9073PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ToolTipText)]; 9100PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ToolTipText)]; 9596PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)]; 9612PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)];
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
386PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)]; 402PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)];
System\Windows\Forms\ToolStripTests.cs (4)
2204PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 2220PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 3375PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)]; 3403PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\ToolTipTests.cs (7)
186PropertyDescriptor automaticProperty = properties[nameof(ToolTip.AutomaticDelay)]; 187PropertyDescriptor initialProperty = properties[nameof(ToolTip.InitialDelay)]; 188PropertyDescriptor reshowProperty = properties[nameof(ToolTip.ReshowDelay)]; 189PropertyDescriptor autoPopProperty = properties[nameof(ToolTip.AutoPopDelay)]; 261PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolTip))[nameof(ToolTip.AutoPopDelay)]; 386PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolTip))[nameof(ToolTip.InitialDelay)]; 471PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolTip))[nameof(ToolTip.ReshowDelay)];
System\Windows\Forms\TreeNodeTests.cs (4)
420PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)]; 436PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)]; 861PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)]; 877PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)];
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
410PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(textBox)["Text"];
System.Xaml (6)
System\Windows\Markup\IValueSerializerContext.cs (1)
35ValueSerializer GetValueSerializerFor(PropertyDescriptor descriptor);
System\Windows\Markup\ValueSerializer.cs (2)
166public static ValueSerializer? GetSerializerFor(PropertyDescriptor descriptor) 219public static ValueSerializer? GetSerializerFor(PropertyDescriptor descriptor, IValueSerializerContext? context)
System\Xaml\Context\ServiceProviderContext.cs (1)
109PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Xaml\XamlObjectReader.cs (2)
2812public PropertyDescriptor PropertyDescriptor 2841public ValueSerializer GetValueSerializerFor(PropertyDescriptor propertyDescriptor)
System.Xaml.Tests (13)
System\Windows\Markup\NameReferenceConverterTests.cs (1)
201public PropertyDescriptor PropertyDescriptor => throw new NotImplementedException();
System\Windows\Markup\ValueSerializerTests.cs (11)
257PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithDateTimeProperty))[0]; 265PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0]; 273PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithConvertibleProperty))[0]; 285PropertyDescriptor descriptor = TypeDescriptor.GetProperties(type)[0]; 293Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.GetSerializerFor((PropertyDescriptor)null!)); 294Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.GetSerializerFor((PropertyDescriptor)null!, null)); 300PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithInvalidValueSerializerAttributeProperty))[0]; 308PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0]; 317PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0]; 443public ValueSerializer? GetValueSerializerFor(PropertyDescriptor type) => SerializerResult; 449public PropertyDescriptor PropertyDescriptor => throw new NotImplementedException();
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
48public PropertyDescriptor PropertyDescriptor => throw new NotImplementedException();