23 types derived from PropertyDescriptor
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
6
internal sealed class MetadataPropertyDescriptorWrapper :
PropertyDescriptor
System.ComponentModel.TypeConverter (6)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
66
internal abstract class XPropertyDescriptor<T, TProperty> :
PropertyDescriptor
where T : XObject
System\ComponentModel\Design\DesignerOptionService.cs (2)
401
private sealed class WrappedPropertyDescriptor :
PropertyDescriptor
469
private sealed class OptionPropertyDescriptor :
PropertyDescriptor
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
13
internal sealed class ExtendedPropertyDescriptor :
PropertyDescriptor
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
47
internal sealed class ReflectPropertyDescriptor :
PropertyDescriptor
System\ComponentModel\TypeConverter.cs (1)
344
protected abstract class SimplePropertyDescriptor :
PropertyDescriptor
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
8
internal sealed class DbConnectionStringBuilderDescriptor :
PropertyDescriptor
System\Data\Common\DbEnumerator.cs (1)
111
private sealed class DbColumnDescriptor :
PropertyDescriptor
System\Data\DataColumnPropertyDescriptor.cs (1)
11
internal sealed class DataColumnPropertyDescriptor :
PropertyDescriptor
System\Data\DataRelationPropertyDescriptor.cs (1)
9
internal sealed class DataRelationPropertyDescriptor :
PropertyDescriptor
System\Data\DataTablePropertyDescriptor.cs (1)
9
internal sealed class DataTablePropertyDescriptor :
PropertyDescriptor
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
14
internal class AxPropertyDescriptor :
PropertyDescriptor
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
27
internal unsafe partial class Com2PropertyDescriptor :
PropertyDescriptor
, ICloneable
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
12
internal partial class MergePropertyDescriptor :
PropertyDescriptor
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1118
private class SelectionWrapper :
PropertyDescriptor
, ICustomTypeDescriptor
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
19
private class EventPropertyDescriptor :
PropertyDescriptor
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
14
internal sealed class InheritedPropertyDescriptor :
PropertyDescriptor
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
989
private sealed class WrappedPropertyDescriptor :
PropertyDescriptor
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
12
private class CanResetSizePropertyDescriptor :
PropertyDescriptor
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1323
private class ColumnTypePropertyDescriptor :
PropertyDescriptor
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (1)
740
private class CustomPropertyDescriptor :
PropertyDescriptor
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
139
private class CustomPropertyDescriptor :
PropertyDescriptor
1538 references to PropertyDescriptor
DesignSurface (3)
CustomControls\CustomButtonDesignerActionList.cs (3)
49
PropertyDescriptor
dockProp = TypeDescriptor.GetProperties(Component)[nameof(CustomButton.BackColor)];
86
protected
PropertyDescriptor
GetProperty(string propertyName)
88
PropertyDescriptor
pd = TypeDescriptor.GetProperties(_control)[propertyName];
DesignSurfaceExt (4)
DesignSurfaceExt.cs (4)
122
PropertyDescriptor
pdS = pdc.Find("Size", false);
132
PropertyDescriptor
pdS = pdc.Find("Size", false);
170
PropertyDescriptor
pdS = pdc.Find("Size", false);
172
PropertyDescriptor
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)
122
public
PropertyDescriptor
PropertyDescriptor
PresentationCore.Tests (3)
System\Windows\Input\Command\KeyGestureConverter.Tests.cs (1)
224
public
PropertyDescriptor
? PropertyDescriptor => throw new NotImplementedException();
System\Windows\Input\Command\MouseGestureConverter.Tests.cs (1)
212
public
PropertyDescriptor
? PropertyDescriptor => throw new NotImplementedException();
System\Windows\Input\MouseActionConverter.Tests.cs (1)
192
public
PropertyDescriptor
? PropertyDescriptor => throw new NotImplementedException();
PresentationFramework (99)
MS\Internal\Data\ClrBindingWorker.cs (2)
775
PropertyDescriptor
pd;
781
if ((pd = info as
PropertyDescriptor
) != null)
MS\Internal\Data\DataBindEngine.cs (3)
410
internal object GetValue(object item,
PropertyDescriptor
pd, bool indexerIsNext)
418
PropertyDescriptor
pd = descriptor as
PropertyDescriptor
;
MS\Internal\Data\DefaultValueConverter.cs (1)
793
public
PropertyDescriptor
PropertyDescriptor { get { return null; } }
MS\Internal\Data\PropertyPathWorker.cs (14)
118
PropertyDescriptor
pd;
229
PropertyDescriptor
pd;
334
PropertyDescriptor
pd;
684
PropertyDescriptor
oldPD;
855
PropertyDescriptor
newPD;
1003
PropertyDescriptor
pd;
1004
if (level < 0 || (pd = _arySVS[level].info as
PropertyDescriptor
) == null)
1027
!(_arySVS[k].info is
PropertyDescriptor
))
1127
PropertyDescriptor
pd;
1298
if (cacheAccessor && info != null && !(info is
PropertyDescriptor
))
1549
void SetPropertyInfo(object info, out PropertyInfo pi, out
PropertyDescriptor
pd, out DependencyProperty dp, out DynamicPropertyAccessor dpa)
1561
pd = info as
PropertyDescriptor
;
1572
PropertyDescriptor
pd;
1660
PropertyDescriptor
pd;
MS\Internal\Data\ValueChangedEventManager.cs (21)
62
public static void AddListener(object source, IWeakEventListener listener,
PropertyDescriptor
pd)
73
public static void RemoveListener(object source, IWeakEventListener listener,
PropertyDescriptor
pd)
84
public static void AddHandler(object source, EventHandler<ValueChangedEventArgs> handler,
PropertyDescriptor
pd)
96
public static void RemoveHandler(object source, EventHandler<ValueChangedEventArgs> handler,
PropertyDescriptor
pd)
152
PropertyDescriptor
[] keys = new
PropertyDescriptor
[ic.Count];
214
_toRemove.Add((
PropertyDescriptor
)ide.Key);
222
foreach (
PropertyDescriptor
key in _toRemove)
294
private void PrivateAddListener(object source, IWeakEventListener listener,
PropertyDescriptor
pd)
302
private void PrivateRemoveListener(object source, IWeakEventListener listener,
PropertyDescriptor
pd)
310
private void PrivateAddHandler(object source, EventHandler<ValueChangedEventArgs> handler,
PropertyDescriptor
pd)
316
private void PrivateRemoveHandler(object source, EventHandler<ValueChangedEventArgs> handler,
PropertyDescriptor
pd)
321
private void AddListener(object source,
PropertyDescriptor
pd, IWeakEventListener listener, EventHandler<ValueChangedEventArgs> handler)
353
private void RemoveListener(object source,
PropertyDescriptor
pd, IWeakEventListener listener, EventHandler<ValueChangedEventArgs> handler)
385
List<
PropertyDescriptor
> _toRemove = new List<
PropertyDescriptor
>();
391
public ValueChangedRecord(ValueChangedEventManager manager, object source,
PropertyDescriptor
pd)
533
PropertyDescriptor
_pd;
547
internal ValueChangedEventArgs(
PropertyDescriptor
pd)
552
internal
PropertyDescriptor
PropertyDescriptor
557
private
PropertyDescriptor
_pd;
MS\Internal\Data\ValueTable.cs (13)
33
internal static bool ShouldCache(object item,
PropertyDescriptor
pd)
51
internal object GetValue(object item,
PropertyDescriptor
pd, bool indexerIsNext)
152
internal void RegisterForChanges(object item,
PropertyDescriptor
pd, DataBindEngine engine)
207
foreach (
PropertyDescriptor
pd1 in GetPropertiesForItem(item))
216
PropertyDescriptor
pd;
231
void InvalidateCache(object item,
PropertyDescriptor
pd)
242
IEnumerable<
PropertyDescriptor
> GetPropertiesForItem(object item)
244
List<
PropertyDescriptor
> result = new List<
PropertyDescriptor
>();
302
public ValueTableKey(object item,
PropertyDescriptor
pd)
318
public
PropertyDescriptor
PropertyDescriptor
320
get { return (
PropertyDescriptor
)_descriptor.Target; }
337
PropertyDescriptor
descriptor = this.PropertyDescriptor;
MS\Internal\Data\XDeferredAxisSource.cs (2)
45
internal XDeferredAxisSource(object component,
PropertyDescriptor
pd)
109
PropertyDescriptor
_propertyDescriptor; // the PD to obtain its elements or descendants
MS\Internal\SystemDataHelper.cs (2)
46
internal static bool IsDataSetCollectionProperty(
PropertyDescriptor
pd)
53
internal static object GetValue(object item,
PropertyDescriptor
pd, bool useFollowParent)
MS\Internal\SystemXmlLinqHelper.cs (2)
32
internal static bool IsXLinqCollectionProperty(
PropertyDescriptor
pd)
40
internal static bool IsXLinqNonIdempotentProperty(
PropertyDescriptor
pd)
MS\Internal\TraceData.cs (1)
283
PropertyDescriptor
pd => $"{pd.GetType().Name}({pd.Name})",
System\Windows\Controls\ContentPresenter.cs (1)
1149
PropertyDescriptor
ITypeDescriptorContext.PropertyDescriptor { get { return null; } }
System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (1)
107
typeof(
PropertyDescriptor
).IsAssignableFrom(value.GetType()) ||
System\Windows\Controls\DataGridColumn.cs (2)
1200
PropertyDescriptor
pd = itemProperty.Descriptor as
PropertyDescriptor
;
System\Windows\Data\BindingListCollectionView.cs (1)
2202
PropertyDescriptor
dd = pdc.Find(sorts[i].PropertyName, true);
System\Windows\Data\CollectionView.cs (2)
1480
PropertyDescriptor
pd;
1483
if ((pd = property as
PropertyDescriptor
) != null)
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
171
System.ComponentModel.
PropertyDescriptor
System.ComponentModel.ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
95
PropertyDescriptor
ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (1)
59
PropertyDescriptor
ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Primitives\ElementMarkupObject.cs (10)
96
foreach (
PropertyDescriptor
descriptor in TypeDescriptor.GetProperties(_instance))
202
private static bool ShouldSerialize(
PropertyDescriptor
pd, object instance, XamlDesignerSerializationManager manager)
567
private bool PropertyIsAttached(
PropertyDescriptor
descriptor)
657
PropertyDescriptor
ITypeDescriptorContext.PropertyDescriptor
668
PropertyDescriptor
descriptor = this.PropertyDescriptor;
739
internal ElementProperty(ElementMarkupObject obj,
PropertyDescriptor
descriptor) : base(obj)
755
public override
PropertyDescriptor
PropertyDescriptor
951
private
PropertyDescriptor
_descriptor;
1186
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor)
1237
public
PropertyDescriptor
PropertyDescriptor
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
142
public override
PropertyDescriptor
PropertyDescriptor
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (3)
128
public override
PropertyDescriptor
PropertyDescriptor
163
PropertyDescriptor
descriptor = DependencyPropertyDescriptor.FromProperty(_propertyValue.Property, _item.ObjectType);
215
private
PropertyDescriptor
_descriptor;
System\Windows\Markup\Primitives\MarkupWriter.cs (3)
869
PropertyDescriptor
descriptor = property.PropertyDescriptor;
1458
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor)
1493
public
PropertyDescriptor
PropertyDescriptor
System\Windows\Markup\TypeContext.cs (1)
122
public
PropertyDescriptor
PropertyDescriptor
System\Windows\Media\Animation\Storyboard.cs (2)
779
else if( propertyAccessor is
PropertyDescriptor
)
781
return ((
PropertyDescriptor
)propertyAccessor).Name;
System\Windows\PropertyPath.cs (6)
173
PropertyDescriptor
pd;
194
out DependencyProperty dp, out PropertyInfo pi, out
PropertyDescriptor
pd, out DynamicObjectAccessor doa)
207
else if ((pd = accessor as
PropertyDescriptor
) != null)
929
accessor is
PropertyDescriptor
||
938
PropertyDescriptor
pd;
945
else if ((pd = accessor as
PropertyDescriptor
) != null)
System\Windows\PropertyPathConverter.cs (1)
196
PropertyDescriptor
pd;
System\Windows\TemplateContent.cs (1)
1510
PropertyDescriptor
ITypeDescriptorContext.PropertyDescriptor
PresentationFramework-SystemData (3)
SystemDataExtension.cs (3)
46
internal override bool IsDataSetCollectionProperty(
PropertyDescriptor
pd)
89
internal override object GetValue(object item,
PropertyDescriptor
pd, bool useFollowParent)
150
private object GetRawValue(object item,
PropertyDescriptor
pd, bool useFollowParent)
PresentationFramework-SystemXmlLinq (2)
SystemXmlLinqExtension.cs (2)
46
internal override bool IsXLinqCollectionProperty(
PropertyDescriptor
pd)
60
internal override bool IsXLinqNonIdempotentProperty(
PropertyDescriptor
pd)
ReachFramework (1)
Serialization\Manager\XpsTokenContext.cs (1)
168
PropertyDescriptor
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)
53
List<
PropertyDescriptor
> tempPropertyDescriptors = new List<
PropertyDescriptor
>();
54
foreach (
PropertyDescriptor
propDescriptor in originalCollection)
57
PropertyDescriptor
descriptor = propDescriptor;
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (2)
8
private readonly
PropertyDescriptor
_descriptor;
11
public MetadataPropertyDescriptorWrapper(
PropertyDescriptor
descriptor, Attribute[] newAttributes)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (3)
216
foreach (
PropertyDescriptor
property in properties)
226
/// Method to extract only the explicitly specified attributes from a <see cref="
PropertyDescriptor
"/>
235
private static AttributeCollection GetExplicitAttributes(
PropertyDescriptor
propertyDescriptor)
System\ComponentModel\DataAnnotations\Validator.cs (1)
521
foreach (
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)]
58
foreach (
PropertyDescriptor
property in base.GetProperties(attributes))
System\ComponentModel\ArrayConverter.cs (2)
45
PropertyDescriptor
[] props = new
PropertyDescriptor
[length];
System\ComponentModel\BindingList.cs (9)
401
PropertyDescriptor
? IBindingList.SortProperty => SortPropertyCore;
403
protected virtual
PropertyDescriptor
? SortPropertyCore => null;
409
void IBindingList.ApplySort(
PropertyDescriptor
prop, ListSortDirection direction)
414
protected virtual void ApplySortCore(
PropertyDescriptor
prop, ListSortDirection direction)
426
int IBindingList.Find(
PropertyDescriptor
prop, object key) => FindCore(prop, key);
428
protected virtual int FindCore(
PropertyDescriptor
prop, object key)
433
void IBindingList.AddIndex(
PropertyDescriptor
prop)
438
void IBindingList.RemoveIndex(
PropertyDescriptor
prop)
522
PropertyDescriptor
? pd = _itemTypeProperties.Find(e.PropertyName, true);
System\ComponentModel\ComponentResourceManager.cs (1)
172
PropertyDescriptor
? prop = TypeDescriptorGetProperties(value).Find(propName, IgnoreCase);
System\ComponentModel\CustomTypeDescriptor.cs (5)
124
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
125
public virtual
PropertyDescriptor
? GetDefaultProperty() => _parent?.GetDefaultProperty();
196
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
244
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
262
public virtual object? GetPropertyOwner(
PropertyDescriptor
? pd) => _parent?.GetPropertyOwner(pd);
System\ComponentModel\Design\DesignerOptionService.cs (8)
53
private
PropertyDescriptor
? GetOptionProperty(string pageName, string valueName)
92
PropertyDescriptor
? optionProp = GetOptionProperty(pageName, valueName);
102
PropertyDescriptor
? optionProp = GetOptionProperty(pageName, valueName);
185
foreach (
PropertyDescriptor
prop in props)
201
var propArray = new
PropertyDescriptor
[propList.Count];
404
private readonly
PropertyDescriptor
_property;
406
internal WrappedPropertyDescriptor(
PropertyDescriptor
property, object target) : base(property.Name, null)
453
foreach (
PropertyDescriptor
p in options.Properties)
System\ComponentModel\Design\IEventPropertyService.cs (2)
30
EventDescriptor? GetEvent(
PropertyDescriptor
property);
40
PropertyDescriptor
GetEventProperty(EventDescriptor e);
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
45
public ExtendedPropertyDescriptor(
PropertyDescriptor
extender, Attribute[] attributes) : base(extender, attributes)
System\ComponentModel\ExtenderProvidedPropertyAttribute.cs (2)
19
internal static ExtenderProvidedPropertyAttribute Create(
PropertyDescriptor
? extenderProperty, Type? receiverType, IExtenderProvider? provider)
39
public
PropertyDescriptor
? ExtenderProperty { get; private set; }
System\ComponentModel\IBindingList.cs (5)
27
PropertyDescriptor
? SortProperty { get; }
33
void AddIndex(
PropertyDescriptor
property);
35
void ApplySort(
PropertyDescriptor
property, ListSortDirection direction);
37
int Find(
PropertyDescriptor
property, object key);
39
void RemoveIndex(
PropertyDescriptor
property);
System\ComponentModel\IComNativeDescriptorHandler.cs (1)
20
PropertyDescriptor
GetDefaultProperty(object component);
System\ComponentModel\ICustomTypeDescriptor.cs (5)
44
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
45
PropertyDescriptor
? GetDefaultProperty();
68
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
74
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
80
object? GetPropertyOwner(
PropertyDescriptor
? pd);
System\ComponentModel\ITypeDescriptorContext.cs (1)
25
PropertyDescriptor
? PropertyDescriptor { get; }
System\ComponentModel\ITypedList.cs (2)
8
string GetListName(
PropertyDescriptor
[]? listAccessors);
10
PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[]? listAccessors);
System\ComponentModel\ListChangedEventArgs.cs (3)
15
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex,
PropertyDescriptor
? propDesc) : this(listChangedType, newIndex)
21
public ListChangedEventArgs(ListChangedType listChangedType,
PropertyDescriptor
? propDesc)
40
public
PropertyDescriptor
? PropertyDescriptor { get; }
System\ComponentModel\ListSortDescription.cs (2)
8
public ListSortDescription(
PropertyDescriptor
? property, ListSortDirection direction)
14
public
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
'/>
210
if (obj is
PropertyDescriptor
pd && pd.NameHashCode == NameHashCode
System\ComponentModel\PropertyDescriptorCollection.cs (40)
23
private
PropertyDescriptor
[] _properties;
36
public PropertyDescriptorCollection(
PropertyDescriptor
[]? properties)
40
_properties = Array.Empty<
PropertyDescriptor
>();
55
public PropertyDescriptorCollection(
PropertyDescriptor
[]? properties, bool readOnly) : this(properties)
60
private PropertyDescriptorCollection(
PropertyDescriptor
[] properties, int propCount, string[]? namedSort, IComparer? comparer)
81
public virtual
PropertyDescriptor
this[int index]
97
public virtual
PropertyDescriptor
? this[string name] => Find(name, false);
99
public int Add(
PropertyDescriptor
value)
122
public bool Contains(
PropertyDescriptor
value) => IndexOf(value) >= 0;
137
PropertyDescriptor
[] newProps = new
PropertyDescriptor
[Count];
160
_properties = new
PropertyDescriptor
[sizeNeeded];
167
PropertyDescriptor
[] newProps = new
PropertyDescriptor
[newSize];
175
public virtual
PropertyDescriptor
? Find(string name, bool ignoreCase)
179
PropertyDescriptor
? p = null;
200
return (
PropertyDescriptor
)cached;
232
public int IndexOf(
PropertyDescriptor
? value) => Array.IndexOf(_properties, value, 0, Count);
234
public void Insert(int index,
PropertyDescriptor
value)
250
public void Remove(
PropertyDescriptor
? value)
332
List<
PropertyDescriptor
?> propList = new List<
PropertyDescriptor
?>(_properties);
340
PropertyDescriptor
? currentProp = propList[j];
395
PropertyDescriptor
[] enumProps = new
PropertyDescriptor
[Count];
418
if (!(value is
PropertyDescriptor
newProp))
458
if (value != null && !(value is
PropertyDescriptor
))
492
Add((
PropertyDescriptor
)value!);
497
_properties[index] = (
PropertyDescriptor
)value!;
526
PropertyDescriptor
[] newProps = new
PropertyDescriptor
[Count];
541
PropertyDescriptor
? pd = this[(string)key];
549
int IList.Add(object? value) => Add((
PropertyDescriptor
)value!);
551
bool IList.Contains(object? value) => Contains((
PropertyDescriptor
)value!);
553
int IList.IndexOf(object? value) => IndexOf((
PropertyDescriptor
)value!);
555
void IList.Insert(int index, object? value) => Insert(index, (
PropertyDescriptor
)value!);
561
void IList.Remove(object? value) => Remove((
PropertyDescriptor
?)value);
579
if (value != null && !(value is
PropertyDescriptor
))
585
_properties[index] = (
PropertyDescriptor
)value!;
605
PropertyDescriptor
curProp = _owner[_index];
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
162
PropertyDescriptor
oldReflectPropertyDescriptor,
566
internal void ExtenderResetValue(IExtenderProvider provider, object component,
PropertyDescriptor
notifyDesc)
622
internal 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.")]
398
internal
PropertyDescriptor
? GetDefaultProperty([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, object? instance)
525
internal static
PropertyDescriptor
? GetExtendedDefaultProperty()
599
List<
PropertyDescriptor
>? propertyList = null;
603
PropertyDescriptor
[] propertyArray = ReflectGetExtendedProperties(extenders[idx]);
605
propertyList ??= new List<
PropertyDescriptor
>(propertyArray.Length * extenders.Length);
609
PropertyDescriptor
prop = propertyArray[propIdx];
632
PropertyDescriptor
[] fullArray = new
PropertyDescriptor
[propertyList.Count];
879
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
1236
private static
PropertyDescriptor
[] ReflectGetExtendedProperties(IExtenderProvider provider)
1239
PropertyDescriptor
[]? properties;
1243
properties = cache[s_extenderProviderPropertiesKey] as
PropertyDescriptor
[];
1308
properties = new
PropertyDescriptor
[extendedProperties.Length];
1328
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
1329
private static
PropertyDescriptor
[] ReflectGetProperties(
1333
private static
PropertyDescriptor
[] ReflectGetPropertiesFromRegisteredType(Type type)
1338
private static
PropertyDescriptor
[] ReflectGetPropertiesImpl(Type type)
1341
PropertyDescriptor
[]? properties = (
PropertyDescriptor
[]?)propertyCache[type];
1349
properties = (
PropertyDescriptor
[]?)propertyCache[type];
1363
properties = new
PropertyDescriptor
[propertyInfos.Length];
1401
PropertyDescriptor
[] newProperties = new
PropertyDescriptor
[propertyCount];
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (8)
281
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " The Type of instance cannot be statically discovered.")]
282
internal
PropertyDescriptor
? GetDefaultProperty(object? instance)
470
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
478
PropertyDescriptor
[] propertyArray;
479
Dictionary<string,
PropertyDescriptor
> propertyList = new Dictionary<string,
PropertyDescriptor
>(10);
486
foreach (
PropertyDescriptor
p in propertyArray)
494
propertyArray = new
PropertyDescriptor
[propertyList.Count];
System\ComponentModel\TypeDescriptor.cs (51)
510
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
511
public static
PropertyDescriptor
CreateProperty(
524
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
525
public static
PropertyDescriptor
CreateProperty(
527
PropertyDescriptor
oldPropertyDescriptor,
930
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
931
public static
PropertyDescriptor
? GetDefaultProperty(
946
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")]
947
public static
PropertyDescriptor
? GetDefaultProperty(object component) => GetDefaultProperty(component, false);
953
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")]
954
public static
PropertyDescriptor
? GetDefaultProperty(object component, bool noCustomTypeDesc)
1327
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
1353
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
1371
var 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)]
1510
PropertyDescriptor
[] propArray = new
PropertyDescriptor
[results.Count];
1579
PropertyDescriptor
[] propArray = new
PropertyDescriptor
[results.Count];
1917
PropertyDescriptor
[] propArray = new
PropertyDescriptor
[list.Count];
2101
PropertyDescriptor
[] propArray = new
PropertyDescriptor
[list.Count];
2108
throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(
PropertyDescriptor
).FullName));
2256
PropertyDescriptor
[] propArray = new
PropertyDescriptor
[list.Count];
2830
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
2831
PropertyDescriptor
ICustomTypeDescriptor.GetDefaultProperty()
2853
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
2859
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
2865
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd) => _instance;
3141
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
3142
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty()
3186
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
3198
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
3212
object? ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd)
3564
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
3565
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty()
3676
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
3719
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
3747
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd)
3952
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
3953
public
PropertyDescriptor
? GetDefaultProperty()
3959
PropertyDescriptor
? defaultProperty;
4088
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage)]
4146
[RequiresUnreferencedCode(
PropertyDescriptor
.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
4174
public object? GetPropertyOwner(
PropertyDescriptor
? pd)
System.Data.Common (52)
System\Data\Common\DataRecordInternal.cs (2)
333
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty()
365
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd)
System\Data\Common\DbConnectionStringBuilder.cs (12)
413
PropertyDescriptor
[] properties = new
PropertyDescriptor
[descriptors.Count];
442
foreach (
PropertyDescriptor
reflected in TypeDescriptor.GetProperties(this, true))
451
PropertyDescriptor
descriptor = new DbConnectionStringBuilderDescriptor(reflected.Name,
523
PropertyDescriptor
descriptor = new DbConnectionStringBuilderDescriptor(keyword,
550
PropertyDescriptor
[] propertiesArray = new
PropertyDescriptor
[propertyDescriptors.Count];
556
foreach (
PropertyDescriptor
property in propertyDescriptors)
581
PropertyDescriptor
[] filteredPropertiesArray = new
PropertyDescriptor
[index];
622
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty()
655
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd)
System\Data\Common\DbDataRecord.cs (2)
86
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty() => null;
104
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd) => this;
System\Data\Common\DbEnumerator.cs (2)
95
PropertyDescriptor
[] props = new
PropertyDescriptor
[_reader.FieldCount];
System\Data\DataRowView.cs (2)
243
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty() => null;
260
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd) => this;
System\Data\DataSet.cs (2)
3398
internal static DataTable? FindTable(DataTable? baseTable,
PropertyDescriptor
[] props, int propStart)
3405
PropertyDescriptor
currentProp = props[propStart];
System\Data\DataTable.cs (2)
4910
PropertyDescriptor
[] props = new
PropertyDescriptor
[columnsCount + relationsCount];
System\Data\DataView.cs (11)
951
PropertyDescriptor
? IBindingList.SortProperty => GetSortProperty();
953
internal
PropertyDescriptor
? GetSortProperty()
992
void IBindingList.AddIndex(
PropertyDescriptor
property) => GetFindIndex(property.Name, keepIndex: true);
994
void IBindingList.ApplySort(
PropertyDescriptor
property, ListSortDirection direction)
999
int IBindingList.Find(
PropertyDescriptor
property, object key)
1038
void IBindingList.RemoveIndex(
PropertyDescriptor
property)
1069
PropertyDescriptor
? property = sort.PropertyDescriptor;
1073
throw ExceptionBuilder.ArgumentNull(nameof(
PropertyDescriptor
));
1097
private static string CreateSortString(
PropertyDescriptor
property, ListSortDirection direction)
1154
string System.ComponentModel.ITypedList.GetListName(
PropertyDescriptor
[]? listAccessors)
1178
PropertyDescriptorCollection System.ComponentModel.ITypedList.GetItemProperties(
PropertyDescriptor
[]? listAccessors)
System\Data\DataViewManager.cs (8)
221
PropertyDescriptor
IBindingList.SortProperty
233
void IBindingList.AddIndex(
PropertyDescriptor
property)
238
void IBindingList.ApplySort(
PropertyDescriptor
property, ListSortDirection direction)
243
int IBindingList.Find(
PropertyDescriptor
property, object key)
248
void IBindingList.RemoveIndex(
PropertyDescriptor
property)
259
string System.ComponentModel.ITypedList.GetListName(
PropertyDescriptor
[]? listAccessors)
282
PropertyDescriptorCollection System.ComponentModel.ITypedList.GetItemProperties(
PropertyDescriptor
[]? listAccessors)
332
PropertyDescriptor
? NullProp = null;
System\Data\DataViewManagerListItemTypeDescriptor.cs (4)
64
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty() => null;
116
PropertyDescriptor
[]? props = null;
121
props = new
PropertyDescriptor
[tableCount];
139
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd) => this;
System\Data\LinqDataView.cs (1)
247
PropertyDescriptor
? IBindingList.SortProperty
System\Data\xmlsaver.cs (2)
132
internal void AddXdoProperty(
PropertyDescriptor
pd, object instance, XmlElement root)
227
private static bool ContainsDesignerSerializationVisibleAttribute(
PropertyDescriptor
pd) => pd.Attributes.Contains(DesignerSerializationVisibilityAttribute.Visible);
System\Data\XMLSchema.cs (2)
42
PropertyDescriptor
? pd = TypeDescriptor.GetProperties(instance)[name];
289
PropertyDescriptor
? pd = TypeDescriptor.GetProperties(instance)[name];
System.Drawing.Common.Tests (2)
System\Drawing\FontConverterTests.cs (1)
106
foreach (
PropertyDescriptor
prop in props)
System\Drawing\Printing\MarginsConverterTests.cs (1)
152
public
PropertyDescriptor
PropertyDescriptor { get { return null; } }
System.Windows.Forms (195)
misc\ImageListUtils.cs (4)
11
public static
PropertyDescriptor
? GetImageListProperty(
PropertyDescriptor
? currentComponent, ref object instance)
26
PropertyDescriptor
? imageListProperty = null;
38
PropertyDescriptor
? 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.
37
PropertyValueUIItem[] GetPropertyUIValueItems(ITypeDescriptorContext context,
PropertyDescriptor
propDesc);
System\Drawing\Design\PropertyValueUIHandler.cs (2)
14
/// A <see cref="
PropertyDescriptor
" /> that represents the property being queried.
20
public delegate void PropertyValueUIHandler(ITypeDescriptorContext context,
PropertyDescriptor
propDesc, ArrayList valueUIItemList);
System\Drawing\Design\PropertyValueUIItemInvokeHandler.cs (1)
19
public delegate void PropertyValueUIItemInvokeHandler(ITypeDescriptorContext context,
PropertyDescriptor
descriptor, PropertyValueUIItem invokedItem);
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
16
private readonly
PropertyDescriptor
_baseDescriptor;
31
internal AxPropertyDescriptor(
PropertyDescriptor
baseDescriptor, AxHost owner) : base(baseDescriptor)
System\Windows\Forms\ActiveX\AxHost.cs (10)
127
private Dictionary<string,
PropertyDescriptor
>? _properties;
2479
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty()
2572
List<
PropertyDescriptor
> returnProperties = [];
2610
if (!_properties.TryGetValue(propName, out
PropertyDescriptor
? propDesc))
2612
PropertyDescriptor
? prop;
2657
List<
PropertyDescriptor
>? removeList = null;
2659
foreach (
PropertyDescriptor
prop in returnProperties)
2672
foreach (
PropertyDescriptor
prop in removeList)
2703
object? ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd)
2713
foreach (
PropertyDescriptor
prop in props)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
498
foreach (
PropertyDescriptor
p in props)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
974
private bool IsResourceProperty(
PropertyDescriptor
property)
1050
PropertyDescriptor
currentProperty = props[i];
1114
bool SetValue(
PropertyDescriptor
currentProperty, object data)
1504
PropertyDescriptor
currentProperty = props[i];
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (2)
59
PropertyDescriptor
[] descriptors = new
PropertyDescriptor
[properties.Count];
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (2)
44
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty() => _handler.GetDefaultProperty(_instance);
60
object? ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd) => _instance;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
258
internal
PropertyDescriptor
? GetDefaultProperty(object component)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (2)
26
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty() => null;
36
object? ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd) => null;
System\Windows\Forms\Control.cs (2)
12616
PropertyDescriptor
? sizeProperty = null;
12617
PropertyDescriptor
? locationProperty = null;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
168
PropertyDescriptor
? pd = TypeDescriptor.GetProperties(this)["UseVisualStyleBackColor"];
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (3)
214
GetSortingInformationFromBackend(out
PropertyDescriptor
? sortField, out SortOrder sortOrder);
307
GetSortingInformationFromBackend(out
PropertyDescriptor
? sortProperty, out SortOrder sortOrder);
972
private void GetSortingInformationFromBackend(out
PropertyDescriptor
? sortProperty, out SortOrder sortOrder)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (13)
224
private
PropertyDescriptor
? DisplayMemberProperty
226
get => Properties.GetValueOrDefault<
PropertyDescriptor
?>(s_propComboBoxCellDisplayMemberProp);
480
private
PropertyDescriptor
? ValueMemberProperty
482
get => Properties.GetValueOrDefault<
PropertyDescriptor
?>(s_propComboBoxCellValueMemberProp);
1062
PropertyDescriptor
? propDesc = TypeDescriptor.GetProperties(item).Find(DisplayMember, ignoreCase: true);
1071
PropertyDescriptor
? propDesc = TypeDescriptor.GetProperties(item).Find(ValueMember, ignoreCase: true);
1136
PropertyDescriptor
? propDesc = TypeDescriptor.GetProperties(item).Find(ValueMember, ignoreCase: true);
1146
PropertyDescriptor
? propDesc = TypeDescriptor.GetProperties(item).Find(DisplayMember, ignoreCase: true);
1359
PropertyDescriptor
? displayMemberProperty = props.Find(displayBindingMember.BindingField, true);
1390
PropertyDescriptor
? valueMemberProperty = props.Find(valueBindingMember.BindingField, true);
1406
private object? ItemFromComboBoxDataSource(
PropertyDescriptor
property, object key)
1455
PropertyDescriptor
? propDesc = TypeDescriptor.GetProperties(item!).Find(field, ignoreCase: true);
1473
PropertyDescriptor
? propDesc = TypeDescriptor.GetProperties(itemCandidate).Find(field, ignoreCase: true);
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
151
PropertyDescriptor
? displayMemberProperty = props.Find(_displayMember.BindingField, true);
378
PropertyDescriptor
? property = props.Find(propertyName, true);
441
PropertyDescriptor
? descriptor;
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
51
PropertyDescriptor
? listViewProp = listViewItemProps["ListView"];
62
PropertyDescriptor
? 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"/>.
59
public abstract
PropertyDescriptor
? PropertyDescriptor { get; }
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (9)
614
public override
PropertyDescriptor
? PropertyDescriptor => null;
1156
PropertyDescriptor
? property = TypeDescriptor.GetProperties(owner)[propertyName];
1300
PropertyDescriptor
? defaultProperty = null;
1324
var propertyDescriptors = new
PropertyDescriptor
[properties.Count];
1362
foreach (
PropertyDescriptor
property in properties)
2100
private static
PropertyDescriptor
[] SortParenProperties(
PropertyDescriptor
[] props)
2102
PropertyDescriptor
[]? newProperties = null;
2110
newProperties ??= 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.
25
PropertyDescriptor
propertyInfo,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (5)
14
private readonly
PropertyDescriptor
[] _descriptors;
22
public MergePropertyDescriptor(
PropertyDescriptor
[] descriptors)
45
foreach (
PropertyDescriptor
pd in _descriptors)
66
foreach (
PropertyDescriptor
pd in _descriptors)
82
public
PropertyDescriptor
this[int index] => _descriptors[index];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (2)
18
PropertyDescriptor
[] propertyDescriptors,
233
PropertyDescriptor
? propertyInfo = entry.PropertyDescriptor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyDescriptorComparer.cs (4)
16
var
a1 = obj1 as
PropertyDescriptor
;
17
var
a2 = obj2 as
PropertyDescriptor
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (17)
30
List<
PropertyDescriptor
[]>? commonProperties = GetCommonProperties(objects, presort: true, tab, parentEntry);
49
List<
PropertyDescriptor
[]>? properties = GetCommonProperties(objects.AsSpan(1), presort: true, tab, parentEntry);
52
List<
PropertyDescriptor
[]>? firstProperties = GetCommonProperties(objects.AsSpan(0, 1), presort: false, tab, parentEntry);
56
var firstPropertyDescriptors = new
PropertyDescriptor
[firstProperties.Count];
92
/// Returns a list of <see cref="
PropertyDescriptor
"/> arrays, one for each component.
94
private static List<
PropertyDescriptor
[]>? GetCommonProperties(
130
List<
PropertyDescriptor
[]> mergedList = [];
131
var matchArray = new
PropertyDescriptor
[objects.Length];
142
PropertyDescriptor
pivotProperty = objectProperties[0][i];
155
PropertyDescriptor
property = objectProperties[j][positions[j]];
219
mergedList.Add((
PropertyDescriptor
[])matchArray.Clone());
265
private static List<
PropertyDescriptor
[]> UnsortedMerge(
266
PropertyDescriptor
[] baseEntries,
267
List<
PropertyDescriptor
[]> sortedMergedEntries)
269
List<
PropertyDescriptor
[]> mergedEntries = [];
271
foreach (
PropertyDescriptor
basePropertyDescriptor in baseEntries)
285
PropertyDescriptor
propertyDescriptor = propertyDescriptors[0];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (2)
16
public override
PropertyDescriptor
? GetDefaultProperty(object obj)
19
PropertyDescriptor
? defaultProperty = base.GetDefaultProperty(obj);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
39
PropertyDescriptor
propertyDescriptor,
110
PropertyDescriptor
? componentProperty = TypeDescriptor.GetProperties(ownerType)[PropertyName!];
161
public sealed override
PropertyDescriptor
PropertyDescriptor { get; }
342
protected void Initialize(
PropertyDescriptor
propertyDescriptor)
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
125
PropertyDescriptor
? pd = TypeDescriptor.GetProperties(this)[nameof(UseVisualStyleBackColor)];
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (3)
81
PropertyDescriptor
? imageListProp = ImageListUtils.GetImageListProperty(context.PropertyDescriptor, ref instance);
87
foreach (
PropertyDescriptor
prop in props)
100
PropertyDescriptor
? parentProp = props[ParentImageListProperty];
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGrid.cs (2)
540
protected virtual DataGridColumnStyle CreateGridColumn(
PropertyDescriptor
prop, bool isDefault) => throw null;
542
protected virtual DataGridColumnStyle CreateGridColumn(
PropertyDescriptor
prop) => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridBoolColumn.cs (2)
25
public DataGridBoolColumn(
PropertyDescriptor
prop) => throw new PlatformNotSupportedException();
27
public DataGridBoolColumn(
PropertyDescriptor
prop, bool isDefault) => throw new PlatformNotSupportedException();
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridColumnStyle.cs (2)
29
public DataGridColumnStyle(
PropertyDescriptor
prop) => throw new PlatformNotSupportedException();
51
public virtual
PropertyDescriptor
PropertyDescriptor
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridTableStyle.cs (2)
351
protected internal virtual DataGridColumnStyle CreateGridColumn(
PropertyDescriptor
prop, bool isDefault) => throw null;
353
protected internal virtual DataGridColumnStyle CreateGridColumn(
PropertyDescriptor
prop) => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridTextBoxColumn.cs (5)
26
public DataGridTextBoxColumn(
PropertyDescriptor
prop) => throw new PlatformNotSupportedException();
28
public DataGridTextBoxColumn(
PropertyDescriptor
prop, string format) => throw new PlatformNotSupportedException();
30
public DataGridTextBoxColumn(
PropertyDescriptor
prop, string format, bool isDefault) => throw new PlatformNotSupportedException();
32
public DataGridTextBoxColumn(
PropertyDescriptor
prop, bool isDefault) => throw new PlatformNotSupportedException();
54
public override
PropertyDescriptor
PropertyDescriptor
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (2)
66
public DataGridColumnStyle this[
PropertyDescriptor
propertyDesciptor] => throw null;
80
public bool Contains(
PropertyDescriptor
propertyDescriptor) => throw null;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
735
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(this)["SelectionStyle"];
1068
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(this)["SelectionStyle"];
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
194
internal
PropertyDescriptor
? FieldInfo { get; private set; }
System\Windows\Forms\DataBinding\Binding.cs (4)
28
private
PropertyDescriptor
? _propInfo;
29
private
PropertyDescriptor
? _propIsNullInfo;
485
PropertyDescriptor
? tempPropInfo = null;
486
PropertyDescriptor
? tempPropIsNullInfo = null;
System\Windows\Forms\DataBinding\BindingContext.cs (1)
266
PropertyDescriptor
? prop = formerManager.GetItemProperties().Find(dataField, true)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (4)
72
internal abstract PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[]? listAccessors);
86
PropertyDescriptor
[] properties = new
PropertyDescriptor
[listAccessors.Count];
178
if (property.Name.Equals(((
PropertyDescriptor
)listAccessors[offset]!).Name))
System\Windows\Forms\DataBinding\BindingSource.cs (11)
650
PropertyDescriptor
? pd = (_itemShape?.Find(propertyName, true))
719
PropertyDescriptor
? dmProp = dsProps[_dataMember];
905
PropertyDescriptor
? dmProp = dsProps[_dataMember];
1003
PropertyDescriptor
? prop = props.Find(current, true)
1543
public virtual string GetListName(
PropertyDescriptor
[]? listAccessors) =>
1546
public virtual PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[]? listAccessors)
1699
public virtual
PropertyDescriptor
? SortProperty
1711
void IBindingList.AddIndex(
PropertyDescriptor
property)
1722
public virtual void ApplySort(
PropertyDescriptor
property, ListSortDirection sort)
1732
public virtual int Find(
PropertyDescriptor
prop, object key)
1742
void IBindingList.RemoveIndex(
PropertyDescriptor
prop)
System\Windows\Forms\DataBinding\CurrencyManager.cs (7)
518
internal void SetSort(
PropertyDescriptor
property, ListSortDirection sortDirection)
527
/// Gets a <see cref="
PropertyDescriptor
"/> for a CurrencyManager.
529
internal
PropertyDescriptor
? GetSortProperty()
555
internal int Find(
PropertyDescriptor
? property, object key)
599
PropertyDescriptor
[] properties = new
PropertyDescriptor
[listAccessors.Count];
607
internal override PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[]? listAccessors) =>
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
141
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(b)[constructorParameterProperty];
System\Windows\Forms\DataBinding\ListBindingHelper.cs (13)
48
PropertyDescriptor
? dmProp = dsProps.Find(dataMember, true)
75
public static string GetListName(object? list,
PropertyDescriptor
[]? listAccessors)
149
public static PropertyDescriptorCollection GetListItemProperties(object? list,
PropertyDescriptor
[]? listAccessors)
174
public static PropertyDescriptorCollection GetListItemProperties(object? dataSource, string? dataMember,
PropertyDescriptor
[]? listAccessors)
182
PropertyDescriptor
? dmProp = dsProps.Find(dataMember, true);
186
PropertyDescriptor
[] listAccessors2 = new
PropertyDescriptor
[len];
295
PropertyDescriptor
? dmProp = dsProps.Find(dataMember, true);
345
private static PropertyDescriptorCollection GetListItemPropertiesByType(
PropertyDescriptor
[] listAccessors, int startIndex)
381
private static PropertyDescriptorCollection GetListItemPropertiesByEnumerable(IEnumerable iEnumerable,
PropertyDescriptor
[] listAccessors, int startIndex)
446
private static PropertyDescriptorCollection GetListItemPropertiesByInstance(object? target,
PropertyDescriptor
[] listAccessors, int startIndex)
470
PropertyDescriptor
[]? accessors = null;
475
accessors = new
PropertyDescriptor
[accessorsCount];
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
13
private
PropertyDescriptor
? _propInfo;
63
internal override PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[]? listAccessors)
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (5)
16
private
PropertyDescriptor
_fieldInfo;
75
internal override PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[]? listAccessors)
77
PropertyDescriptor
[] accessors;
81
accessors = new
PropertyDescriptor
[listAccessors.Length + 1];
86
accessors = new
PropertyDescriptor
[1];
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (5)
12
private
PropertyDescriptor
_fieldInfo;
56
internal override PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[]? listAccessors)
58
PropertyDescriptor
[] accessors;
62
accessors = new
PropertyDescriptor
[listAccessors.Length + 1];
67
accessors = new
PropertyDescriptor
[1];
System\Windows\Forms\Design\EventsTab.cs (4)
33
public override
PropertyDescriptor
? GetDefaultProperty(object obj)
139
List<
PropertyDescriptor
>? matchingPropertyEvents = null;
140
foreach (
PropertyDescriptor
property in matchingComponentProperties)
163
var mergedEvents = new
PropertyDescriptor
[componentEventProperties.Count + matchingPropertyEvents.Count];
System\Windows\Forms\Design\PropertyTab.cs (1)
106
public virtual
PropertyDescriptor
? GetDefaultProperty(object component)
System\Windows\Forms\ImageIndexConverter.cs (3)
104
PropertyDescriptor
? imageListProp = ImageListUtils.GetImageListProperty(context.PropertyDescriptor, ref instance);
110
foreach (
PropertyDescriptor
prop in props)
123
PropertyDescriptor
? parentProp = props[ParentImageListProperty];
System\Windows\Forms\ImageKeyConverter.cs (3)
110
PropertyDescriptor
? imageListProp = ImageListUtils.GetImageListProperty(context.PropertyDescriptor, ref instance);
116
foreach (
PropertyDescriptor
prop in props)
129
PropertyDescriptor
? parentProp = props[ParentImageListProperty];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
512
PropertyDescriptor
? prop;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
49
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(tableControl)["Name"];
System.Windows.Forms.Design (443)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
91
foreach (
PropertyDescriptor
p in TypeDescriptor.GetProperties(type))
1258
PropertyDescriptor
ICustomTypeDescriptor.GetDefaultProperty() => this;
1307
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd) => this;
System\ComponentModel\Design\CollectionEditor.cs (1)
153
PropertyDescriptor
? property = TypeDescriptor.GetDefaultProperty(CollectionType);
System\ComponentModel\Design\ComponentDesigner.cs (11)
40
PropertyDescriptor
? defaultProperty = TypeDescriptor.GetDefaultProperty(_component);
279
PropertyDescriptor
? defaultPropEvent = ebs.GetEventProperty(defaultEvent);
414
PropertyDescriptor
[] values = new
PropertyDescriptor
[properties.Count];
417
foreach (
PropertyDescriptor
prop in values)
661
PropertyDescriptor
[] values = new
PropertyDescriptor
[properties.Values.Count];
664
foreach (
PropertyDescriptor
prop in values)
678
PropertyDescriptor
? newInnerProp = (
PropertyDescriptor
?)properties[de.Key];
711
&& properties?[SettingsKeyName] is
PropertyDescriptor
prop)
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (5)
15
private Dictionary<string,
PropertyDescriptor
>? _descriptors;
37
PropertyDescriptor
property = GetShadowedPropertyDescriptor(propertyName) ?? throw new ArgumentException("The requested property does not exist", nameof(propertyName));
56
private
PropertyDescriptor
? GetShadowedPropertyDescriptor(string propertyName)
60
if (!_descriptors.TryGetValue(propertyName, out
PropertyDescriptor
? descriptor))
85
PropertyDescriptor
shadowedPropertyDescriptor = GetShadowedPropertyDescriptor(propertyName) ?? throw new InvalidOperationException("Failed to retrieve the shadowed PropertyDescriptor");
System\ComponentModel\Design\DesignerActionPanel.cs (2)
407
private static bool IsReadOnlyProperty(
PropertyDescriptor
propertyDescriptor)
669
PropertyDescriptor
? pd = TypeDescriptor.GetProperties(list)[pti.MemberName]
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (2)
16
private
PropertyDescriptor
? _propDesc;
25
protected
PropertyDescriptor
PropertyDescriptor => _propDesc ??= TypeDescriptor.GetProperties(_actionList!)[PropertyItem!.MemberName]!;
System\ComponentModel\Design\DesignerActionPanel.TypeDescriptorContext.cs (2)
12
public TypeDescriptorContext(IServiceProvider serviceProvider,
PropertyDescriptor
propertyDescriptor, object instance)
25
public
PropertyDescriptor
PropertyDescriptor { get; }
System\ComponentModel\Design\DesignerActionUIService.cs (1)
77
PropertyDescriptor
? p = opts.Options.Properties["ObjectBoundSmartTagAutoShow"];
System\ComponentModel\Design\EventBindingService.cs (6)
131
EventDescriptor? IEventBindingService.GetEvent(
PropertyDescriptor
property)
176
List<
PropertyDescriptor
> props = new(events.Count);
187
PropertyDescriptor
prop = new EventPropertyDescriptor(events[i]!, this);
197
PropertyDescriptor
IEventBindingService.GetEventProperty(EventDescriptor e)
201
PropertyDescriptor
prop = new EventPropertyDescriptor(e, this);
233
PropertyDescriptor
prop = ((IEventBindingService)this).GetEventProperty(e);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (3)
16
private
PropertyDescriptor
_propertyDescriptor;
23
public InheritedPropertyDescriptor(
PropertyDescriptor
propertyDescriptor, object component) : base(propertyDescriptor, [])
121
internal
PropertyDescriptor
PropertyDescriptor
System\ComponentModel\Design\ReferenceService.cs (1)
47
foreach (
PropertyDescriptor
property in TypeDescriptor.GetProperties(reference, s_attributes))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (8)
156
PropertyDescriptor
? prop = props[propName];
189
PropertyDescriptor
? prop = props[stateEntry.Key];
423
PropertyDescriptor
? prop = eventProps[eventName];
444
PropertyDescriptor
? modifierProp = TypeDescriptor.GetProperties(comp)["Modifiers"];
545
if (md._member is
PropertyDescriptor
prop && prop.PropertyType.IsSerializable)
581
foreach (
PropertyDescriptor
prop in props)
597
foreach (
PropertyDescriptor
eventProp in events)
617
if (md._member is
PropertyDescriptor
prop && !prop.ShouldSerializeValue(data._value))
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (2)
144
if (!typeof(
PropertyDescriptor
).IsAssignableFrom(objectType))
173
if (!manager.TryGetContext(out
PropertyDescriptor
? serializingProperty) || !serializingProperty.IsLocalizable)
System\ComponentModel\Design\Serialization\CodeDomSerializationProvider.cs (1)
106
if (typeof(
PropertyDescriptor
).IsAssignableFrom(objectType))
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (3)
67
foreach (
PropertyDescriptor
prop in props)
244
if (member is
PropertyDescriptor
property)
349
foreach (
PropertyDescriptor
prop in props)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (12)
376
PropertyDescriptor
? property = ourProperties[propertyName];
501
PropertyDescriptor
prop = evtSvc.GetEventProperty(evt);
1236
PropertyDescriptor
prop = evtSvc.GetEventProperty(evt);
1499
PropertyDescriptor
? prop = GetPropertiesHelper(manager, target, null)[propertyReferenceEx.PropertyName];
1548
PropertyDescriptor
? p = properties[propertyReferenceEx.PropertyName];
1589
PropertyDescriptor
? rhsProp = GetPropertiesHelper(manager, rhsPropTarget, null)[rhsPropRef.PropertyName];
2152
foreach (
PropertyDescriptor
property in properties)
2174
PropertyDescriptor
[] propArray = new
PropertyDescriptor
[props.Count];
2179
PropertyDescriptor
? filterProp = manager.Properties["FilteredProperties"];
2204
foreach (
PropertyDescriptor
property in props)
2246
protected void SerializeProperty(IDesignerSerializationManager manager, CodeStatementCollection statements, object value,
PropertyDescriptor
propertyToSerialize)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (4)
147
manager.TryGetContext(out
PropertyDescriptor
? property) && property.PropertyType == context.ExpressionType)
658
PropertyDescriptor
? clearProperty = manager.Properties["ClearCollections"];
666
PropertyDescriptor
? property = manager.GetContext<
PropertyDescriptor
>();
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
30
PropertyDescriptor
? componentCacheProp = options.Options.Properties["UseOptimizedCodeGeneration"];
System\ComponentModel\Design\Serialization\ComponentCache.ResourceEntry.cs (2)
14
PropertyDescriptor
? propertyDescriptor,
22
public readonly
PropertyDescriptor
? PropertyDescriptor = propertyDescriptor;
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (3)
65
foreach (
PropertyDescriptor
property in props)
180
PropertyDescriptor
? generateProp = props["GenerateMember"];
220
PropertyDescriptor
? modifiersProp = props["Modifiers"];
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (5)
627
private static WrappedPropertyDescriptor WrapProperty(
PropertyDescriptor
property, object owner)
665
PropertyDescriptor
[] propArray;
673
propArray = new
PropertyDescriptor
[props.Count];
992
private readonly
PropertyDescriptor
_property;
994
internal WrappedPropertyDescriptor(
PropertyDescriptor
property, object target) : base(property.Name, null)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
42
PropertyDescriptor
prop = eventBindings.GetEventProperty(eventToSerialize);
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (3)
66
PropertyDescriptor
? descriptor = (
PropertyDescriptor
?)manager.Context[typeof(
PropertyDescriptor
)];
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (6)
23
private static object? GetPropertyValue(IDesignerSerializationManager manager,
PropertyDescriptor
property, object value, out bool validValue)
89
if (descriptor is not
PropertyDescriptor
propertyToSerialize)
130
private void SerializeContentProperty(IDesignerSerializationManager manager, object value,
PropertyDescriptor
property, bool isExtender, CodeStatementCollection statements)
224
private void SerializeExtenderProperty(IDesignerSerializationManager manager, object value,
PropertyDescriptor
property, CodeStatementCollection statements)
282
private void SerializeNormalProperty(IDesignerSerializationManager manager, object value,
PropertyDescriptor
property, CodeStatementCollection statements)
365
if (descriptor is not
PropertyDescriptor
propertyToSerialize)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (2)
150
manager.GetContext<
PropertyDescriptor
>(),
674
if (manager.TryGetContext(out
PropertyDescriptor
? prop))
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
54
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(comp)["LoadLanguage"];
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
143
PropertyDescriptor
? supportGenerate = manager.Properties["SupportsStatementGeneration"];
306
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(value)["Modifiers"];
System\ComponentModel\Design\ToolStripContainerActionList.cs (7)
34
PropertyDescriptor
? getProperty = TypeDescriptor.GetProperties(component)?[propertyName];
55
PropertyDescriptor
? visibleProperty = TypeDescriptor.GetProperties(control)["Visible"];
73
PropertyDescriptor
? changingProperty = TypeDescriptor.GetProperties(component)[propertyName];
91
PropertyDescriptor
? dockProperty = TypeDescriptor.GetProperties(_toolStripContainer)["Dock"];
124
PropertyDescriptor
? dockProp = TypeDescriptor.GetProperties(_toolStripContainer)["Dock"];
143
PropertyDescriptor
? autoScrollProp = TypeDescriptor.GetProperties(newParent)["AutoScroll"];
171
PropertyDescriptor
? controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\ComponentModel\Design\UndoEngine.cs (1)
453
foreach (
PropertyDescriptor
prop in props)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (7)
237
PropertyDescriptor
propLoc = TypeDescriptor.GetProperties(currentControl)["Visible"];
264
PropertyDescriptor
propLoc = TypeDescriptor.GetProperties(_dragComponents[dragComponentIndex].dragComponent)["Location"];
341
PropertyDescriptor
targetProp = TypeDescriptor.GetProperties(dragTarget)["Controls"];
342
PropertyDescriptor
sourceProp = TypeDescriptor.GetProperties(dragSource)["Controls"];
460
PropertyDescriptor
propLoc = TypeDescriptor.GetProperties(primaryComponent)["Location"];
877
PropertyDescriptor
snapProp = TypeDescriptor.GetProperties(parentControl)["SnapToGrid"];
880
PropertyDescriptor
gridProp = TypeDescriptor.GetProperties(parentControl)["GridSize"];
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (14)
266
PropertyDescriptor
snapProp = TypeDescriptor.GetProperties(control.Parent)["SnapToGrid"];
269
PropertyDescriptor
gridProp = TypeDescriptor.GetProperties(control.Parent)["GridSize"];
330
PropertyDescriptor
prop = TypeDescriptor.GetProperties(control)["Locked"];
426
PropertyDescriptor
propIntegralHeight = TypeDescriptor.GetProperties(control)["IntegralHeight"];
432
PropertyDescriptor
propItemHeight = TypeDescriptor.GetProperties(control)["ItemHeight"];
510
PropertyDescriptor
propWidth = null;
511
PropertyDescriptor
propHeight = null;
512
PropertyDescriptor
propTop = null;
513
PropertyDescriptor
propLeft = null;
568
PropertyDescriptor
propIntegralHeight = TypeDescriptor.GetProperties(targetControl)["IntegralHeight"];
924
PropertyDescriptor
propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Width"];
925
PropertyDescriptor
propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Height"];
926
PropertyDescriptor
propTop = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Top"];
927
PropertyDescriptor
propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Left"];
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
82
PropertyDescriptor
? p = options?.Options.Properties["UseSmartTags"];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (5)
21
private
PropertyDescriptor
_resizeProp; // cached property descriptor representing either the row or column styles
22
private
PropertyDescriptor
_changedProp; // cached property descriptor that refers to the RowSTyles or ColumnStyles collection.
323
PropertyDescriptor
prop = TypeDescriptor.GetProperties(_styles[i])[isColumn ? "Width" : "Height"];
331
PropertyDescriptor
prop = TypeDescriptor.GetProperties(_styles[absIndex])[isColumn ? "Width" : "Height"];
412
public
PropertyDescriptor
styleProp;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
164
PropertyDescriptor
? controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
84
PropertyDescriptor
? propertyDescriptor = TypeDescriptor.GetProperties(navigator)[itemName];
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
63
PropertyDescriptor
? propertyDescriptor = propertyDescriptorCollection?["DataMember"];
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
25
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(Component)["UseVisualStyleBackColor"];
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
65
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\CollectionEditVerbManager.cs (3)
21
private readonly
PropertyDescriptor
_targetProperty;
27
internal CollectionEditVerbManager(string text, ComponentDesigner designer,
PropertyDescriptor
prop, bool addToDesignerVerbs)
124
PropertyDescriptor
ITypeDescriptorContext.PropertyDescriptor
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
59
PropertyDescriptor
? property = null;
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
82
PropertyDescriptor
? textProp = TypeDescriptor.GetProperties(Component)["Text"];
System\Windows\Forms\Design\CommandSet.cs (39)
537
PropertyDescriptor
? prop = GetProperty(comp, "Location");
557
protected static
PropertyDescriptor
? GetProperty(object comp, string propName)
592
PropertyDescriptor
? prop = GetProperty(comp, "Size");
599
protected virtual void GetSnapInformation(IDesignerHost host, IComponent component, out Size snapSize, out IComponent snapComponent, out
PropertyDescriptor
? snapProperty)
606
PropertyDescriptor
? currentSnapProp = props["SnapToGrid"];
612
PropertyDescriptor
? gridSizeProp = props["GridSize"];
845
GetSnapInformation(host, comp, out Size snapSize, out IComponent snapComponent, out
PropertyDescriptor
? snapProperty);
925
PropertyDescriptor
? propLoc = TypeDescriptor.GetProperties(component)["Location"];
1008
PropertyDescriptor
? locProp = props["Location"];
1009
PropertyDescriptor
? sizeProp = props["Size"];
1010
PropertyDescriptor
? lockProp = props["Locked"];
1142
PropertyDescriptor
? prop = GetProperty(baseComponent, "GridSize");
1162
PropertyDescriptor
? lockedProp = GetProperty(comp, "Locked");
1177
PropertyDescriptor
? locProp = GetProperty(comp, "Location");
1279
PropertyDescriptor
? locProp = props["Location"];
1280
PropertyDescriptor
? sizeProp = props["Size"];
1289
PropertyDescriptor
? lockProp = props["Locked"];
1339
PropertyDescriptor
locProp = props["Location"]!;
1965
foreach (
PropertyDescriptor
pd in eventProps)
2088
PropertyDescriptor
? nameProp = props["Name"];
2093
PropertyDescriptor
? textProp = props["Text"];
2255
PropertyDescriptor
? prop = GetProperty(baseComponent, "DrawGrid");
2299
PropertyDescriptor
? sizeProp = GetProperty(component, "Size");
2328
PropertyDescriptor
? lockedDesc = GetProperty(obj, "Locked");
2334
PropertyDescriptor
? sizeProp = GetProperty(obj, "Size");
2404
PropertyDescriptor
? prop = GetProperty(baseComponent, "CurrentGridSize");
2416
PropertyDescriptor
? sizeProp = GetProperty(comp, "Size");
2417
PropertyDescriptor
? locProp = GetProperty(comp, "Location");
2488
PropertyDescriptor
? prop = GetProperty(baseComponent, "SnapToGrid");
2541
PropertyDescriptor
? prop = GetProperty(baseComponent, "CurrentGridSize");
2555
PropertyDescriptor
? curSizeDesc = null, lastSizeDesc = null;
2556
PropertyDescriptor
? curLocDesc = null, lastLocDesc = null;
2714
PropertyDescriptor
? primaryLocDesc = GetProperty(primary, "Location");
2731
PropertyDescriptor
? lockedDesc = props["Locked"];
3346
PropertyDescriptor
? gs = GetProperty(baseComponent, "GridSize");
3467
PropertyDescriptor
pProp = TypeDescriptor.GetProperties(p!)["Location"]!;
3468
PropertyDescriptor
qProp = TypeDescriptor.GetProperties(q!)["Location"]!;
3485
PropertyDescriptor
pProp = TypeDescriptor.GetProperties(p!)["Location"]!;
3486
PropertyDescriptor
qProp = TypeDescriptor.GetProperties(q!)["Location"]!;
System\Windows\Forms\Design\ComponentTray.cs (8)
306
PropertyDescriptor
trayIconProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayLargeIcon"];
412
PropertyDescriptor
trayAAProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayAutoArrange"];
958
PropertyDescriptor
loc = TypeDescriptor.GetProperties(receiver.GetType())["Location"];
1544
PropertyDescriptor
loc = TypeDescriptor.GetProperties(receiver.GetType())["Location"];
1840
PropertyDescriptor
ctlLocation = TypeDescriptor.GetProperties(comp)["TrayLocation"];
1875
PropertyDescriptor
ctlLocation = TypeDescriptor.GetProperties(comp)["TrayLocation"];
2368
PropertyDescriptor
prop;
2471
PropertyDescriptor
defaultPropEvent = null;
System\Windows\Forms\Design\ContextMenuStripActionList.cs (2)
23
PropertyDescriptor
? getProperty = TypeDescriptor.GetProperties(_toolStripDropDown)[propertyName];
36
PropertyDescriptor
? changingProperty = TypeDescriptor.GetProperties(_toolStripDropDown)[propertyName];
System\Windows\Forms\Design\ControlCommandSet.cs (12)
367
protected override void GetSnapInformation(IDesignerHost host, IComponent component, out Size snapSize, out IComponent snapComponent, out
PropertyDescriptor
snapProperty)
371
PropertyDescriptor
gridSizeProp = null;
372
PropertyDescriptor
currentSnapProp = null;
533
PropertyDescriptor
dockProp = TypeDescriptor.GetProperties(comp)["Dock"];
685
GetSnapInformation(host, comp, out snapSize, out IComponent snapComponent, out
PropertyDescriptor
snapProperty);
770
PropertyDescriptor
propIntegralHeight = TypeDescriptor.GetProperties(component)["IntegralHeight"];
776
PropertyDescriptor
propItemHeight = TypeDescriptor.GetProperties(component)["ItemHeight"];
785
PropertyDescriptor
propSize = TypeDescriptor.GetProperties(component)["Size"];
870
PropertyDescriptor
prop = GetProperty(comp, "Locked");
1037
PropertyDescriptor
controlsProp = null;
1109
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(parent)["Controls"];
1187
PropertyDescriptor
lockedProp = TypeDescriptor.GetProperties(_baseControl)["Locked"];
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (2)
14
private readonly
PropertyDescriptor
_basePropDesc;
16
public CanResetSizePropertyDescriptor(
PropertyDescriptor
pd) : base(pd) => _basePropDesc = pd;
System\Windows\Forms\Design\ControlDesigner.cs (15)
204
PropertyDescriptor
? prop;
206
PropertyDescriptor
? autoSizeProp = props["AutoSize"];
207
PropertyDescriptor
? autoSizeModeProp = props["AutoSizeMode"];
229
if (props["Dock"] is
PropertyDescriptor
propDock)
268
if (props["Locked"] is
PropertyDescriptor
pd)
307
private bool IsResizableConsiderAutoSize(
PropertyDescriptor
? autoSizeProp,
PropertyDescriptor
? autoSizeModeProp)
916
PropertyDescriptor
? visibleProp = props["Visible"];
922
PropertyDescriptor
? enabledProp = props["Enabled"];
1141
PropertyDescriptor
? textProp = TypeDescriptor.GetProperties(Component)["Text"];
1177
PropertyDescriptor
? dockProp = TypeDescriptor.GetProperties(Component)["Dock"];
1201
PropertyDescriptor
? textProp = TypeDescriptor.GetProperties(Component)["Text"];
1631
if (properties[shadowProps[i]] is
PropertyDescriptor
prop)
1639
if (properties["Controls"] is
PropertyDescriptor
controlsProp)
1650
if (properties["Size"] is
PropertyDescriptor
sizeProp)
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (2)
28
PropertyDescriptor
? dockProp = TypeDescriptor.GetProperties(Component)["Dock"];
64
PropertyDescriptor
dockProp = TypeDescriptor.GetProperties(Component!)["Dock"]!;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
141
PropertyDescriptor
? pd = props["UserAddedColumn"];
540
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(_liveDataGridView)["Columns"];
727
PropertyDescriptor
propertyDescriptor = propertyDescriptorCollection[i];
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (10)
183
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(_liveDataGridView)["Columns"];
264
PropertyDescriptor
? propertyDescriptor = TypeDescriptor.GetProperties(newColumns[i])["DisplayIndex"];
274
PropertyDescriptor
? pd = TypeDescriptor.GetProperties(newColumns[i])["UserAddedColumn"];
643
PropertyDescriptor
? propertyDescriptor = TypeDescriptor.GetProperties(col)["UserAddedColumn"];
1253
PropertyDescriptor
? ICustomTypeDescriptor.GetDefaultProperty() => TypeDescriptor.GetDefaultProperty(DataGridViewColumn);
1270
PropertyDescriptor
[]? propArray;
1279
Dictionary<string,
PropertyDescriptor
> hash = [];
1289
propArray = new
PropertyDescriptor
[hash.Count + 1];
1294
propArray = new
PropertyDescriptor
[props.Count + 1];
1303
object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor
? pd) =>
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (3)
235
PropertyDescriptor
? prop = properties["Width"] as
PropertyDescriptor
;
241
prop = properties["Name"] as
PropertyDescriptor
;
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (3)
102
PropertyDescriptor
? property = (
PropertyDescriptor
?)properties["ValueMember"];
108
property = (
PropertyDescriptor
?)properties["DisplayMember"];
System\Windows\Forms\Design\DataGridViewDesigner.cs (15)
43
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(typeof(DataGridViewColumn))["Width"];
308
PropertyDescriptor
? propertyDescriptor = props?["DataMember"];
371
if (properties[shadowProps[i]] is
PropertyDescriptor
prop)
413
PropertyDescriptor
? pd = TypeDescriptor.GetProperties(dataGridViewColumn)["UserAddedColumn"];
420
PropertyDescriptor
? dataFieldProperty = backEndProps?[dataGridViewColumn.DataPropertyName];
453
PropertyDescriptor
? columnsProp = TypeDescriptor.GetProperties(dataGridView)["Columns"];
473
PropertyDescriptor
? pd = TypeDescriptor.GetProperties(dataGridViewColumn)["UserAddedColumn"];
481
PropertyDescriptor
? dataFieldProperty = backEndProps?[dataGridViewColumn.DataPropertyName];
579
PropertyDescriptor
? columnsProp = TypeDescriptor.GetProperties(dataGridView)["Columns"];
591
PropertyDescriptor
? propertyDescriptor = TypeDescriptor.GetProperties(col)["UserAddedColumn"];
843
PropertyDescriptor
? dataSourceProp = TypeDescriptor.GetProperties(dataGridView)["DataSource"];
937
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToAddRows"];
980
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToDeleteRows"];
1023
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToReorderColumns"];
1066
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(dataGridView)["ReadOnly"];
System\Windows\Forms\Design\DataMemberFieldEditor.cs (1)
24
if (TypeDescriptor.GetProperties(instance)[nameof(ComboBox.DataSource)] is not
PropertyDescriptor
property)
System\Windows\Forms\Design\DesignBindingPicker.cs (9)
766
PropertyDescriptor
property = properties[i];
864
PropertyDescriptor
property = properties[i];
1105
foreach (
PropertyDescriptor
pd in properties)
1151
PropertyDescriptor
propertyDescriptor,
1173
PropertyDescriptor
propertyDescriptor,
1204
foreach (
PropertyDescriptor
descriptor in properties)
1235
PropertyDescriptor
propertyDescriptor,
1503
private static bool IsBindableDataMember(
PropertyDescriptor
property)
1524
private static bool IsListMember(
PropertyDescriptor
property)
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (2)
32
internal void OnGetUIValueItem(ITypeDescriptorContext context,
PropertyDescriptor
propDesc, ArrayList valueUIItemList)
48
private static void OnPropertyValueUIItemInvoke(ITypeDescriptorContext context,
PropertyDescriptor
descriptor, PropertyValueUIItem invokedItem)
System\Windows\Forms\Design\DesignerUtils.cs (2)
354
PropertyDescriptor
? snaplinesProp = options.Options.Properties["UseSnapLines"];
373
PropertyDescriptor
? prop = designerOptionService.Options.Properties[name];
System\Windows\Forms\Design\DocumentDesigner.cs (7)
517
PropertyDescriptor
prop = TypeDescriptor.GetProperties(Component)["Locked"];
676
PropertyDescriptor
backProp = TypeDescriptor.GetProperties(Component.GetType())["BackColor"];
1235
PropertyDescriptor
prop;
1277
prop = (
PropertyDescriptor
)properties[shadowProps[i]];
1284
prop = (
PropertyDescriptor
)properties["AutoScaleDimensions"];
1290
prop = (
PropertyDescriptor
)properties["AutoScaleMode"];
1298
prop = (
PropertyDescriptor
)properties[noBrowseProps[i]];
System\Windows\Forms\Design\EditorServiceContext.cs (5)
19
private readonly
PropertyDescriptor
? _targetProperty;
21
internal EditorServiceContext(ComponentDesigner designer,
PropertyDescriptor
? prop)
37
internal EditorServiceContext(ComponentDesigner designer,
PropertyDescriptor
? prop, string newVerbText) : this(designer, prop)
46
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(objectToChange)[propName]!;
98
PropertyDescriptor
? ITypeDescriptorContext.PropertyDescriptor => _targetProperty;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (4)
91
PropertyDescriptor
flowDirection = (
PropertyDescriptor
)properties["FlowDirection"];
591
PropertyDescriptor
controlsProperty = TypeDescriptor.GetProperties(Component)["Controls"];
724
PropertyDescriptor
controlsProperty = TypeDescriptor.GetProperties(Component)["Controls"];
System\Windows\Forms\Design\FormDocumentDesigner.cs (5)
322
PropertyDescriptor
windowStateProp = TypeDescriptor.GetProperties(component.GetType())["WindowState"];
458
PropertyDescriptor
prop;
465
prop = (
PropertyDescriptor
)properties[shadowProps[i]];
473
prop = (
PropertyDescriptor
)properties["AutoScaleBaseSize"];
480
prop = (
PropertyDescriptor
)properties["ClientSize"];
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
37
PropertyDescriptor
property = TypeDescriptor.GetProperties(value)["Name"];
System\Windows\Forms\Design\ImageIndexEditor.cs (8)
16
protected WeakReference<
PropertyDescriptor
>? _currentImageListPropertyReference;
52
_currentImageListPropertyReference.TryGetTarget(out
PropertyDescriptor
? currentProperty) &&
58
PropertyDescriptor
? imageListProperty = GetImageListProperty(context.PropertyDescriptor!, ref instance);
65
foreach (
PropertyDescriptor
property in properties)
85
_currentImageListPropertyReference = new WeakReference<
PropertyDescriptor
>(imageListProperty);
137
internal static
PropertyDescriptor
? GetImageListProperty(
PropertyDescriptor
currentComponent, ref object? instance)
162
PropertyDescriptor
? property = TypeDescriptor.GetProperties(parentInstance)[pathInfo[i]];
System\Windows\Forms\Design\ImageListDesigner.cs (3)
116
if (properties[shadowProps[i]] is
PropertyDescriptor
prop)
124
PropertyDescriptor
? imageProp = (
PropertyDescriptor
?)properties["Images"];
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
33
PropertyDescriptor
? property = null;
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
65
if (properties[nameof(IntegralHeight)] is
PropertyDescriptor
integralHeightProp)
70
if (properties[nameof(Dock)] is
PropertyDescriptor
dockProp)
System\Windows\Forms\Design\ListViewDesigner.cs (4)
114
PropertyDescriptor
ownerDrawProp = (
PropertyDescriptor
)properties["OwnerDraw"];
121
PropertyDescriptor
viewProp = (
PropertyDescriptor
)properties["View"];
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (1)
32
PropertyDescriptor
property = TypeDescriptor.GetDefaultProperty(CollectionType);
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (1)
50
PropertyDescriptor
property = TypeDescriptor.GetDefaultProperty(CollectionType);
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (2)
173
PropertyDescriptor
? prop;
176
prop = (
PropertyDescriptor
?)properties[shadowProps[i]];
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
51
PropertyDescriptor
? maskProperty = TypeDescriptor.GetProperties(_maskedTextBox)["Mask"];
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
283
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(rootComponent)["Language"];
355
PropertyDescriptor
? loc = TypeDescriptor.GetProperties(comps[i])["Location"];
761
PropertyDescriptor
? loc = TypeDescriptor.GetProperties(comp)["TrayLocation"];
System\Windows\Forms\Design\ParentControlDesigner.cs (7)
556
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(Control)["Controls"];
566
PropertyDescriptor
prop = props["Size"];
938
PropertyDescriptor
prop = TypeDescriptor.GetProperties(component)["AutoSize"];
2137
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
2138
PropertyDescriptor
locationProp = TypeDescriptor.GetProperties(newParent)["Location"];
2164
PropertyDescriptor
locProp = TypeDescriptor.GetProperties(control)["Location"];
2403
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(parent)["Controls"];
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
19
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(Component)["TabStop"];
System\Windows\Forms\Design\RichTextBoxDesigner.cs (2)
74
PropertyDescriptor
? prop;
77
prop = (
PropertyDescriptor
?)properties[shadowProps[i]];
System\Windows\Forms\Design\SelectionUIHandler.cs (10)
364
PropertyDescriptor
? boundsProp = TypeDescriptor.GetProperties(components[i])["Bounds"];
394
PropertyDescriptor
? trayProp = TypeDescriptor.GetProperties(components[i])["TrayLocation"];
406
PropertyDescriptor
? leftProp = TypeDescriptor.GetProperties(components[i])["Left"];
407
PropertyDescriptor
? topProp = TypeDescriptor.GetProperties(components[i])["Top"];
436
PropertyDescriptor
? locationProp = TypeDescriptor.GetProperties(components[i])["Location"];
456
PropertyDescriptor
? widthProp = TypeDescriptor.GetProperties(components[i])["Width"];
457
PropertyDescriptor
? heightProp = TypeDescriptor.GetProperties(components[i])["Height"];
518
PropertyDescriptor
? sizeProp = TypeDescriptor.GetProperties(c)["Size"];
593
PropertyDescriptor
? sizeProp = TypeDescriptor.GetProperties(control)["Size"];
594
PropertyDescriptor
? locProp = TypeDescriptor.GetProperties(control)["Location"];
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (2)
28
PropertyDescriptor
? orientationProp = TypeDescriptor.GetProperties(_ownerComponent)["Orientation"];
50
PropertyDescriptor
? orientationProp = TypeDescriptor.GetProperties(_ownerComponent!)["Orientation"];
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
118
PropertyDescriptor
? lockedProp = TypeDescriptor.GetProperties(component)["Locked"];
230
PropertyDescriptor
descriptor = (
PropertyDescriptor
)de.Value!;
System\Windows\Forms\Design\StandardMenuStripVerb.cs (4)
178
PropertyDescriptor
imageProperty = TypeDescriptor.GetProperties(item)["Image"];
325
PropertyDescriptor
displayStyleProperty = TypeDescriptor.GetProperties(item)["DisplayStyle"];
329
PropertyDescriptor
textProperty = TypeDescriptor.GetProperties(item)["Text"];
345
PropertyDescriptor
imageProperty = TypeDescriptor.GetProperties(item)["Image"];
System\Windows\Forms\Design\StyleEditorForm.cs (3)
33
private readonly
PropertyDescriptor
_rowStyleProp;
34
private readonly
PropertyDescriptor
_colStyleProp;
1055
PropertyDescriptor
childProperty = TypeDescriptor.GetProperties(_tableLayoutPanel)[nameof(TableLayoutPanel.Controls)];
System\Windows\Forms\Design\TabControlDesigner.cs (5)
275
PropertyDescriptor
nameProp = TypeDescriptor.GetProperties(page)["Name"];
283
PropertyDescriptor
textProperty = TypeDescriptor.GetProperties(page)["Text"];
288
PropertyDescriptor
styleProp = TypeDescriptor.GetProperties(page)["UseVisualStyleBackColor"];
474
PropertyDescriptor
prop = properties[shadowProps[i]] as
PropertyDescriptor
;
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
52
PropertyDescriptor
? lsProp = TypeDescriptor.GetProperties(panel)[LayoutSettingsPropName];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (30)
40
private
PropertyDescriptor
_rowStyleProp;
41
private
PropertyDescriptor
_colStyleProp;
96
PropertyDescriptor
prop = TypeDescriptor.GetProperties(host.RootComponent)["Localizable"];
468
PropertyDescriptor
rowProp = TypeDescriptor.GetProperties(Table)["RowCount"];
476
PropertyDescriptor
colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"];
489
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(Table)["Controls"];
642
PropertyDescriptor
colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"];
645
PropertyDescriptor
rowProp = TypeDescriptor.GetProperties(Table)["RowCount"];
1063
PropertyDescriptor
prop = TypeDescriptor.GetProperties(Component)["Locked"];
1365
PropertyDescriptor
columnSpan = TypeDescriptor.GetProperties(dragControl)["ColumnSpan"];
1366
PropertyDescriptor
rowSpan = TypeDescriptor.GetProperties(dragControl)["RowSpan"];
1436
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(Component)["Controls"];
1462
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(Component)["Controls"];
1678
PropertyDescriptor
rowProp = TypeDescriptor.GetProperties(Table)["RowCount"];
1690
PropertyDescriptor
colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"];
1713
PropertyDescriptor
childProp = TypeDescriptor.GetProperties(Table)["Controls"];
1719
PropertyDescriptor
prop = TypeDescriptor.GetProperties(child)[isRow ? "Row" : "Column"];
1720
PropertyDescriptor
spanProp = TypeDescriptor.GetProperties(child)[isRow ? "RowSpan" : "ColumnSpan"];
1788
PropertyDescriptor
childProp = TypeDescriptor.GetProperties(Table)["Controls"];
1794
PropertyDescriptor
prop = TypeDescriptor.GetProperties(child)[isRow ? "Row" : "Column"];
1795
PropertyDescriptor
spanProp = TypeDescriptor.GetProperties(child)[isRow ? "RowSpan" : "ColumnSpan"];
1843
PropertyDescriptor
rowProp = TypeDescriptor.GetProperties(Table)["RowCount"];
1855
PropertyDescriptor
colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"];
1897
PropertyDescriptor
childProp = TypeDescriptor.GetProperties(Table)["Controls"];
2101
PropertyDescriptor
prop = (
PropertyDescriptor
)properties[shadowProps[i]];
2111
PropertyDescriptor
controlsProp = (
PropertyDescriptor
)properties["Controls"];
2129
private void PropChanging(
PropertyDescriptor
prop)
2137
private void PropChanged(
PropertyDescriptor
prop)
System\Windows\Forms\Design\TabOrder.cs (3)
32
private readonly Dictionary<Control,
PropertyDescriptor
> _tabProperties;
453
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(control)["TabIndex"];
789
if (!_tabProperties.TryGetValue(ctl, out
PropertyDescriptor
? prop))
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (3)
94
PropertyDescriptor
imageProperty = TypeDescriptor.GetProperties(component)["Image"];
101
PropertyDescriptor
dispProperty = TypeDescriptor.GetProperties(component)["DisplayStyle"];
105
PropertyDescriptor
imageTransProperty = TypeDescriptor.GetProperties(component)["ImageTransparentColor"];
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (4)
93
PropertyDescriptor
? textProp = TypeDescriptor.GetProperties(Component)["Text"];
112
if (properties[shadowProps[i]] is
PropertyDescriptor
prop)
133
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(component)["Multiline"];
138
PropertyDescriptor
? propAuto = TypeDescriptor.GetProperties(component)["AutoSize"];
System\Windows\Forms\Design\TextBoxDesigner.cs (2)
46
PropertyDescriptor
? prop;
57
prop = (
PropertyDescriptor
?)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripActionList.cs (2)
54
PropertyDescriptor
? getProperty = TypeDescriptor.GetProperties(_toolStrip)[propertyName];
62
PropertyDescriptor
? changingProperty = TypeDescriptor.GetProperties(_toolStrip)[propertyName];
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (4)
418
if (e.Component is ToolStripItem && e.Member is
PropertyDescriptor
&& e.Member.Name == "Name")
597
PropertyDescriptor
imageProperty = TypeDescriptor.GetProperties(newItem)[nameof(Image)];
604
PropertyDescriptor
displayProperty = TypeDescriptor.GetProperties(newItem)["DisplayStyle"];
607
PropertyDescriptor
imageTransProperty = TypeDescriptor.GetProperties(newItem)["ImageTransparentColor"];
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (2)
448
PropertyDescriptor
? propertyDescriptor = (
PropertyDescriptor
?)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripCustomTypeDescriptor.cs (6)
11
private
PropertyDescriptor
? _propItems;
28
public override object GetPropertyOwner(
PropertyDescriptor
? pd) => _instance;
43
PropertyDescriptor
[] propArray = new
PropertyDescriptor
[retColl.Count];
77
PropertyDescriptor
[] propArray = new
PropertyDescriptor
[retColl.Count];
System\Windows\Forms\Design\ToolStripDesigner.cs (10)
597
PropertyDescriptor
textProperty = TypeDescriptor.GetProperties(item)["Text"];
616
PropertyDescriptor
imageProperty = TypeDescriptor.GetProperties(item)["Image"];
623
PropertyDescriptor
dispProperty = TypeDescriptor.GetProperties(item)["DisplayStyle"];
627
PropertyDescriptor
imageTransProperty = TypeDescriptor.GetProperties(item)["ImageTransparentColor"];
1486
PropertyDescriptor
dockProp = TypeDescriptor.GetProperties(ToolStrip)["Dock"];
1501
PropertyDescriptor
mainMenuStripProperty = TypeDescriptor.GetProperties(parentForm)["MainMenuStrip"];
1513
PropertyDescriptor
controlsProp = TypeDescriptor.GetProperties(parentPanel)["Controls"];
1522
PropertyDescriptor
locationProp = TypeDescriptor.GetProperties(ToolStrip)["Location"];
2204
PropertyDescriptor
prop;
2214
prop = (
PropertyDescriptor
)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
558
PropertyDescriptor
prop;
563
prop = (
PropertyDescriptor
)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (3)
571
PropertyDescriptor
getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName];
587
PropertyDescriptor
getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName];
605
PropertyDescriptor
changingProperty = TypeDescriptor.GetProperties(target)[propertyName];
System\Windows\Forms\Design\ToolStripItemDesigner.cs (8)
374
PropertyDescriptor
textProp = TypeDescriptor.GetProperties(ToolStripItem)["Text"];
684
PropertyDescriptor
pd = TypeDescriptor.GetProperties(ToolStripItem)["Text"];
702
PropertyDescriptor
textProp = TypeDescriptor.GetProperties(Component)["Text"];
824
PropertyDescriptor
imageProperty = TypeDescriptor.GetProperties(newItem)["Image"];
831
PropertyDescriptor
dispProperty = TypeDescriptor.GetProperties(newItem)["DisplayStyle"];
835
PropertyDescriptor
imageTransProperty = TypeDescriptor.GetProperties(newItem)["ImageTransparentColor"];
1042
PropertyDescriptor
prop;
1046
prop = (
PropertyDescriptor
)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (4)
542
PropertyDescriptor
textProp = TypeDescriptor.GetProperties(editedItem)["Text"];
893
PropertyDescriptor
textProperty = TypeDescriptor.GetProperties(newItem)["Text"];
2272
PropertyDescriptor
prop;
2276
prop = (
PropertyDescriptor
)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (5)
380
PropertyDescriptor
? dockProp = TypeDescriptor.GetProperties(e.Control)["Dock"];
562
PropertyDescriptor
? propertyDescriptor = (
PropertyDescriptor
?)properties[noBrowseProps[i]];
574
PropertyDescriptor
? propertyDescriptor = (
PropertyDescriptor
?)properties[shadowProps[i]];
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
43
PropertyDescriptor
? prop = TypeDescriptor.GetProperties(component)[propertyName];
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (2)
48
PropertyDescriptor
? prop;
51
prop = (
PropertyDescriptor
?)properties[shadowProps[i]];
System.Windows.Forms.Design.Tests (55)
ControlDesignerTests.cs (2)
343
PropertyDescriptor
? dockPropDescriptor = TypeDescriptor.GetProperties(_designer._control)[nameof(Control.Dock)];
345
dockPropDescriptor.Should().BeAssignableTo<
PropertyDescriptor
>();
EnsureEditorsTests.cs (1)
156
PropertyDescriptor
propertyDescriptor = properties.Find(propertyName, true);
System\ComponentModel\Design\ComponentDesignerTests.cs (22)
73
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
74
Dictionary<string,
PropertyDescriptor
> properties = new()
81
PropertyDescriptor
result = properties["SettingsKey"];
1594
public void ComponentDesigner_DoDefaultAction_InvokeWithComponentWithHostInvalidProperty_Success(
PropertyDescriptor
property)
2308
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
2309
Dictionary<string,
PropertyDescriptor
> properties = new()
2316
PropertyDescriptor
result = properties["SettingsKey"];
2328
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
2329
Dictionary<string,
PropertyDescriptor
> properties = new()
2336
PropertyDescriptor
result = properties["SettingsKey"];
2349
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
2361
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
2362
Dictionary<string,
PropertyDescriptor
> properties = new()
2738
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
2739
Dictionary<string,
PropertyDescriptor
> properties = new()
2746
PropertyDescriptor
result = properties["SettingsKey"];
2759
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
2760
Dictionary<string,
PropertyDescriptor
> properties = new()
2767
PropertyDescriptor
result = properties["SettingsKey"];
2781
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
2794
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(CustomComponent))[0];
2795
Dictionary<string,
PropertyDescriptor
> properties = new()
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (6)
209
PropertyDescriptor
property = Assert.IsAssignableFrom<
PropertyDescriptor
>(Assert.Single(properties));
306
PropertyDescriptor
property = Assert.IsAssignableFrom<
PropertyDescriptor
>(Assert.Single(properties));
314
PropertyDescriptor
otherProperty = Assert.IsAssignableFrom<
PropertyDescriptor
>(Assert.Single(otherProperties));
System\Windows\Forms\Design\CollectionEditVerbManagerTests.cs (1)
26
PropertyDescriptor
? propertyDescriptor = properties[nameof(ToolStripButton.Text)];
System\Windows\Forms\Design\DataGridViewDesignerTests.cs (3)
63
It.IsAny<
PropertyDescriptor
>()
71
It.IsAny<
PropertyDescriptor
>(),
145
Dictionary<string,
PropertyDescriptor
> properties = new()
System\Windows\Forms\Design\DataMemberFieldConverterTests.cs (1)
57
public
PropertyDescriptor
PropertyDescriptor { get { return null; } }
System\Windows\Forms\Design\InheritedPropertyDescriptorTestExtensions.cs (1)
16
PropertyDescriptor
propertyDescriptor = properties.Find(property, false);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (1)
21
var
property = TypeDescriptor.GetProperties(instance)["Text"];
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (2)
96
_changedServiceMock.Setup(cs => cs.OnComponentChanging(It.IsAny<object>(), It.IsAny<
PropertyDescriptor
>())).Throws(CheckoutException.Canceled);
107
_changedServiceMock.Setup(cs => cs.OnComponentChanging(It.IsAny<object>(), It.IsAny<
PropertyDescriptor
>())).Throws<InvalidOperationException>();
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (4)
147
PropertyDescriptor
rowStyleProp = (
PropertyDescriptor
)designer.TestAccessor().Dynamic._rowStyleProp;
148
PropertyDescriptor
colStyleProp = (
PropertyDescriptor
)designer.TestAccessor().Dynamic._colStyleProp;
System\Windows\Forms\Design\ToolStripCustomTypeDescriptorTests.cs (4)
54
_descriptor.GetProperties().Cast<
PropertyDescriptor
>().Should().NotContain(p => p.Name == "Items");
61
_descriptor.GetProperties(attributes).Cast<
PropertyDescriptor
>().Should().NotContain(p => p.Name == "Items");
68
_descriptor.GetProperties().Cast<
PropertyDescriptor
>().Should().NotContain(p => p.Name == "Items");
76
_descriptor.GetProperties(attributes).Cast<
PropertyDescriptor
>().Should().NotContain(p => p.Name == "Items");
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (5)
38
Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<
PropertyDescriptor
>().Select(p => p.Name));
62
Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<
PropertyDescriptor
>().Select(p => p.Name));
79
Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<
PropertyDescriptor
>().Select(p => p.Name));
86
Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<
PropertyDescriptor
>().Select(p => p.Name));
102
Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<
PropertyDescriptor
>().Select(p => p.Name));
ToolStripMenuItemDesignerTest.cs (2)
115
PropertyDescriptor
propertyDescriptor = properties.Find("Visible", true);
116
Dictionary<string,
PropertyDescriptor
> property = new()
System.Windows.Forms.Primitives (6)
System\ComponentModel\PropertyDescriptorCollectionExtensions.cs (1)
14
PropertyDescriptor
? propertyDescriptor = propertyDescriptors[name];
System\ComponentModel\PropertyDescriptorExtensions.cs (4)
8
public static bool TryGetValue<T>(this
PropertyDescriptor
descriptor, object? component, out T? value)
22
public static T? GetValue<T>(this
PropertyDescriptor
descriptor, object? component) where T : class
32
public static T? GetEditor<T>(this
PropertyDescriptor
descriptor) => (T?)descriptor.GetEditor(typeof(T));
34
public static bool TryGetEditor<T>(this
PropertyDescriptor
descriptor, [NotNullWhen(true)] out T? value)
System\ComponentModel\TypeDescriptorHelper.cs (1)
42
PropertyDescriptor
? property = TypeDescriptor.GetProperties(component)[name];
System.Windows.Forms.Tests (421)
System\Drawing\Design\PropertyValueUIItemTests.cs (1)
43
private static void Dummy_PropertyValueUIItemInvokeHandler(ITypeDescriptorContext context,
PropertyDescriptor
propDesc, PropertyValueUIItem invokedItem) { }
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (64)
25
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
41
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdProperty)];
57
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdNotBrowsableProperty)];
73
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdReadOnlyProperty)];
89
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdNotBrowsableReadOnlyProperty)];
105
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
116
PropertyDescriptor
property = events[nameof(CustomAxHost.CategoryProperty)];
127
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
138
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
149
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdProperty)];
169
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdProperty)];
190
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomConverterProperty)];
201
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdCustomConverterProperty)];
212
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
223
PropertyDescriptor
property = events[nameof(CustomAxHost.DescriptionProperty)];
234
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
245
PropertyDescriptor
property = events[nameof(CustomAxHost.GetOnlyProperty)];
256
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
267
PropertyDescriptor
property = events[nameof(CustomAxHost.NotBrowsableProperty)];
278
PropertyDescriptor
property = events[nameof(CustomAxHost.ReadOnlyProperty)];
289
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
303
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
314
PropertyDescriptor
property = events[nameof(CustomAxHost.ReadOnlyProperty)];
369
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdProperty)];
380
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdEditorProperty)];
394
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdUITypeEditorProperty)];
417
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdProperty)];
440
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdEditorProperty)];
466
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdUITypeEditorProperty)];
501
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
525
PropertyDescriptor
property = events[nameof(CustomAxHost.DataSourceProperty)];
544
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdDataSourceProperty)];
569
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
605
PropertyDescriptor
property = events[nameof(CustomAxHost.DataSourceProperty)];
636
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdDataSourceProperty)];
657
PropertyDescriptor
property = events[propertyName];
684
PropertyDescriptor
property = events[propertyName];
705
PropertyDescriptor
property = events[propertyName];
732
PropertyDescriptor
property = events[propertyName];
758
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
770
PropertyDescriptor
property = events[nameof(CustomAxHost.ReadOnlyProperty)];
785
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
804
PropertyDescriptor
property = events[nameof(CustomAxHost.DataSourceProperty)];
821
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdDataSourceProperty)];
850
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
881
PropertyDescriptor
property = events[nameof(CustomAxHost.DataSourceProperty)];
910
PropertyDescriptor
property = events[nameof(CustomAxHost.DispIdDataSourceProperty)];
942
PropertyDescriptor
property = events[nameof(CustomAxHost.EnumProperty)];
971
PropertyDescriptor
property = events[nameof(CustomAxHost.EnumProperty)];
990
PropertyDescriptor
property = events[propertyName];
1014
PropertyDescriptor
property = events[propertyName];
1033
PropertyDescriptor
property = events[propertyName];
1058
PropertyDescriptor
property = events[propertyName];
1085
PropertyDescriptor
property = events[propertyName];
1110
PropertyDescriptor
property = events[propertyName];
1135
PropertyDescriptor
property = events[nameof(CustomAxHost.IntProperty)];
1158
PropertyDescriptor
property = events[nameof(CustomAxHost.IntProperty)];
1183
PropertyDescriptor
property = events[nameof(CustomAxHost.EnumProperty)];
1206
PropertyDescriptor
property = events[nameof(CustomAxHost.EnumProperty)];
1234
PropertyDescriptor
property = events[nameof(CustomAxHost.IntProperty)];
1260
PropertyDescriptor
property = events[nameof(CustomAxHost.IntProperty)];
1288
PropertyDescriptor
property = events[nameof(CustomAxHost.EnumProperty)];
1344
PropertyDescriptor
property = events[nameof(CustomAxHost.CustomProperty)];
1355
PropertyDescriptor
property = events[nameof(CustomAxHost.ReadOnlyProperty)];
System\Windows\Forms\AxHostTests.cs (5)
2541
PropertyDescriptor
propertyDescriptor = customTypeDescriptor.GetDefaultProperty();
2564
PropertyDescriptor
propertyDescriptor = customTypeDescriptor.GetDefaultProperty();
3032
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(string))[nameof(string.Length)];
3038
public void AxHost_ICustomTypeDescriptorGetPropertyOwner_Invoke_ReturnsExpected(
PropertyDescriptor
pd)
3052
public void AxHost_ICustomTypeDescriptorGetPropertyOwner_InvokeWithHandle_ReturnsExpected(
PropertyDescriptor
pd)
System\Windows\Forms\AxSystemMonitorTests.cs (1)
42
foreach (
PropertyDescriptor
prop in properties)
System\Windows\Forms\AxWebBrowserTests.cs (1)
42
.Cast<
PropertyDescriptor
>()
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
256
foreach (
PropertyDescriptor
property in propertyDescriptors)
System\Windows\Forms\BindingSourceTests.cs (7)
345
PropertyDescriptor
sortProperty = TypeDescriptor.GetProperties(typeof(DataClass))[0];
848
public PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[] listAccessors)
853
public string GetListName(
PropertyDescriptor
[] listAccessors)
865
public PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[] listAccessors)
870
public string GetListName(
PropertyDescriptor
[] listAccessors)
883
public PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[] listAccessors)
888
public string GetListName(
PropertyDescriptor
[] listAccessors)
System\Windows\Forms\ButtonBaseTests.cs (6)
1778
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
1797
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
1825
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
4282
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
4300
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
4327
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
System\Windows\Forms\ColorDialogTests.cs (2)
148
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)];
164
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)];
System\Windows\Forms\ColumnHeaderTests.cs (7)
241
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)];
262
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)];
860
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
887
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
916
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
1056
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)];
1083
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)];
System\Windows\Forms\ComboBoxTests.cs (4)
281
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)];
297
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)];
1149
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.ForeColor)];
1165
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.ForeColor)];
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
122
public
PropertyDescriptor
? GetDefaultProperty() => throw new NotImplementedException();
134
public object? GetPropertyOwner(
PropertyDescriptor
? pd) => _propertyOwner;
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (7)
50
var
handleProperty = properties["Handle"];
68
var
typeProperty = properties["Type"];
133
var
urlProperty = properties["URL"];
175
var
accChildCount = properties["accChildCount"];
179
var
accFocus = properties["accFocus"];
199
var
accChildCount = properties["accChildCount"];
203
var
accFocus = properties["accFocus"];
System\Windows\Forms\ControlTests.Properties.cs (28)
1606
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.BackColor)];
1622
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.BackColor)];
3675
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Controls)];
3695
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Controls)];
4767
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Enabled)];
4783
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Enabled)];
5244
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Font)];
5269
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Font)];
5640
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
5656
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
7574
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Location)];
7598
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Location)];
7852
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Margin)];
7868
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Margin)];
8445
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.MaximumSize)];
8469
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.MaximumSize)];
9215
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.MinimumSize)];
9239
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.MinimumSize)];
9647
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Padding)];
9663
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Padding)];
10444
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.RightToLeft)];
10472
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.RightToLeft)];
11755
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Size)];
11779
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Size)];
12045
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Text)];
12072
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Text)];
13069
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Visible)];
13085
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Visible)];
System\Windows\Forms\Design\EventsTabTests.cs (2)
65
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(ClassWithDefaultEvent))[0];
101
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(ClassWithDefaultEvent))[0];
System\Windows\Forms\DockPaddingEdgesTests.cs (5)
391
PropertyDescriptor
property = properties[nameof(ScrollableControl.DockPaddingEdges.All)];
412
PropertyDescriptor
property = properties[nameof(ScrollableControl.DockPaddingEdges.Left)];
433
PropertyDescriptor
property = properties[nameof(ScrollableControl.DockPaddingEdges.Top)];
454
PropertyDescriptor
property = properties[nameof(ScrollableControl.DockPaddingEdges.Right)];
475
PropertyDescriptor
property = properties[nameof(ScrollableControl.DockPaddingEdges.Bottom)];
System\Windows\Forms\ErrorProviderTests.cs (6)
310
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)];
321
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)];
512
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)];
523
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)];
559
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)];
571
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)];
System\Windows\Forms\FontDialogTests.cs (2)
333
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(FontDialog))[nameof(FontDialog.Font)];
350
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(FontDialog))[nameof(FontDialog.Font)];
System\Windows\Forms\GridItemCollectionTests.cs (1)
69
public override
PropertyDescriptor
PropertyDescriptor => null;
System\Windows\Forms\GridItemTests.cs (1)
60
public override
PropertyDescriptor
PropertyDescriptor => null;
System\Windows\Forms\ImageListTests.cs (6)
171
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)];
188
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)];
365
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)];
382
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)];
781
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)];
798
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)];
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (1)
1902
.Returns(new PropertyDescriptorCollection(Array.Empty<
PropertyDescriptor
>()));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (1)
320
.Returns(new PropertyDescriptorCollection(Array.Empty<
PropertyDescriptor
>()));
System\Windows\Forms\ListBindingHelperTests.cs (86)
293
IEnumerable<
PropertyDescriptor
> properties = ListBindingHelper.GetListItemProperties(list)?.Cast<
PropertyDescriptor
>();
297
properties = ListBindingHelper.GetListItemProperties(list, null)?.Cast<
PropertyDescriptor
>();
301
properties = ListBindingHelper.GetListItemProperties(list, Array.Empty<
PropertyDescriptor
>())?.Cast<
PropertyDescriptor
>();
305
properties = ListBindingHelper.GetListItemProperties(list, null, Array.Empty<
PropertyDescriptor
>())?.Cast<
PropertyDescriptor
>();
309
properties = ListBindingHelper.GetListItemProperties(list, string.Empty, Array.Empty<
PropertyDescriptor
>())?.Cast<
PropertyDescriptor
>();
315
yield return new object[] { null, TypeDescriptor.GetProperties(typeof(DataClass)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
317
yield return new object[] { new DataClass(), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
318
yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
320
yield return new object[] { new ListDataClass(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
321
yield return new object[] { new ListDataClass() { ListProperty = [new()] }, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
322
yield return new object[] { typeof(ListDataClass), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
324
yield return new object[] { new MultiListDataClass(), TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "ListProperty" } };
325
yield return new object[] { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] }, TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<
PropertyDescriptor
>().Take(0).ToArray(), new string[] { "ParentListProperty" } };
327
var inner = new
PropertyDescriptor
[] { TypeDescriptor.GetProperties(typeof(MultiListDataClass))[0], TypeDescriptor.GetProperties(typeof(ListDataClass))[0], TypeDescriptor.GetProperties(typeof(DataClass))[0] };
329
yield return new object[] { typeof(MultiListDataClass), TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "ListProperty" } };
331
yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
332
yield return new object[] { new DataClass(), new
PropertyDescriptor
[] { null }, Array.Empty<string>() };
333
yield return new object[] { typeof(DataClass), new
PropertyDescriptor
[] { null }, Array.Empty<string>() };
336
PropertyDescriptor
[] descriptors = TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray();
366
yield return new object[] { new EnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
367
yield return new object[] { new List<EnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
368
yield return new object[] { new ArrayList { new EnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
369
yield return new object[] { new IEnumerableWrapper(new object[] { new EnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
374
yield return new object[] { new NonEnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
375
yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
376
yield return new object[] { new ArrayList { new NonEnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
377
yield return new object[] { new IEnumerableWrapper(new object[] { new NonEnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<
PropertyDescriptor
>().ToArray(), Array.Empty<string>() };
381
yield return new object[] { new ITypedListDataClass(), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
382
yield return new object[] { typedListDataClass, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
383
yield return new object[] { typeof(ITypedListDataClass), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
384
yield return new object[] { new ITypedListDataClass[] { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
385
yield return new object[] { new ITypedListDataClass[] { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
386
yield return new object[] { new List<ITypedListDataClass> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
387
yield return new object[] { new List<ITypedListDataClass> { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
388
yield return new object[] { new ArrayList { new ITypedListDataClass() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
389
yield return new object[] { new ArrayList { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
390
yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListDataClass() }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
391
yield return new object[] { new IEnumerableWrapper(new object[] { typedListDataClass }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
392
yield return new object[] { typeof(ITypedListDataClass[]), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
395
yield return new object[] { new ITypedListParent(), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
396
yield return new object[] { typedListParent, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
397
yield return new object[] { new ITypedListParent[] { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
398
yield return new object[] { new ITypedListParent[] { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
399
yield return new object[] { new List<ITypedListParent> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
400
yield return new object[] { new List<ITypedListParent> { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
401
yield return new object[] { new ArrayList { new ITypedListParent() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
402
yield return new object[] { new ArrayList { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
403
yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListParent() }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "OtherProperty" } };
404
yield return new object[] { new IEnumerableWrapper(new object[] { typedListParent }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
409
public void ListBindingHelper_GetListItemProperties_InvokeObjectPropertyDescriptorArray_ReturnsExpected(object list,
PropertyDescriptor
[] listAccessors, string[] expected)
411
IEnumerable<
PropertyDescriptor
> properties = ListBindingHelper.GetListItemProperties(list, listAccessors)?.Cast<
PropertyDescriptor
>();
415
properties = ListBindingHelper.GetListItemProperties(list, null, listAccessors)?.Cast<
PropertyDescriptor
>();
419
properties = ListBindingHelper.GetListItemProperties(list, string.Empty, listAccessors)?.Cast<
PropertyDescriptor
>();
426
yield return new object[] { new ListDataClass(), "listproperty", Array.Empty<
PropertyDescriptor
>(), new string[] { "Property" } };
427
yield return new object[] { new MultiListDataClass(), "ParentListProperty", TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
429
yield return new object[] { typeof(ListDataClass), "listproperty", Array.Empty<
PropertyDescriptor
>(), new string[] { "Property" } };
430
yield return new object[] { typeof(MultiListDataClass), "ParentListProperty", TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray(), new string[] { "Property" } };
435
public void ListBindingHelper_GetListItemProperties_InvokeObjectStringPropertyDescriptorArray_ReturnsExpected(object list, string dataMember,
PropertyDescriptor
[] listAccessors, string[] expected)
437
IEnumerable<
PropertyDescriptor
> properties = ListBindingHelper.GetListItemProperties(list, dataMember, listAccessors)?.Cast<
PropertyDescriptor
>();
458
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray()));
459
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), null, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray()));
460
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), string.Empty, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<
PropertyDescriptor
>().ToArray()));
473
yield return new object[] { 1, Array.Empty<
PropertyDescriptor
>(), "Int32" };
474
yield return new object[] { typeof(int), Array.Empty<
PropertyDescriptor
>(), "Int32" };
475
yield return new object[] { 1, new
PropertyDescriptor
[] { null }, "Int32" };
476
yield return new object[] { typeof(int), new
PropertyDescriptor
[] { null }, "Int32" };
492
yield return new object[] { typeof(IEnumerable), new
PropertyDescriptor
[] { TypeDescriptor.GetProperties(typeof(DataClass))[0] }, "Int32" };
497
public void ListBindingHelper_GetListName_Invoke_ReturnsExpected(object list,
PropertyDescriptor
[] listAccessors, string expected)
533
public PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[] listAccessors)
545
public PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[] listAccessors)
550
public string GetListName(
PropertyDescriptor
[] listAccessors)
564
public PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[] listAccessors)
569
public string GetListName(
PropertyDescriptor
[] listAccessors)
697
public PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[] listAccessors)
702
public string GetListName(
PropertyDescriptor
[] listAccessors)
717
public PropertyDescriptorCollection GetItemProperties(
PropertyDescriptor
[] listAccessors)
722
public string GetListName(
PropertyDescriptor
[] listAccessors)
829
public
PropertyDescriptor
GetDefaultProperty()
903
public object GetPropertyOwner(
PropertyDescriptor
pd)
System\Windows\Forms\ListBoxTests.cs (6)
445
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.BackColor)];
461
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.BackColor)];
1342
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ForeColor)];
1358
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ForeColor)];
1818
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)];
1835
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)];
System\Windows\Forms\MdiClientTests.cs (6)
147
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.BackColor)];
163
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.BackColor)];
437
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.Location)];
461
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.Location)];
1150
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(Control.Size)];
1174
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(Control.Size)];
System\Windows\Forms\PaddingTests.cs (6)
100
PropertyDescriptor
property = properties[nameof(Padding.All)];
120
PropertyDescriptor
property = properties[nameof(Padding.All)];
170
PropertyDescriptor
property = properties[nameof(Padding.Left)];
220
PropertyDescriptor
property = properties[nameof(Padding.Top)];
270
PropertyDescriptor
property = properties[nameof(Padding.Right)];
320
PropertyDescriptor
property = properties[nameof(Padding.Bottom)];
System\Windows\Forms\PageSetupDialogTests.cs (2)
227
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)];
256
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)];
System\Windows\Forms\PictureBoxTests.cs (6)
389
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.ErrorImage)];
406
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.ErrorImage)];
599
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.Image)];
616
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.Image)];
1086
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)];
1103
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)];
System\Windows\Forms\ProgressBarTests.cs (2)
626
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
642
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (4)
95
PropertyDescriptor
propertyDescriptor = TypeDescriptor.GetProperties(typeof(TestEntity)).
114
PropertyDescriptor
propertyDescriptor = TypeDescriptor.GetProperties(typeof(TestEntity)).
209
public EnumerablePropertyDescriptorGridEntry(PropertyGrid ownerGrid, GridEntry parent,
PropertyDescriptor
propertyDescriptor, bool hide)
219
public DropDownEditablePropertyDescriptorGridEntry(PropertyGrid ownerGrid, GridEntry parent,
PropertyDescriptor
propertyDescriptor, bool hide)
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
55
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[0];
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (1)
132
.Returns((
PropertyDescriptor
)null)
System\Windows\Forms\PropertyGridTests.cs (40)
380
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)];
396
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)];
754
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategoryForeColor)];
770
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategoryForeColor)];
832
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategorySplitterColor)];
848
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategorySplitterColor)];
917
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsActiveLinkColor)];
933
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsActiveLinkColor)];
995
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBackColor)];
1011
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBackColor)];
1080
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBorderColor)];
1096
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBorderColor)];
1165
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsDisabledLinkColor)];
1181
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsDisabledLinkColor)];
1243
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsForeColor)];
1259
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsForeColor)];
1328
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsLinkColor)];
1344
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsLinkColor)];
1492
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.DisabledItemForeColor)];
1508
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.DisabledItemForeColor)];
1705
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)];
1721
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)];
1783
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBackColor)];
1799
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBackColor)];
1868
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBorderColor)];
1884
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBorderColor)];
1946
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpForeColor)];
1962
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpForeColor)];
2202
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)];
2218
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)];
2449
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusBackColor)];
2465
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusBackColor)];
2527
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusForeColor)];
2543
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusForeColor)];
3253
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)];
3269
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)];
3338
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBorderColor)];
3354
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBorderColor)];
3423
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)];
3439
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)];
System\Windows\Forms\PropertyValueChangedEventArgsTests.cs (1)
38
public override
PropertyDescriptor
PropertyDescriptor { get; }
System\Windows\Forms\ScrollableControlTests.cs (4)
418
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)];
442
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)];
659
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMinSize)];
683
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMinSize)];
System\Windows\Forms\SelectedGridItemChangedEventArgsTests.cs (1)
40
public override
PropertyDescriptor
PropertyDescriptor { get; }
System\Windows\Forms\SpecialFolderEnumConverterTests.cs (3)
17
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
91
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
98
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
System\Windows\Forms\StatusStripTests.cs (2)
551
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
579
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\TabControlTests.cs (4)
1559
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)];
1583
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)];
1768
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.Padding)];
1792
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.Padding)];
System\Windows\Forms\TableLayoutPanelTests.cs (3)
338
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TableLayoutPanel))[nameof(Control.Controls)];
358
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TableLayoutPanel))[nameof(Control.Controls)];
2156
.Returns(new PropertyDescriptorCollection(Array.Empty<
PropertyDescriptor
>()));
System\Windows\Forms\TabPageTests.cs (2)
2366
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TabPage))[nameof(TabPage.Location)];
2394
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TabPage))[nameof(TabPage.Location)];
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
1437
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)];
1465
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)];
System\Windows\Forms\ToolStripControlHostTests.cs (16)
333
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
350
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
364
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
381
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
1000
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1026
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1040
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1066
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1152
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1169
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1183
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1200
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1643
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1672
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1686
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1715
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1433
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
1449
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
System\Windows\Forms\ToolStripItemTests.cs (38)
1738
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.BackColor)];
1754
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.BackColor)];
2331
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)];
2347
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)];
3180
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Font)];
3209
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Font)];
3431
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ForeColor)];
3447
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ForeColor)];
4085
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4102
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4130
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4147
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4738
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4759
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4784
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4818
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4838
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4862
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
5225
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5252
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5283
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5317
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5344
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5375
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5782
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageTransparentColor)];
5798
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageTransparentColor)];
6099
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Margin)];
6115
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Margin)];
6914
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Padding)];
6930
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Padding)];
7416
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.RightToLeft)];
7444
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.RightToLeft)];
8774
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)];
8798
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)];
9075
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ToolTipText)];
9102
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ToolTipText)];
9598
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)];
9614
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)];
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
388
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)];
404
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)];
System\Windows\Forms\ToolStripTests.cs (4)
2206
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
2222
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
3377
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)];
3405
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\ToolTipTests.cs (7)
188
PropertyDescriptor
automaticProperty = properties[nameof(ToolTip.AutomaticDelay)];
189
PropertyDescriptor
initialProperty = properties[nameof(ToolTip.InitialDelay)];
190
PropertyDescriptor
reshowProperty = properties[nameof(ToolTip.ReshowDelay)];
191
PropertyDescriptor
autoPopProperty = properties[nameof(ToolTip.AutoPopDelay)];
263
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolTip))[nameof(ToolTip.AutoPopDelay)];
388
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolTip))[nameof(ToolTip.InitialDelay)];
473
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(ToolTip))[nameof(ToolTip.ReshowDelay)];
System\Windows\Forms\TreeNodeTests.cs (4)
422
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)];
438
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)];
863
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)];
879
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)];
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (4)
87
PropertyDescriptor
? propertyDescriptor = TypeDescriptor.GetProperties(treeView)["ImageList"];
100
private readonly
PropertyDescriptor
_propertyDescriptor;
102
public TypeDescriptorContext(object instance,
PropertyDescriptor
propertyDescriptor)
110
public
PropertyDescriptor
PropertyDescriptor => _propertyDescriptor;
System\Windows\Forms\UnsupportedTypesTests.cs (1)
211
public TestDataGridColumnStyle(
PropertyDescriptor
prop) : base(prop) { }
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
410
PropertyDescriptor
? propertyDescriptor = TypeDescriptor.GetProperties(textBox)["Text"];
System.Xaml (6)
System\Windows\Markup\IValueSerializerContext.cs (1)
35
ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor);
System\Windows\Markup\ValueSerializer.cs (2)
164
public static ValueSerializer? GetSerializerFor(
PropertyDescriptor
descriptor)
217
public static ValueSerializer? GetSerializerFor(
PropertyDescriptor
descriptor, IValueSerializerContext? context)
System\Xaml\Context\ServiceProviderContext.cs (1)
107
PropertyDescriptor
ITypeDescriptorContext.PropertyDescriptor
System\Xaml\XamlObjectReader.cs (2)
2829
public
PropertyDescriptor
PropertyDescriptor
2858
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
propertyDescriptor)
System.Xaml.Tests (18)
System\Windows\Markup\NameReferenceConverterTests.cs (1)
201
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\Markup\ValueSerializerTests.cs (11)
257
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(ClassWithDateTimeProperty))[0];
265
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0];
273
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(ClassWithConvertibleProperty))[0];
285
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(type)[0];
293
Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.GetSerializerFor((
PropertyDescriptor
)null!));
294
Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.GetSerializerFor((
PropertyDescriptor
)null!, null));
300
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(ClassWithInvalidValueSerializerAttributeProperty))[0];
308
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0];
317
PropertyDescriptor
descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0];
443
public ValueSerializer? GetValueSerializerFor(
PropertyDescriptor
type) => SerializerResult;
449
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
48
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Xaml\Replacements\EventConverterTests.cs (1)
198
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Xaml\Replacements\TypeListConverterTests.cs (1)
90
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Xaml\Replacements\TypeTypeConverterTests.cs (1)
288
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Xaml\Schema\XamlTypeNameTests.cs (1)
474
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (1)
286
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
WindowsBase.Tests (28)
System\ComponentModel\DependencyPropertyDescriptorTests.cs (1)
18
PropertyDescriptor
property = TypeDescriptor.GetProperties(component)[nameof(NotDependencyObject.Property)]!;
System\ComponentModel\GroupDescriptionTests.cs (2)
272
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(GroupDescription))[nameof(GroupDescription.GroupNames)]!;
471
PropertyDescriptor
property = TypeDescriptor.GetProperties(typeof(GroupDescription))[nameof(GroupDescription.SortDescriptions)]!;
System\Windows\Converters\Int32RectValueSerializerTests.cs (2)
114
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
118
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor) => throw new NotImplementedException();
System\Windows\Converters\PointValueSerializerTests.cs (2)
114
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
118
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor) => throw new NotImplementedException();
System\Windows\Converters\RectValueSerializerTests.cs (2)
123
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
127
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor) => throw new NotImplementedException();
System\Windows\Converters\SizeValueSerializerTests.cs (2)
123
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
127
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor) => throw new NotImplementedException();
System\Windows\Converters\VectorValueSerializerTests.cs (2)
114
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
118
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor) => throw new NotImplementedException();
System\Windows\ExpressionConverterTests.cs (1)
114
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\Input\KeyConverterTests.cs (1)
435
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\Input\KeyValueSerializerTests.cs (2)
131
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
135
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor) => throw new NotImplementedException();
System\Windows\Input\ModifierKeysConverterTests.cs (1)
309
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\Input\ModifierKeysValueSerializerTests.cs (2)
126
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
130
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor) => throw new NotImplementedException();
System\Windows\Int32RectConverterTests.cs (1)
179
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\Media\Converters\MatrixValueSerializerTests.cs (2)
114
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
118
public ValueSerializer GetValueSerializerFor(
PropertyDescriptor
descriptor) => throw new NotImplementedException();
System\Windows\Media\MatrixConverterTests.cs (1)
179
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\PointConverterTests.cs (1)
179
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\RectConverterTests.cs (1)
189
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\SizeConverterTests.cs (1)
189
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();
System\Windows\VectorConverterTests.cs (1)
179
public
PropertyDescriptor
PropertyDescriptor => throw new NotImplementedException();