1472 references to TypeDescriptor
BinaryFormatTests (2)
FormatTests\FormattedObject\BinaryFormattedTypes.cs (2)
22
var converter =
TypeDescriptor
.GetConverter(type);
44
var converter =
TypeDescriptor
.GetConverter(type);
DesignSurface (2)
CustomControls\CustomButtonDesignerActionList.cs (2)
53
PropertyDescriptor dockProp =
TypeDescriptor
.GetProperties(Component)[nameof(CustomButton.BackColor)];
92
PropertyDescriptor pd =
TypeDescriptor
.GetProperties(_control)[propertyName];
DesignSurfaceExt (4)
DesignSurfaceExt.cs (3)
127
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(ctrl);
137
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(ctrl);
175
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(newComp);
TypeDiscoveryService.cs (1)
12
/// This service is requested by <see cref="
TypeDescriptor
" /> when asking for type information for a component.
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
156
return
TypeDescriptor
.GetConverter(type);
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
1836
var typeConverter =
TypeDescriptor
.GetConverter(typeof(T));
2043
var typeConverter =
TypeDescriptor
.GetConverter(typeof(T));
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
PathStringTests.cs (1)
292
var converter =
TypeDescriptor
.GetConverter(typeof(PathString));
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
RoleStore.cs (1)
243
return (TKey?)
TypeDescriptor
.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
777
IsConvertibleType =
TypeDescriptor
.GetConverter(ModelType).CanConvertFrom(typeof(string));
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
30
_typeConverter =
TypeDescriptor
.GetConverter(type);
ModelBinding\ModelBindingHelper.cs (2)
692
var converter =
TypeDescriptor
.GetConverter(destinationType);
696
converter =
TypeDescriptor
.GetConverter(value.GetType());
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\EnumTypeModelBinderTest.cs (4)
76
var enumConverter =
TypeDescriptor
.GetConverter(modelType);
100
var enumConverter =
TypeDescriptor
.GetConverter(GetUnderlyingType(modelType));
162
var enumConverter =
TypeDescriptor
.GetConverter(modelType);
187
var enumConverter =
TypeDescriptor
.GetConverter(GetUnderlyingType(modelType));
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
952
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
Microsoft.Extensions.Identity.Stores (2)
RoleStoreBase.cs (1)
130
return (TKey?)
TypeDescriptor
.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
UserStoreBase.cs (1)
231
return (TKey?)
TypeDescriptor
.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
337
Dim converter As TypeConverter =
TypeDescriptor
.GetConverter(GetType(DiskSpaceExhaustedOption))
406
Dim converter As TypeConverter =
TypeDescriptor
.GetConverter(GetType(LogFileLocation))
432
Dim converter As TypeConverter =
TypeDescriptor
.GetConverter(GetType(LogFileCreationScheduleOption))
netstandard (1)
netstandard.cs (1)
422
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
TypeDescriptor
))]
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2538
TypeConverter boolConverter =
TypeDescriptor
.GetConverter(typeof(Boolean));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
429
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(typeof(System.Xml.XmlSpace));
PresentationCore (19)
MS\Internal\FontFace\CompositeFontParser.cs (1)
166
_doubleTypeConverter =
TypeDescriptor
.GetConverter(typeof(double));
System\Windows\Duration.cs (2)
484
return HasTimeSpan ?
TypeDescriptor
.GetConverter(_timeSpan).ConvertToString(_timeSpan) : ToStringInvariant();
488
/// This method does not use the current <see cref="System.TimeSpan"/>'s <see cref="
TypeDescriptor
"/> for retrieving the
System\Windows\Input\Command\KeyGestureValueSerializer.cs (2)
59
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(KeyGesture));
74
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(KeyGesture));
System\Windows\Input\Command\MouseActionValueSerializer.cs (2)
52
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(MouseAction));
67
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(MouseAction));
System\Windows\Input\Command\MouseGestureConverter.cs (4)
75
TypeConverter mouseActionConverter =
TypeDescriptor
.GetConverter(typeof(System.Windows.Input.MouseAction));
86
TypeConverter modifierKeysConverter =
TypeDescriptor
.GetConverter(typeof(System.Windows.Input.ModifierKeys));
154
TypeConverter modifierKeysConverter =
TypeDescriptor
.GetConverter(typeof(System.Windows.Input.ModifierKeys));
163
TypeConverter mouseActionConverter =
TypeDescriptor
.GetConverter(typeof(System.Windows.Input.MouseAction));
System\Windows\Input\Command\MouseGestureValueSerializer.cs (2)
64
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(MouseGesture));
79
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(MouseGesture));
System\Windows\Media\Animation\KeyTimeConverter.cs (4)
87
double doubleValue = (double)
TypeDescriptor
.GetConverter(
108
TimeSpan timeSpanValue = (TimeSpan)
TypeDescriptor
.GetConverter(
183
string returnValue = (string)
TypeDescriptor
.GetConverter(
194
return
TypeDescriptor
.GetConverter(
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (2)
85
double doubleValue = (double)
TypeDescriptor
.GetConverter(typeof(double)).ConvertFrom(td, cultureInfo, stringDoubleValue);
94
TimeSpan timeSpanValue = (TimeSpan)
TypeDescriptor
.GetConverter(typeof(TimeSpan)).ConvertFrom(td, cultureInfo, stringValue);
PresentationCore.Tests (3)
BinaryFormat\BinaryFormattedTypes.cs (2)
23
var converter =
TypeDescriptor
.GetConverter(type);
45
var converter =
TypeDescriptor
.GetConverter(type);
TestUtilities\BinaryFormatTestExtensions.cs (1)
52
converter =
TypeDescriptor
.GetConverter(type);
PresentationFramework (30)
MS\Internal\Data\DefaultValueConverter.cs (1)
186
typeConverter =
TypeDescriptor
.GetConverter(type);
MS\Internal\Data\PropertyPathWorker.cs (2)
1382
TypeConverter tc =
TypeDescriptor
.GetConverter(paramType);
1465
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(item);
MS\Internal\Data\ValueTable.cs (2)
219
pd =
TypeDescriptor
.GetProperties(item)[name];
223
pd =
TypeDescriptor
.GetProperties(item.GetType())[name];
System\Windows\Controls\ContentPresenter.cs (3)
1018
TypeConverter tc =
TypeDescriptor
.GetConverter(ReflectionHelper.GetReflectionType(content));
1120
TypeConverter tc =
TypeDescriptor
.GetConverter(ReflectionHelper.GetReflectionType(content));
1189
(tc =
TypeDescriptor
.GetConverter(ReflectionHelper.GetReflectionType(item))) != null &&
System\Windows\Data\BindingListCollectionView.cs (1)
2189
pdc =
TypeDescriptor
.GetProperties(itemType);
System\Windows\Data\CollectionView.cs (2)
1452
properties =
TypeDescriptor
.GetProperties(itemType);
1465
properties =
TypeDescriptor
.GetProperties(item);
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
73
System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.
TypeDescriptor
.GetConverter(property.PropertyType);
System\Windows\Documents\TextRange.cs (1)
791
System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.
TypeDescriptor
.GetConverter(formattingProperty.PropertyType);
System\Windows\Documents\TextRangeSerialization.cs (1)
1126
System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.
TypeDescriptor
.GetConverter(property.PropertyType);
System\Windows\Markup\BamlReader.cs (1)
1076
TypeConverter converter =
TypeDescriptor
.GetConverter(value.GetType());
System\Windows\Markup\BamlRecords.cs (1)
2538
TypeConverter boolConverter =
TypeDescriptor
.GetConverter(typeof(Boolean));
System\Windows\Markup\ParserContext.cs (2)
99
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(typeof(XmlSpace));
429
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(typeof(System.Xml.XmlSpace));
System\Windows\Markup\Primitives\ElementMarkupObject.cs (5)
96
foreach (PropertyDescriptor descriptor in
TypeDescriptor
.GetProperties(_instance))
161
get { return
TypeDescriptor
.GetAttributes(ObjectType); }
356
TypeConverter converter =
TypeDescriptor
.GetConverter(instance);
803
TypeConverter converter =
TypeDescriptor
.GetConverter(value);
901
TypeConverter converter =
TypeDescriptor
.GetConverter(value);
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
38
return
TypeDescriptor
.GetAttributes(ObjectType);
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1083
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(type);
System\Windows\Markup\XamlTypeMapper.cs (1)
1830
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(typeAndSerializer.ObjectType);
System\Windows\PropertyPath.cs (3)
606
accessor =
TypeDescriptor
.GetProperties(item)[propertyName];
627
accessor =
TypeDescriptor
.GetProperties(item)[propertyName];
783
TypeConverter tc =
TypeDescriptor
.GetConverter(type);
System\Windows\PropertyPathConverter.cs (1)
264
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
76
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(list[0]);
PresentationFramework-SystemXmlLinq (1)
SystemXmlLinqExtension.cs (1)
22
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(xelement);
ReachFramework (8)
Serialization\Manager\MetroSerializationManager.cs (2)
154
return
TypeDescriptor
.GetConverter(serializedObject.GetType());
170
return
TypeDescriptor
.GetConverter(serializedObjectType);
Serialization\Manager\ReachDocumentPageSerializer.cs (1)
198
writer.WriteAttributeString(name,
TypeDescriptor
.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (1)
282
writer.WriteAttributeString(name,
TypeDescriptor
.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachSerializationUtils.cs (3)
609
TypeDescriptor
.GetConverter(size.Width).ConvertToInvariantString(size.Width));
611
TypeDescriptor
.GetConverter(size.Height).ConvertToInvariantString(size.Height));
1012
writer.WriteAttributeString(name,
TypeDescriptor
.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\XpsOMDocumentPageSerializer.cs (1)
229
writer.WriteAttributeString(name,
TypeDescriptor
.GetConverter(value).ConvertToInvariantString(value));
System (1)
src\libraries\shims\System\ref\System.cs (1)
408
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
TypeDescriptor
))]
System.CodeDom (1)
System\CodeDom\Compiler\CodeDomProvider.cs (1)
134
public virtual TypeConverter GetConverter(Type type) =>
TypeDescriptor
.GetConverter(type);
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptionProvider.cs (1)
23
: base(
TypeDescriptor
.GetProvider(type))
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
87
Attribute[] newAttributes =
TypeDescriptor
.GetAttributes(AssociatedMetadataType).OfType<Attribute>().ToArray();
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
256
TypeDescriptor
.GetConverter(OperandType);
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (3)
128
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(type);
215
var properties =
TypeDescriptor
.GetProperties(_type);
244
AttributeCollection typeAttributes =
TypeDescriptor
.GetAttributes(propertyDescriptor.PropertyType);
System\ComponentModel\DataAnnotations\Validator.cs (1)
519
var properties =
TypeDescriptor
.GetProperties(instance.GetType());
System.ComponentModel.TypeConverter (135)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
16
public XTypeDescriptionProvider() : base(
TypeDescriptor
.GetProvider(typeof(T)))
System\ComponentModel\AmbientValueAttribute.cs (1)
45
static TypeConverter TypeDescriptorGetConverter([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) =>
TypeDescriptor
.GetConverter(type);
System\ComponentModel\AttributeCollection.cs (1)
260
Type reflect =
TypeDescriptor
.GetReflectionType(attributeType);
System\ComponentModel\BindingList.cs (1)
518
_itemTypeProperties =
TypeDescriptor
.GetProperties(typeof(T));
System\ComponentModel\ComponentConverter.cs (1)
28
return
TypeDescriptor
.GetProperties(value, attributes);
System\ComponentModel\ComponentResourceManager.cs (2)
86
TypeDescriptor
.ValidateRegisteredType(typeFromValue);
208
static PropertyDescriptorCollection TypeDescriptorGetProperties(object value) =>
TypeDescriptor
.GetProperties(value);
System\ComponentModel\Container.cs (1)
234
InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(s.Component)[typeof(InheritanceAttribute)]!;
System\ComponentModel\CustomTypeDescriptor.cs (10)
96
if (
TypeDescriptor
.RequireRegisteredTypes)
98
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType));
103
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType));
131
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed)]
179
if (
TypeDescriptor
.RequireRegisteredTypes)
181
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType));
186
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType));
220
if (
TypeDescriptor
.RequireRegisteredTypes)
222
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
227
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
System\ComponentModel\DelegatingTypeDescriptionProvider.cs (4)
28
internal TypeDescriptionProvider Provider =>
TypeDescriptor
.GetProviderRecursive(_type);
99
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
101
[DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)] Type objectType,
130
public override void RegisterType<[DynamicallyAccessedMembers(
TypeDescriptor
.RegisteredTypesDynamicallyAccessedMembers)] T>() => Provider.RegisterType<T>();
System\ComponentModel\Design\DesignerOptionService.cs (1)
183
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(_value);
System\ComponentModel\Design\IDesignerFilter.cs (6)
16
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
22
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
28
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
34
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
40
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
46
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (2)
123
string? sourceName =
TypeDescriptor
.GetComponentName(source.Owner!) ?? source.Owner!.ToString();
124
string? relName =
TypeDescriptor
.GetComponentName(relationship.Owner!) ?? relationship.Owner!.ToString();
System\ComponentModel\EnumConverter.cs (2)
241
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
242
static Type GetTypeDescriptorReflectionType(Type enumType) =>
TypeDescriptor
.GetReflectionType(enumType);
System\ComponentModel\EventDescriptorCollection.cs (1)
360
TypeDescriptor
.SortDescriptorArray(this);
System\ComponentModel\ExpandableObjectConverter.cs (1)
28
return
TypeDescriptor
.GetProperties(value, attributes);
System\ComponentModel\ICustomTypeDescriptor.cs (10)
50
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed)]
91
if (
TypeDescriptor
.RequireRegisteredTypes)
93
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType));
98
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType));
111
if (
TypeDescriptor
.RequireRegisteredTypes)
113
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType));
118
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType));
133
if (
TypeDescriptor
.RequireRegisteredTypes)
135
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
140
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
System\ComponentModel\InheritanceAttribute.cs (1)
109
public override string ToString() =>
TypeDescriptor
.GetConverterTrimUnsafe(typeof(InheritanceLevel)).ConvertToString(InheritanceLevel)!;
System\ComponentModel\MemberDescriptor.cs (4)
221
if (_metadataVersion !=
TypeDescriptor
.MetadataVersion)
374
_metadataVersion =
TypeDescriptor
.MetadataVersion;
438
return
TypeDescriptor
.GetAssociation(type, instance);
452
return
TypeDescriptor
.GetAssociation(componentClass, component);
System\ComponentModel\NullableConverter.cs (1)
34
UnderlyingTypeConverter =
TypeDescriptor
.GetConverter(UnderlyingType);
System\ComponentModel\PropertyDescriptor.cs (8)
87
_converter ??=
TypeDescriptor
.GetConverter(PropertyType);
114
_converter ??=
TypeDescriptor
.GetConverterFromRegisteredType(PropertyType);
232
return
TypeDescriptor
.CreateInstance(null, type, typeArgs, new object[] { PropertyType });
235
return
TypeDescriptor
.CreateInstance(null, type, null, null);
272
return
TypeDescriptor
.GetProperties(PropertyType, filter);
276
return
TypeDescriptor
.GetProperties(instance, filter);
283
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed + " " + PropertyDescriptorPropertyTypeMessage)]
329
editor ??=
TypeDescriptor
.GetEditor(PropertyType, editorBaseType);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
378
TypeDescriptor
.SortDescriptorArray(this);
System\ComponentModel\ReflectionCachesUpdateHandler.cs (2)
26
TypeDescriptor
.Refresh(type);
33
TypeDescriptor
.Refresh(assembly);
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
254
_realChangedEvent =
TypeDescriptor
.GetEvents(_componentClass)[Name + "Changed"];
273
_realIPropChangedEvent =
TypeDescriptor
.GetEvents(typeof(INotifyPropertyChanged))["PropertyChanged"];
776
foreach (Attribute typeAttr in
TypeDescriptor
.GetAttributes(PropertyType))
System\ComponentModel\ReflectTypeDescriptionProvider.cs (28)
227
lock (
TypeDescriptor
.s_commonSyncObject)
407
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")]
438
lock (
TypeDescriptor
.s_commonSyncObject)
533
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")]
573
IDictionary? cache =
TypeDescriptor
.GetCache(instance);
657
IDictionary? cache =
TypeDescriptor
.GetCache(instance);
854
return
TypeDescriptor
.GetComponentName(component);
900
return
TypeDescriptor
.GetAssociation(type, instance);
907
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
909
[DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)] Type objectType,
929
lock (
TypeDescriptor
.s_commonSyncObject)
935
if (
TypeDescriptor
.RequireRegisteredTypes && !td.IsRegistered && !IsIntrinsicType(type))
937
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type);
943
if (
TypeDescriptor
.RequireRegisteredTypes && !IsIntrinsicType(type))
946
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type);
969
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type);
975
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type);
981
public override void RegisterType<[DynamicallyAccessedMembers(
TypeDescriptor
.RegisteredTypesDynamicallyAccessedMembers)] T>()
990
lock (
TypeDescriptor
.s_commonSyncObject)
1009
lock (
TypeDescriptor
.s_commonSyncObject)
1106
lock (
TypeDescriptor
.s_commonSyncObject)
1134
lock (
TypeDescriptor
.s_commonSyncObject)
1162
lock (
TypeDescriptor
.s_commonSyncObject)
1238
IDictionary? cache =
TypeDescriptor
.GetCache(provider);
1259
lock (
TypeDescriptor
.s_commonSyncObject)
1268
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(providerType);
1347
lock (
TypeDescriptor
.s_commonSyncObject)
1437
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed)]
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (18)
110
attributes.AddRange(
TypeDescriptor
.GetAttributes(iface).Attributes);
195
typeAttr = (TypeConverterAttribute?)
TypeDescriptor
.GetAttributes(_type)[typeof(TypeConverterAttribute)];
196
TypeConverterAttribute instanceAttr = (TypeConverterAttribute)
TypeDescriptor
.GetAttributes(instance)[typeof(TypeConverterAttribute)]!;
204
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(_type);
215
typeAttr ??= (TypeConverterAttribute?)
TypeDescriptor
.GetAttributes(_type)[typeof(TypeConverterAttribute)];
238
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(_type);
255
attributes =
TypeDescriptor
.GetAttributes(instance);
259
attributes =
TypeDescriptor
.GetAttributes(_type);
267
return
TypeDescriptor
.GetEvents(instance)[attr.Name];
271
return
TypeDescriptor
.GetEvents(_type)[attr.Name];
288
attributes =
TypeDescriptor
.GetAttributes(instance);
292
attributes =
TypeDescriptor
.GetAttributes(_type);
300
return
TypeDescriptor
.GetProperties(instance)[attr.Name];
304
return
TypeDescriptor
.GetProperties(_type)[attr.Name];
314
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")]
326
typeAttr = GetEditorAttribute(
TypeDescriptor
.GetAttributes(_type), editorBaseType);
327
EditorAttribute? instanceAttr = GetEditorAttribute(
TypeDescriptor
.GetAttributes(instance), editorBaseType);
353
typeAttr = GetEditorAttribute(
TypeDescriptor
.GetAttributes(_type), editorBaseType);
System\ComponentModel\RefreshEventArgs.cs (1)
7
/// Provides data for the <see cref='System.ComponentModel.
TypeDescriptor
.Refresh(object)'/> event.
System\ComponentModel\RefreshEventHandler.cs (1)
7
/// Represents the method that will handle the <see cref='System.ComponentModel.
TypeDescriptor
.Refresh(object)'/> event
System\ComponentModel\TypeDescriptionProvider.cs (7)
50
public virtual void RegisterType<[DynamicallyAccessedMembers(
TypeDescriptor
.RegisteredTypesDynamicallyAccessedMembers)] T>()
179
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
180
public Type GetReflectionType([DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)] Type objectType) => GetReflectionType(objectType, null);
208
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
210
[DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)] Type objectType,
373
/// Whether the provider uses reflection and requires types to be registered through <see cref="
TypeDescriptor
.RegisterType{T}"/>
391
/// Returns whether the type was registered with its provider through <see cref="
TypeDescriptor
.RegisterType{T}"/>.
System\ComponentModel\TypeDescriptor.cs (2)
161
/// Indicates whether types require registration in order to be used with <see cref="
TypeDescriptor
"/>.
197
TypeDescriptor
.AddProvider(provider, type);
System\Drawing\ColorConverter.cs (1)
75
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
System\Drawing\PointConverter.cs (3)
41
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
72
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
117
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(Point), attributes);
System\Drawing\RectangleConverter.cs (3)
41
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
70
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
123
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(Rectangle), attributes);
System\Drawing\SizeConverter.cs (3)
41
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
70
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
115
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(Size), attributes);
System\Drawing\SizeFConverter.cs (3)
41
TypeConverter floatConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(float));
69
TypeConverter floatConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(float));
112
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(SizeF), attributes);
System.Configuration.ConfigurationManager (5)
System\Configuration\ApplicationSettingsBase.cs (1)
518
TypeConverter tc =
TypeDescriptor
.GetConverter(propertyInfo.PropertyType);
System\Configuration\ConfigurationProperty.cs (1)
398
_converter =
TypeDescriptor
.GetConverter(Type);
System\Configuration\InfiniteTimeSpanConverter.cs (1)
11
private static readonly TypeConverter s_timeSpanConverter =
TypeDescriptor
.GetConverter(typeof(TimeSpan));
System\Configuration\SettingsPropertyValue.cs (2)
208
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
261
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
System.Data.Common (16)
System\Data\Common\DbConnectionStringBuilder.cs (10)
442
foreach (PropertyDescriptor reflected in
TypeDescriptor
.GetProperties(this, true))
594
return
TypeDescriptor
.GetClassName(this, true);
603
return
TypeDescriptor
.GetComponentName(this, true);
609
return
TypeDescriptor
.GetAttributes(this, true);
614
return
TypeDescriptor
.GetEditor(this, editorBaseType, true);
619
return
TypeDescriptor
.GetConverter(this, true);
624
return
TypeDescriptor
.GetDefaultProperty(this, true);
639
return
TypeDescriptor
.GetDefaultEvent(this, true);
648
return
TypeDescriptor
.GetEvents(this, true);
653
return
TypeDescriptor
.GetEvents(this, attributes, true);
System\Data\xmlsaver.cs (1)
117
PropertyDescriptorCollection pds =
TypeDescriptor
.GetProperties(instance);
System\Data\XMLSchema.cs (5)
21
return
TypeDescriptor
.GetConverter(type);
42
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(instance)[name];
289
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(instance)[name];
331
object? val =
TypeDescriptor
.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance);
402
object? val =
TypeDescriptor
.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance);
System.Data.Odbc (1)
System\Data\Odbc\OdbcCommand.cs (1)
311
TypeDescriptor
.Refresh(this); // VS7 208845
System.Drawing.Common.Tests (4)
System\Drawing\IconConverterTests.cs (1)
31
_icoConvFrmTD = (IconConverter)
TypeDescriptor
.GetConverter(_icon);
System\Drawing\ImageConverterTests.cs (2)
29
_imgConvFrmTD = (ImageConverter)
TypeDescriptor
.GetConverter(_image);
242
propsColl =
TypeDescriptor
.GetProperties(typeof(Image));
System\Drawing\ImageFormatConverterTests.cs (1)
23
_imgFmtConvFrmTD = (ImageFormatConverter)
TypeDescriptor
.GetConverter(_imageFmt);
System.Private.Windows.Core.TestUtilities (4)
CustomConverter.cs (4)
18
TypeDescriptionProvider parentProvider =
TypeDescriptor
.GetProvider(type);
20
TypeDescriptor
.AddProvider(newProvider, type);
27
/// <see cref="
TypeDescriptor
.RemoveProvider(TypeDescriptionProvider, Type)"/> is called when going out of scope with the using.
40
public void Dispose() =>
TypeDescriptor
.RemoveProvider(_provider, _type);
System.Resources.Extensions (3)
System\Resources\Extensions\DeserializingResourceReader.cs (2)
170
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
184
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
100
TypeConverter converter =
TypeDescriptor
.GetConverter(primitiveType);
System.Windows.Forms (138)
misc\ImageListUtils.cs (1)
38
PropertyDescriptor? property =
TypeDescriptor
.GetProperties(parentInstance)[pathInfo[i]];
System\Drawing\Design\UITypeEditor.cs (1)
63
TypeDescriptor
.AddEditorTable(typeof(UITypeEditor), intrinsicEditors);
System\Resources\ResXDataNode.cs (4)
247
TypeConverter converter =
TypeDescriptor
.GetConverter(valueType);
363
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
403
&&
TypeDescriptor
.GetConverter(ResolveTypeName(typeName)) is { } converter
616
return
TypeDescriptor
.GetConverter(typeof(ResXFileRef)).ConvertFrom(_fileRef.ToString());
System\Windows\Forms\ActiveX\AxHost.cs (10)
997
if (
TypeDescriptor
.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int))
2395
if (
TypeDescriptor
.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int))
2434
TypeDescriptor
.Refresh(GetType());
2437
return
TypeDescriptor
.GetAttributes(this, true);
2474
return
TypeDescriptor
.GetDefaultEvent(this, true);
2481
return
TypeDescriptor
.GetDefaultProperty(this, true);
2501
=>
TypeDescriptor
.GetEvents(this, noCustomTypeDesc: true);
2506
=>
TypeDescriptor
.GetEvents(this, attributes, noCustomTypeDesc: true);
2512
TypeDescriptor
.Refresh(GetType());
2587
PropertyDescriptorCollection baseProps =
TypeDescriptor
.GetProperties(this, null, true);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1045
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(
1499
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
24
_innerConverter =
TypeDescriptor
.GetConverter(baseType);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedUITypeEditor.cs (1)
22
_innerEditor = (UITypeEditor?)
TypeDescriptor
.GetEditor(baseType, typeof(UITypeEditor));
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
62
=>
TypeDescriptor
.GetProperties(value, attributes);
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (1)
53
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(value, attributes);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (6)
18
/// through the <see cref="
TypeDescriptor
"/> support in .NET.
22
/// <see cref="
TypeDescriptor
.ComObjectType"/>.
100
internal static TypeConverter GetIComponentConverter() =>
TypeDescriptor
.GetConverter(typeof(IComponent));
104
=>
TypeDescriptor
.GetEditor(component.GetType(), baseEditorType);
341
TypeConverter subConverter =
TypeDescriptor
.GetConverter(type);
347
object? subEditor =
TypeDescriptor
.GetEditor(type, editorType);
System\Windows\Forms\Control.cs (2)
12628
sizeProperty =
TypeDescriptor
.GetProperties(this)[PropertyNames.Size];
12629
locationProperty =
TypeDescriptor
.GetProperties(this)[PropertyNames.Location];
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
168
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(this)["UseVisualStyleBackColor"];
System\Windows\Forms\Controls\Buttons\FlatButtonAppearanceConverter.cs (1)
27
return
TypeDescriptor
.GetProperties(value, attributes);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
912
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
943
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6814
converter =
TypeDescriptor
.GetConverter(type);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
250
formattedValueTypeConverter =
TypeDescriptor
.GetConverter(FormattedValueType);
736
valueTypeConverter =
TypeDescriptor
.GetConverter(ValueType);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (7)
313
:
TypeDescriptor
.GetConverter(DisplayType);
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);
1455
PropertyDescriptor? propDesc =
TypeDescriptor
.GetProperties(item!).Find(field, ignoreCase: true);
1473
PropertyDescriptor? propDesc =
TypeDescriptor
.GetProperties(itemCandidate).Find(field, ignoreCase: true);
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (2)
95
TypeConverter intConverter =
TypeDescriptor
.GetConverter(typeof(int));
153
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(LinkArea), attributes);
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
91
TypeConverter intConverter =
TypeDescriptor
.GetConverter(typeof(int));
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
448
descriptor =
TypeDescriptor
.GetProperties(item).Find(field, true);
545
s_stringTypeConverter ??=
TypeDescriptor
.GetConverter(typeof(string));
550
s_stringTypeConverter ??=
TypeDescriptor
.GetConverterFromRegisteredType(typeof(string));
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
42
Type t =
TypeDescriptor
.GetReflectionType(value);
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
50
PropertyDescriptorCollection listViewItemProps =
TypeDescriptor
.GetProperties(instance);
61
PropertyDescriptorCollection listViewProps =
TypeDescriptor
.GetProperties(listViewInstance);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
109
args[i] =
TypeDescriptor
.GetConverter(propValue).ConvertToString(context, culture, propValue);
175
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(SelectionRange), attributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
2007
enable =
TypeDescriptor
.GetEditor(obj, typeof(ComponentEditor)) is not null;
2386
OnComComponentNameChanged(new ComponentRenameEventArgs(obj, oldName: null,
TypeDescriptor
.GetClassName(obj)));
2548
TypeDescriptor
.Refreshed += OnTypeDescriptorRefreshed;
2557
TypeDescriptor
.Refreshed -= OnTypeDescriptorRefreshed;
2954
&&
TypeDescriptor
.GetEditor(propertyType, typeof(UITypeEditor)) is UITypeEditor editor)
3139
var editor = (ComponentEditor?)
TypeDescriptor
.GetEditor(obj, typeof(ComponentEditor));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (7)
124
protected virtual AttributeCollection Attributes =>
TypeDescriptor
.GetAttributes(PropertyType!);
371
forceReadOnly |=
TypeDescriptor
.GetAttributes(value).Contains(InheritanceAttribute.InheritedReadOnly);
385
bool hasImmutableAttribute =
TypeDescriptor
.GetAttributes(PropertyType!)[typeof(ImmutableObjectAttribute)]!
767
=> _typeConverter ??=
TypeDescriptor
.GetConverter((PropertyValue ?? PropertyType)!);
778
Editor = (UITypeEditor?)
TypeDescriptor
.GetEditor(PropertyType, typeof(UITypeEditor));
1156
PropertyDescriptor? property =
TypeDescriptor
.GetProperties(owner)[propertyName];
1309
defaultProperty =
TypeDescriptor
.GetDefaultProperty(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
138
TypeConverter converter =
TypeDescriptor
.GetConverter(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
45
||
TypeDescriptor
.GetAttributes(target).Contains(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (3)
49
return
TypeDescriptor
.GetProperties(component, attributes);
53
?
TypeDescriptor
.GetConverter(component)
57
?
TypeDescriptor
.GetProperties(component, attributes)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
100
typeName =
TypeDescriptor
.GetClassName(owner);
110
PropertyDescriptor? componentProperty =
TypeDescriptor
.GetProperties(ownerType)[PropertyName!];
114
typeName = componentType is null ?
TypeDescriptor
.GetClassName(owner) : componentType.FullName;
642
eventDescriptor =
TypeDescriptor
.GetEvents(eventObj!)[PropertyDescriptor.Name];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
198
editor = (InstanceCreationEditor?)
TypeDescriptor
.GetEditor(ute, typeof(InstanceCreationEditor));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
41
_valueClassName =
TypeDescriptor
.GetClassName(Target);
128
||
TypeDescriptor
.GetAttributes(Target).Contains(InheritanceAttribute.InheritedReadOnly))
185
_valueClassName =
TypeDescriptor
.GetClassName(Target);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
125
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(this)[nameof(UseVisualStyleBackColor)];
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (2)
50
percent = (double)
TypeDescriptor
.GetConverter(typeof(double)).ConvertFrom(context, culture, text)!;
55
percent = (double)
TypeDescriptor
.GetConverterFromRegisteredType(typeof(double)).ConvertFrom(context, culture, text)!;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
202
TypeDescriptor
.RegisterType<Keys>();
1106
return
TypeDescriptor
.GetConverter(typeof(Keys)).ConvertToString(context: null, CultureInfo.CurrentUICulture, shortcutKeys);
1111
return
TypeDescriptor
.GetConverterFromRegisteredType(typeof(Keys)).ConvertToString(context: null, CultureInfo.CurrentUICulture, shortcutKeys);
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (1)
85
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance);
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.cs (6)
495
InheritanceAttribute? attr = (InheritanceAttribute?)
TypeDescriptor
.GetAttributes(BindableComponent)[typeof(InheritanceAttribute)];
498
propInfos =
TypeDescriptor
.GetProperties(controlClass);
502
propInfos =
TypeDescriptor
.GetProperties(BindableComponent);
547
EventDescriptorCollection eventInfos =
TypeDescriptor
.GetEvents(BindableComponent);
721
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(value is not null ? value.GetType() : typeof(object));
795
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(value is not null ? value.GetType() : typeof(object));
System\Windows\Forms\DataBinding\BindingManagerBase.cs (5)
109
return
TypeDescriptor
.GetProperties(listType);
116
return
TypeDescriptor
.GetProperties(property.PropertyType, [new BrowsableAttribute(true)]);
123
return
TypeDescriptor
.GetProperties(list[0]!);
137
itemProps =
TypeDescriptor
.GetProperties(property.PropertyType, [new BrowsableAttribute(true)]);
159
itemProps =
TypeDescriptor
.GetProperties(list[0]!);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (2)
141
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(b)[constructorParameterProperty];
187
val =
TypeDescriptor
.GetProperties(b)[constructorParameterProperty]?.GetValue(b);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (8)
142
pdc =
TypeDescriptor
.GetProperties(target!);
487
return
TypeDescriptor
.GetProperties(target!, BrowsableAttributeList);
568
return
TypeDescriptor
.GetProperties(GetListItemType(type), BrowsableAttributeList);
578
pdc =
TypeDescriptor
.GetProperties(targetType.GetElementType()!, BrowsableAttributeList);
593
pdc =
TypeDescriptor
.GetProperties(type, BrowsableAttributeList);
631
pdc =
TypeDescriptor
.GetProperties(enumerable, BrowsableAttributeList);
639
pdc =
TypeDescriptor
.GetProperties(instance, BrowsableAttributeList);
643
pdc =
TypeDescriptor
.GetProperties(enumerable, BrowsableAttributeList);
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
39
_propInfo =
TypeDescriptor
.GetProperties(_dataSource).Find(_propName, true);
72
return $"{
TypeDescriptor
.GetClassName(_dataSource!)}.{_propName}";
System\Windows\Forms\Design\EventsTab.cs (6)
42
return
TypeDescriptor
.GetDefaultEvent(obj) is EventDescriptor defaultEvent
95
/// to get <paramref name="component"/> property descriptors from <see cref="
TypeDescriptor
.GetEvents(object)"/>.
110
TypeDescriptor
.GetEvents(component, attributes, noCustomTypeDesc: false));
131
var matchingComponentProperties =
TypeDescriptor
.GetProperties(component, specifiedAttributesPlusContent);
150
EventDescriptorCollection propertyEvents =
TypeDescriptor
.GetEvents(value!, attributes!);
156
matchingPropertyEvents.Add(
TypeDescriptor
.CreateProperty(property.ComponentType, property, MergablePropertyAttribute.No));
System\Windows\Forms\Design\PropertyTab.cs (1)
107
=>
TypeDescriptor
.GetDefaultProperty(component);
System\Windows\Forms\ImageIndexConverter.cs (1)
108
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance);
System\Windows\Forms\ImageKeyConverter.cs (1)
114
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance);
System\Windows\Forms\Internal\Formatter.cs (6)
143
sourceTypeTypeConverter =
TypeDescriptor
.GetConverter(sourceType);
148
sourceTypeTypeConverter =
TypeDescriptor
.GetConverterFromRegisteredType(sourceType);
159
targetTypeTypeConverter =
TypeDescriptor
.GetConverter(targetType);
164
targetTypeTypeConverter =
TypeDescriptor
.GetConverterFromRegisteredType(targetType);
298
TypeConverter targetTypeTypeConverter =
TypeDescriptor
.GetConverter(targetType);
304
TypeConverter sourceTypeTypeConverter =
TypeDescriptor
.GetConverter(sourceType);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
102
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(TableLayoutPanelCellPosition), attributes);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (7)
46
TypeConverter converter =
TypeDescriptor
.GetConverter(this);
472
converter =
TypeDescriptor
.GetConverter(this);
477
TypeDescriptor
.RegisterType<TableLayoutSettings>();
478
converter =
TypeDescriptor
.GetConverterFromRegisteredType(this);
501
TypeDescriptor
.RegisterType<Control>();
515
prop =
TypeDescriptor
.GetProperties(c)["Name"];
520
prop =
TypeDescriptor
.GetPropertiesFromRegisteredType(c)["Name"];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
49
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(tableControl)["Name"];
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdges.cs (1)
20
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(DockPaddingEdges), attributes);
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
76
fontSize = (float)
TypeDescriptor
.GetConverter(typeof(float)).ConvertFromString(null, s_culture, unitTokens.size);
System.Windows.Forms.Design (507)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
89
if (!
TypeDescriptor
.GetConverter(type).GetCreateInstanceSupported())
91
foreach (PropertyDescriptor p in
TypeDescriptor
.GetProperties(type))
1232
AttributeCollection ICustomTypeDescriptor.GetAttributes() =>
TypeDescriptor
.GetAttributes(PropertyType);
1334
_uiTypeEditor =
TypeDescriptor
.GetEditor(_value, typeof(UITypeEditor));
System\ComponentModel\Design\CollectionEditor.cs (5)
116
if (
TypeDescriptor
.CreateInstance(host, itemType, argTypes: null, args: null) is { } obj)
125
nameof(
TypeDescriptor
),
153
PropertyDescriptor? property =
TypeDescriptor
.GetDefaultProperty(CollectionType);
162
text =
TypeDescriptor
.GetConverter(value).ConvertToString(value);
176
PropertyInfo[] properties =
TypeDescriptor
.GetReflectionType(CollectionType).GetProperties(BindingFlags.Public | BindingFlags.Instance);
System\ComponentModel\Design\ComponentDesigner.cs (7)
40
PropertyDescriptor? defaultProperty =
TypeDescriptor
.GetDefaultProperty(_component);
271
EventDescriptor? defaultEvent =
TypeDescriptor
.GetDefaultEvent(comp);
410
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(Component);
440
TypeDescriptor
.Refresh(Component); // force TypeDescriptor to re-query us.
640
events[evt.Name] =
TypeDescriptor
.CreateEvent(evt.ComponentType, evt, ReadOnlyAttribute.Yes);
668
properties[prop.Name] =
TypeDescriptor
.CreateProperty(prop.ComponentType, prop, ReadOnlyAttribute.Yes);
713
properties[SettingsKeyName] =
TypeDescriptor
.CreateProperty(
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
62
descriptor =
TypeDescriptor
.GetProperties(_designer.Component.GetType())[propertyName];
System\ComponentModel\Design\DesignerActionPanel.cs (1)
669
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(list)[pti.MemberName]
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
25
protected PropertyDescriptor PropertyDescriptor => _propDesc ??=
TypeDescriptor
.GetProperties(_actionList!)[PropertyItem!.MemberName]!;
System\ComponentModel\Design\DesignerActionUI.cs (1)
171
InheritanceAttribute? attribute = (InheritanceAttribute?)
TypeDescriptor
.GetAttributes(comp)[typeof(InheritanceAttribute)];
System\ComponentModel\Design\DesignerHost.cs (4)
134
Type type =
TypeDescriptor
.GetProvider(component).GetReflectionType(typeof(object));
140
TypeDescriptor
.AddProvider(typeProvider, component);
234
&& !
TypeDescriptor
.GetAttributes(extenderComponent).Contains(InheritanceAttribute.InheritedReadOnly)
397
Type reflectType =
TypeDescriptor
.GetReflectionType(component);
System\ComponentModel\Design\DesignSurface.cs (6)
263
?
TypeDescriptor
.CreateDesigner(component, typeof(IRootDesigner)) as IRootDesigner
264
:
TypeDescriptor
.CreateDesigner(component, typeof(IDesigner));
277
ConstructorInfo? ctor =
TypeDescriptor
.GetReflectionType(type).GetConstructor([]);
280
instance =
TypeDescriptor
.CreateInstance(this, type, [], []);
286
ctor =
TypeDescriptor
.GetReflectionType(type).GetConstructor(BindingFlags.Public | BindingFlags.Instance | BindingFlags.ExactBinding, null, [typeof(IContainer)], null);
291
instance =
TypeDescriptor
.CreateInstance(this, type, [typeof(IContainer)], [ComponentContainer]);
System\ComponentModel\Design\InheritanceService.cs (1)
87
Type reflect =
TypeDescriptor
.GetReflectionType(type);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
45
foreach (MethodInfo method in
TypeDescriptor
.GetReflectionType(collection).GetMethods(BindingFlags.Public | BindingFlags.Instance))
System\ComponentModel\Design\MenuCommandService.cs (3)
43
TypeDescriptor
.Refreshed += OnTypeRefreshed;
154
TypeDescriptor
.Refreshed -= OnTypeRefreshed;
200
!
TypeDescriptor
.GetAttributes(selectedComponent).Contains(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\ReferenceService.cs (3)
47
foreach (PropertyDescriptor property in
TypeDescriptor
.GetProperties(reference, s_attributes))
321
Debug.Assert(
TypeDescriptor
.GetComponentName(sitedComponent) is not null, $"Sited component has no name: {sitedComponent}");
344
string? siteName =
TypeDescriptor
.GetComponentName(SitedComponent);
System\ComponentModel\Design\SelectionService.cs (2)
234
string? helpContext =
TypeDescriptor
.GetClassName(component);
235
HelpKeywordAttribute? contextAttribute = (HelpKeywordAttribute?)
TypeDescriptor
.GetAttributes(component)[typeof(HelpKeywordAttribute)];
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (8)
153
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
185
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
418
PropertyDescriptorCollection eventProps = ebs.GetEventProperties(
TypeDescriptor
.GetEvents(comp));
444
PropertyDescriptor? modifierProp =
TypeDescriptor
.GetProperties(comp)["Modifiers"];
464
string? name =
TypeDescriptor
.GetComponentName(c);
580
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(data._value);
596
PropertyDescriptorCollection events = ebs.GetEventProperties(
TypeDescriptor
.GetEvents(data._value));
636
object? modifier =
TypeDescriptor
.GetProperties(data._value)["Modifiers"]?.GetValue(data._value);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
157
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(t);
260
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(baseType);
873
&& field.Type.BaseType.Equals(
TypeDescriptor
.GetClassName(component)))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
57
return modifierConverter ??
TypeDescriptor
.GetConverter(typeof(MemberAttributes));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (1)
41
if (!
TypeDescriptor
.GetAttributes(o)[typeof(InheritanceAttribute)]!.Equals(InheritanceAttribute.NotInherited))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (3)
41
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(o);
89
FieldInfo? field =
TypeDescriptor
.GetReflectionType(baseType).GetField(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
114
PropertyInfo? prop =
TypeDescriptor
.GetReflectionType(baseType).GetProperty(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (3)
66
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance, s_deserializeFilter);
180
string? varTypeName =
TypeDescriptor
.GetClassName(value);
348
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance, [BrowsableAttribute.Yes]);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (10)
159
return
TypeDescriptor
.GetReflectionType(type);
204
return
TypeDescriptor
.GetReflectionType(instance);
233
return
TypeDescriptor
.GetProperties(instance);
236
return
TypeDescriptor
.GetProperties(instance, attributes);
265
return
TypeDescriptor
.GetEvents(instance);
268
return
TypeDescriptor
.GetEvents(instance, attributes);
290
return
TypeDescriptor
.GetAttributes(instance);
322
return
TypeDescriptor
.GetAttributes(type);
1882
TypeConverter converter =
TypeDescriptor
.GetConverter(value);
1928
return new CodeObjectCreateExpression(
TypeDescriptor
.GetClassName(value)!, []);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (3)
326
provider ??=
TypeDescriptor
.GetProvider(originalCollection);
411
if (o is IComponent &&
TypeDescriptor
.GetAttributes(o).Contains(InheritanceAttribute.InheritedReadOnly))
675
MethodInfo? clearMethod =
TypeDescriptor
.GetReflectionType(collection).GetMethod("Clear", BindingFlags.Public | BindingFlags.Instance, null, [], null);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (3)
63
props ??=
TypeDescriptor
.GetProperties(comp);
105
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(value);
208
string? typeName =
TypeDescriptor
.GetClassName(value);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (6)
287
instance =
TypeDescriptor
.CreateInstance(_provider, type, argTypes: null, argArray);
304
foreach (ConstructorInfo info in
TypeDescriptor
.GetReflectionType(type).GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.CreateInstance))
341
instance =
TypeDescriptor
.CreateInstance(_provider, type, argTypes: null, tempArgs);
444
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(objectType);
489
DefaultSerializationProviderAttribute? attribute = (DefaultSerializationProviderAttribute?)
TypeDescriptor
.GetAttributes(serializerType)[typeof(DefaultSerializationProviderAttribute)];
672
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(propObject);
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
35
TypeConverter? converter =
TypeDescriptor
.GetConverter(enumValue);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
64
Type type =
TypeDescriptor
.GetProvider(propertyValue).GetReflectionType(typeof(object));
71
TypeDescriptor
.AddProvider(typeProvider, propertyValue);
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
54
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(comp)["LoadLanguage"];
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
248
typeName =
TypeDescriptor
.GetClassName(value);
306
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(value)["Modifiers"];
System\ComponentModel\Design\ToolStripContainerActionList.cs (8)
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"];
163
if (
TypeDescriptor
.GetAttributes(control)?[typeof(InheritanceAttribute)] is not InheritanceAttribute inheritanceAttribute
171
PropertyDescriptor? controlsProp =
TypeDescriptor
.GetProperties(newParent)["Controls"];
System\ComponentModel\Design\UndoEngine.cs (1)
452
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
27
_cursorConverter =
TypeDescriptor
.GetConverter(typeof(Cursor));
System\Drawing\Design\ToolboxItem.cs (2)
267
comps.Add((IComponent)
TypeDescriptor
.CreateInstance(provider: null, createType, argTypes: null, args: null)!);
616
foreach (Attribute a in
TypeDescriptor
.GetAttributes(type))
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
560
designer =
TypeDescriptor
.CreateDesigner(targetControl, typeof(IDesigner)) as ControlDesigner;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (8)
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"];
365
string name =
TypeDescriptor
.GetComponentName(_dragComponents[0].dragComponent);
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 (15)
239
string name =
TypeDescriptor
.GetComponentName(_resizeComponents[0].resizeControl);
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"];
518
propWidth =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Width"];
519
propHeight =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Height"];
520
propTop =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Top"];
521
propLeft =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Left"];
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\TableLayoutPanelBehavior.cs (6)
102
_resizeProp =
TypeDescriptor
.GetProperties(_tableGlyph.Style)[isColumn ? "Width" : "Height"];
108
_changedProp =
TypeDescriptor
.GetProperties(_table)[isColumn ? "ColumnStyles" : "RowStyles"];
127
_rightStyle.styleProp =
TypeDescriptor
.GetProperties(_rightStyle.style)[isColumn ? "Width" : "Height"];
131
_leftStyle.styleProp =
TypeDescriptor
.GetProperties(_leftStyle.style)[isColumn ? "Width" : "Height"];
323
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(_styles[i])[isColumn ? "Width" : "Height"];
331
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(_styles[absIndex])[isColumn ? "Width" : "Height"];
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
164
PropertyDescriptor? controlsProp =
TypeDescriptor
.GetProperties(newParent)["Controls"];
197
string? name =
TypeDescriptor
.GetComponentName(control);
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (2)
78
MemberDescriptor? memberDescriptor =
TypeDescriptor
.GetProperties(navigator)["Items"];
84
PropertyDescriptor? propertyDescriptor =
TypeDescriptor
.GetProperties(navigator)[itemName];
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
62
PropertyDescriptorCollection propertyDescriptorCollection =
TypeDescriptor
.GetProperties(bindingSource);
System\Windows\Forms\Design\ButtonBaseDesigner.cs (2)
27
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(Component)["UseVisualStyleBackColor"];
51
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
65
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\CollectionEditVerbManager.cs (2)
34
prop =
TypeDescriptor
.GetDefaultProperty(designer.Component);
196
CollectionEditor itemsEditor =
TypeDescriptor
.GetEditor(propertyValue, typeof(UITypeEditor)) as CollectionEditor;
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
62
property =
TypeDescriptor
.GetProperties(Context.Instance)["Columns"];
System\Windows\Forms\Design\ComboBoxDesigner.cs (2)
84
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
110
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\CommandSet.cs (16)
559
return
TypeDescriptor
.GetProperties(comp)[propName];
604
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(currentSnapComponent);
925
PropertyDescriptor? propLoc =
TypeDescriptor
.GetProperties(component)["Location"];
1006
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
1277
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
1337
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
1964
PropertyDescriptorCollection eventProps = evs.GetEventProperties(
TypeDescriptor
.GetEvents(curComp));
2059
if ((
TypeDescriptor
.GetAttributes(curComp).Contains(DesignTimeVisibleAttribute.Yes)) || curComp is ToolStripItem)
2087
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(curComp);
2727
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(curComp);
2927
if (!Equals(
TypeDescriptor
.GetAttributes(obj)[typeof(InheritanceAttribute)], InheritanceAttribute.NotInherited))
3085
InheritanceAttribute? attr = (InheritanceAttribute?)
TypeDescriptor
.GetAttributes(primarySelection)[typeof(InheritanceAttribute)];
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 (13)
306
PropertyDescriptor trayIconProp =
TypeDescriptor
.GetProperties(_mainDesigner.Component)["TrayLargeIcon"];
412
PropertyDescriptor trayAAProp =
TypeDescriptor
.GetProperties(_mainDesigner.Component)["TrayAutoArrange"];
722
TypeDescriptor
.Refresh(component);
773
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(t);
813
return
TypeDescriptor
.GetAttributes(component).Contains(DesignTimeVisibleAttribute.Yes);
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"];
1949
_inheritanceAttribute = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(component)[typeof(InheritanceAttribute)];
2371
prop =
TypeDescriptor
.GetProperties(_component)["Locked"];
2442
ToolboxBitmapAttribute attr = (ToolboxBitmapAttribute)
TypeDescriptor
.GetAttributes(_component)[typeof(ToolboxBitmapAttribute)];
2470
EventDescriptor defaultEvent =
TypeDescriptor
.GetDefaultEvent(component);
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\ControlCodeDomSerializer.cs (4)
243
if (
TypeDescriptor
.GetAttributes(component).Contains(InheritanceAttribute.InheritedReadOnly))
319
return
TypeDescriptor
.GetProvider(context).GetReflectionType(runtimeType);
351
if (
TypeDescriptor
.GetReflectionType(control).GetMethod(
428
InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(child)[typeof(InheritanceAttribute)]!;
System\Windows\Forms\Design\ControlCommandSet.cs (11)
384
props =
TypeDescriptor
.GetProperties(c);
404
props =
TypeDescriptor
.GetProperties(currentSnapComponent);
533
PropertyDescriptor dockProp =
TypeDescriptor
.GetProperties(comp)["Dock"];
770
PropertyDescriptor propIntegralHeight =
TypeDescriptor
.GetProperties(component)["IntegralHeight"];
776
PropertyDescriptor propItemHeight =
TypeDescriptor
.GetProperties(component)["ItemHeight"];
785
PropertyDescriptor propSize =
TypeDescriptor
.GetProperties(component)["Size"];
1046
controlsProp =
TypeDescriptor
.GetProperties(parent)["Controls"];
1109
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(parent)["Controls"];
1187
PropertyDescriptor lockedProp =
TypeDescriptor
.GetProperties(_baseControl)["Locked"];
1205
lockedProp =
TypeDescriptor
.GetProperties(component)["Locked"];
1320
!
TypeDescriptor
.GetAttributes(obj)[typeof(InheritanceAttribute)].Equals(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ControlDesigner.cs (13)
205
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(component);
768
if (
TypeDescriptor
.GetAttributes(Component).Contains(DesignTimeVisibleAttribute.Yes)
826
if (
TypeDescriptor
.GetAttributes(Component).Contains(DesignTimeVisibleAttribute.Yes)
915
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(component.GetType());
934
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(Component);
1141
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
1159
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(Component);
1177
PropertyDescriptor? dockProp =
TypeDescriptor
.GetProperties(Component)["Dock"];
1201
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
1595
_hasLocation =
TypeDescriptor
.GetProperties(Component)["Location"] is not null;
1633
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ControlDesigner), prop, []);
1643
properties["Controls"] =
TypeDescriptor
.CreateProperty(
1656
properties["Locked"] =
TypeDescriptor
.CreateProperty(
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
74
TypeDescriptor
.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
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 (5)
140
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(column);
206
AttributeCollection? attributes =
TypeDescriptor
.GetAttributes(type);
540
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(_liveDataGridView)["Columns"];
731
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
816
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (18)
140
TypeDescriptor
.RemoveAssociation(listBoxItem.DataGridViewColumn, listBoxItem.DataGridViewColumnDesigner);
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"];
766
TypeDescriptor
.RemoveAssociation(lbi.DataGridViewColumn, lbi.DataGridViewColumnDesigner);
868
TypeDescriptor
.RemoveAssociation(lbi.DataGridViewColumn, lbi.DataGridViewColumnDesigner);
1217
TypeDescriptor
.CreateAssociation(DataGridViewColumn, DataGridViewColumnDesigner);
1242
AttributeCollection ICustomTypeDescriptor.GetAttributes() =>
TypeDescriptor
.GetAttributes(DataGridViewColumn);
1244
string? ICustomTypeDescriptor.GetClassName() =>
TypeDescriptor
.GetClassName(DataGridViewColumn);
1246
string? ICustomTypeDescriptor.GetComponentName() =>
TypeDescriptor
.GetComponentName(DataGridViewColumn);
1249
TypeConverter ICustomTypeDescriptor.GetConverter() =>
TypeDescriptor
.GetConverter(DataGridViewColumn);
1251
EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() =>
TypeDescriptor
.GetDefaultEvent(DataGridViewColumn);
1253
PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() =>
TypeDescriptor
.GetDefaultProperty(DataGridViewColumn);
1256
object? ICustomTypeDescriptor.GetEditor(Type type) =>
TypeDescriptor
.GetEditor(DataGridViewColumn, type);
1258
EventDescriptorCollection ICustomTypeDescriptor.GetEvents() =>
TypeDescriptor
.GetEvents(DataGridViewColumn);
1260
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attrs) =>
TypeDescriptor
.GetEvents(DataGridViewColumn, attrs!);
1268
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(DataGridViewColumn);
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (4)
238
properties["Width"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewColumnDesigner), prop, []);
249
properties["Name"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewColumnDesigner),
260
properties["Name"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewColumnDesigner),
267
properties["UserAddedColumn"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewColumnDesigner), "UserAddedColumn", typeof(bool),
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
102
DataGridViewColumnDesignTimeVisibleAttribute? attr =
TypeDescriptor
.GetAttributes(t)[typeof(DataGridViewColumnDesignTimeVisibleAttribute)] as DataGridViewColumnDesignTimeVisibleAttribute;
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (2)
105
properties["ValueMember"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewComboBoxColumnDesigner), property, []);
111
properties["DisplayMember"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewComboBoxColumnDesigner), property, []);
System\Windows\Forms\Design\DataGridViewDesigner.cs (17)
43
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(typeof(DataGridViewColumn))["Width"];
307
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(dataGridView);
373
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewDesigner), prop, empty);
413
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(dataGridViewColumn)["UserAddedColumn"];
434
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
453
PropertyDescriptor? columnsProp =
TypeDescriptor
.GetProperties(dataGridView)["Columns"];
473
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(dataGridViewColumn)["UserAddedColumn"];
495
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
579
PropertyDescriptor? columnsProp =
TypeDescriptor
.GetProperties(dataGridView)["Columns"];
591
PropertyDescriptor? propertyDescriptor =
TypeDescriptor
.GetProperties(col)["UserAddedColumn"];
626
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
663
DataGridViewColumn? dataGridViewColumn =
TypeDescriptor
.CreateInstance(host, columnType, null, null) as DataGridViewColumn;
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\DesignBindingPicker.cs (1)
1487
ListBindableAttribute? listBindable =
TypeDescriptor
.GetAttributes(dataSource)[typeof(ListBindableAttribute)] as ListBindableAttribute;
System\Windows\Forms\Design\DesignerExtenders.NameExtenderProvider.cs (1)
59
if (!
TypeDescriptor
.GetAttributes(o)[typeof(InheritanceAttribute)]?.Equals(InheritanceAttribute.NotInherited) ?? false)
System\Windows\Forms\Design\DesignerExtenders.NameInheritedExtenderProvider.cs (1)
39
if (!
TypeDescriptor
.GetAttributes(o)[typeof(InheritanceAttribute)]?.Equals(InheritanceAttribute.NotInherited) ?? false)
System\Windows\Forms\Design\DocumentDesigner.cs (12)
517
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(Component)["Locked"];
524
prop =
TypeDescriptor
.GetProperties(Component)["AutoSize"];
531
prop =
TypeDescriptor
.GetProperties(Component)["AutoSizeMode"];
676
PropertyDescriptor backProp =
TypeDescriptor
.GetProperties(Component.GetType())["BackColor"];
896
if (!addControl || !
TypeDescriptor
.GetAttributes(component).Contains(DesignTimeVisibleAttribute.Yes))
1240
properties["TrayHeight"] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), "TrayHeight", typeof(int),
1246
properties["TrayLargeIcon"] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), "TrayLargeIcon", typeof(bool),
1252
properties["DoubleBuffered"] =
TypeDescriptor
.CreateProperty(typeof(Control), "DoubleBuffered", typeof(bool),
1280
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), prop, empty);
1287
properties["AutoScaleDimensions"] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible);
1293
properties["AutoScaleMode"] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible, BrowsableAttribute.Yes);
1301
properties[noBrowseProps[i]] =
TypeDescriptor
.CreateProperty(prop.ComponentType, prop, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
System\Windows\Forms\Design\EditorServiceContext.cs (3)
27
prop =
TypeDescriptor
.GetDefaultProperty(designer.Component);
46
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(objectToChange)[propName]!;
147
CollectionEditor? itemsEditor =
TypeDescriptor
.GetEditor(propertyValue, typeof(UITypeEditor)) as CollectionEditor;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (5)
80
TypeDescriptor
.AddAttributes(child, InheritanceAttribute.InheritedReadOnly);
95
properties["FlowDirection"] =
TypeDescriptor
.CreateProperty(typeof(FlowLayoutPanelDesigner), flowDirection, []);
340
string name =
TypeDescriptor
.GetComponentName(_dragControls[0]);
591
PropertyDescriptor controlsProperty =
TypeDescriptor
.GetProperties(Component)["Controls"];
724
PropertyDescriptor controlsProperty =
TypeDescriptor
.GetProperties(Component)["Controls"];
System\Windows\Forms\Design\FormatStringEditor.cs (11)
47
changeService.OnComponentChanging(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["Format"]);
48
changeService.OnComponentChanging(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["NullValue"]);
49
changeService.OnComponentChanging(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["FormatProvider"]);
53
changeService.OnComponentChanging(component,
TypeDescriptor
.GetProperties(component)["FormatString"]);
54
changeService.OnComponentChanging(component,
TypeDescriptor
.GetProperties(component)["FormatInfo"]);
67
TypeDescriptor
.Refresh(component);
73
changeService.OnComponentChanged(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["Format"]);
74
changeService.OnComponentChanged(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["NullValue"]);
75
changeService.OnComponentChanged(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["FormatProvider"]);
79
changeService.OnComponentChanged(component,
TypeDescriptor
.GetProperties(component)["FormatString"]);
80
changeService.OnComponentChanged(component,
TypeDescriptor
.GetProperties(component)["FormatInfo"]);
System\Windows\Forms\Design\FormDocumentDesigner.cs (5)
236
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
322
PropertyDescriptor windowStateProp =
TypeDescriptor
.GetProperties(component.GetType())["WindowState"];
468
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(FormDocumentDesigner), prop, empty);
476
properties["AutoScaleBaseSize"] =
TypeDescriptor
.CreateProperty(typeof(FormDocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible);
483
properties["ClientSize"] =
TypeDescriptor
.CreateProperty(typeof(FormDocumentDesigner), prop, new DefaultValueAttribute(new Size(-1, -1)));
System\Windows\Forms\Design\ImageCollectionEditor.cs (3)
37
PropertyDescriptor property =
TypeDescriptor
.GetProperties(value)["Name"];
53
text =
TypeDescriptor
.GetConverter(value).ConvertToString(value);
65
UITypeEditor editor = (UITypeEditor)
TypeDescriptor
.GetEditor(typeof(ImageListImage), typeof(UITypeEditor));
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
63
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(instance);
162
PropertyDescriptor? property =
TypeDescriptor
.GetProperties(parentInstance)[pathInfo[i]];
System\Windows\Forms\Design\ImageListActionList.cs (2)
29
TypeDescriptor
.GetProperties(Component)[nameof(ColorDepth)]?.SetValue(Component, value);
41
TypeDescriptor
.GetProperties(Component)[nameof(ImageSize)]?.SetValue(Component, value);
System\Windows\Forms\Design\ImageListDesigner.cs (2)
118
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ImageListDesigner), prop, []);
129
properties["Images"] =
TypeDescriptor
.CreateProperty(typeof(ImageListDesigner), "Images", typeof(OriginalImageCollection), attrs);
System\Windows\Forms\Design\LabelDesigner.cs (2)
35
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
147
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
37
property =
TypeDescriptor
.GetProperties(context.Instance)["Text"];
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
67
properties[nameof(IntegralHeight)] =
TypeDescriptor
.CreateProperty(typeof(ListBoxDesigner), integralHeightProp, []);
72
properties[nameof(Dock)] =
TypeDescriptor
.CreateProperty(typeof(ListBoxDesigner), dockProp, []);
System\Windows\Forms\Design\ListViewActionList.cs (3)
33
set =>
TypeDescriptor
.GetProperties(_listView)[nameof(View)]!.SetValue(Component, value);
39
set =>
TypeDescriptor
.GetProperties(_listView)[nameof(LargeImageList)]!.SetValue(Component, value);
45
set =>
TypeDescriptor
.GetProperties(_listView)[nameof(SmallImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\ListViewDesigner.cs (2)
120
properties["OwnerDraw"] =
TypeDescriptor
.CreateProperty(typeof(ListViewDesigner), ownerDrawProp, []);
127
properties["View"] =
TypeDescriptor
.CreateProperty(typeof(ListViewDesigner), viewProp, []);
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (2)
32
PropertyDescriptor property =
TypeDescriptor
.GetDefaultProperty(CollectionType);
43
text =
TypeDescriptor
.GetConverter(value).ConvertToString(value);
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (2)
50
PropertyDescriptor property =
TypeDescriptor
.GetDefaultProperty(CollectionType);
62
text =
TypeDescriptor
.GetConverter(value).ConvertToString(value);
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
179
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(MaskedTextBoxDesigner), prop, empty);
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
51
PropertyDescriptor? maskProperty =
TypeDescriptor
.GetProperties(_maskedTextBox)["Mask"];
System\Windows\Forms\Design\OleDragDropHandler.cs (7)
264
if (!
TypeDescriptor
.GetAttributes(comps[i]).Contains(DesignTimeVisibleAttribute.Yes))
283
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(rootComponent)["Language"];
355
PropertyDescriptor? loc =
TypeDescriptor
.GetProperties(comps[i])["Location"];
476
InheritanceAttribute attr = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(components[i])[typeof(InheritanceAttribute)]!;
761
PropertyDescriptor? loc =
TypeDescriptor
.GetProperties(comp)["TrayLocation"];
763
loc ??=
TypeDescriptor
.GetProperties(comp)["Location"];
807
if (
TypeDescriptor
.GetAttributes(comp).Contains(DesignTimeVisibleAttribute.Yes))
System\Windows\Forms\Design\ParentControlDesigner.cs (19)
556
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(Control)["Controls"];
563
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(newChild);
938
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(component)["AutoSize"];
948
prop =
TypeDescriptor
.GetProperties(component)["PreferredSize"];
961
prop =
TypeDescriptor
.GetProperties(component)["Size"];
1331
_changeService.OnComponentChanging(Control,
TypeDescriptor
.GetProperties(Control)["Controls"]);
1343
_changeService.OnComponentChanged(Control,
TypeDescriptor
.GetProperties(Control)["Controls"]);
1361
_changeService.OnComponentChanging(Control,
TypeDescriptor
.GetProperties(Control)["Controls"]);
1525
InheritanceAttribute attr = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(comp)[typeof(InheritanceAttribute)];
2101
properties["DrawGrid"] =
TypeDescriptor
.CreateProperty(typeof(ParentControlDesigner), "DrawGrid", typeof(bool),
2107
properties["SnapToGrid"] =
TypeDescriptor
.CreateProperty(typeof(ParentControlDesigner), "SnapToGrid", typeof(bool),
2113
properties["GridSize"] =
TypeDescriptor
.CreateProperty(typeof(ParentControlDesigner), "GridSize", typeof(Size),
2121
properties["CurrentGridSize"] =
TypeDescriptor
.CreateProperty(typeof(ParentControlDesigner), "CurrentGridSize", typeof(Size),
2137
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(newParent)["Controls"];
2138
PropertyDescriptor locationProp =
TypeDescriptor
.GetProperties(newParent)["Location"];
2157
InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(control)[typeof(InheritanceAttribute)];
2164
PropertyDescriptor locProp =
TypeDescriptor
.GetProperties(control)["Location"];
2403
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(parent)["Controls"];
2483
designer =
TypeDescriptor
.CreateDesigner(component, typeof(IDesigner));
System\Windows\Forms\Design\PictureBoxActionList.cs (1)
24
set =>
TypeDescriptor
.GetProperties(_pictureBox)[nameof(PictureBox.SizeMode)]!.SetValue(Component, value);
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
88
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
21
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(Component)["TabStop"];
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
80
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(RichTextBoxDesigner), prop, empty);
System\Windows\Forms\Design\SelectionUIHandler.cs (12)
394
PropertyDescriptor? boundsProp =
TypeDescriptor
.GetProperties(components[i])["Bounds"];
424
PropertyDescriptor? trayProp =
TypeDescriptor
.GetProperties(components[i])["TrayLocation"];
436
PropertyDescriptor? leftProp =
TypeDescriptor
.GetProperties(components[i])["Left"];
437
PropertyDescriptor? topProp =
TypeDescriptor
.GetProperties(components[i])["Top"];
466
PropertyDescriptor? locationProp =
TypeDescriptor
.GetProperties(components[i])["Location"];
486
PropertyDescriptor? widthProp =
TypeDescriptor
.GetProperties(components[i])["Width"];
487
PropertyDescriptor? heightProp =
TypeDescriptor
.GetProperties(components[i])["Height"];
547
cs.OnComponentChanging(c,
TypeDescriptor
.GetProperties(c)["Location"]);
548
PropertyDescriptor? sizeProp =
TypeDescriptor
.GetProperties(c)["Size"];
552
sizeProp =
TypeDescriptor
.GetProperties(c)["ClientSize"];
623
PropertyDescriptor? sizeProp =
TypeDescriptor
.GetProperties(control)["Size"];
624
PropertyDescriptor? locProp =
TypeDescriptor
.GetProperties(control)["Location"];
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
62
private TypeConverter KeysConverter => _keysConverter ??=
TypeDescriptor
.GetConverter(typeof(Keys));
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
311
RaiseComponentChanging(
TypeDescriptor
.GetProperties(_splitContainer!)["SplitterDistance"]);
312
RaiseComponentChanged(
TypeDescriptor
.GetProperties(_splitContainer!)["SplitterDistance"], oldValue: null, newValue: null);
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)
30
? (InheritanceAttribute?)
TypeDescriptor
.GetAttributes(_splitterPanel.Parent)[typeof(InheritanceAttribute)]
118
PropertyDescriptor? lockedProp =
TypeDescriptor
.GetProperties(component)["Locked"];
233
properties[de.Key] =
TypeDescriptor
.CreateProperty(descriptor.ComponentType, descriptor, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (7)
178
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(item)["Image"];
201
MemberDescriptor member =
TypeDescriptor
.GetProperties(rootItem)["DropDownItems"];
214
MemberDescriptor topMember =
TypeDescriptor
.GetProperties(tool)["Items"];
325
PropertyDescriptor displayStyleProperty =
TypeDescriptor
.GetProperties(item)["DisplayStyle"];
329
PropertyDescriptor textProperty =
TypeDescriptor
.GetProperties(item)["Text"];
345
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(item)["Image"];
359
MemberDescriptor topMember =
TypeDescriptor
.GetProperties(tool)["Items"];
System\Windows\Forms\Design\StyleEditorForm.cs (3)
109
_rowStyleProp =
TypeDescriptor
.GetProperties(_tableLayoutPanel)["RowStyles"];
110
_colStyleProp =
TypeDescriptor
.GetProperties(_tableLayoutPanel)["ColumnStyles"];
1055
PropertyDescriptor childProperty =
TypeDescriptor
.GetProperties(_tableLayoutPanel)[nameof(TableLayoutPanel.Controls)];
System\Windows\Forms\Design\TabControlDesigner.cs (7)
99
MemberDescriptor member =
TypeDescriptor
.GetProperties(component: Component)["Controls"];
262
MemberDescriptor member =
TypeDescriptor
.GetProperties(tc)["Controls"];
275
PropertyDescriptor nameProp =
TypeDescriptor
.GetProperties(page)["Name"];
283
PropertyDescriptor textProperty =
TypeDescriptor
.GetProperties(page)["Text"];
288
PropertyDescriptor styleProp =
TypeDescriptor
.GetProperties(page)["UseVisualStyleBackColor"];
332
MemberDescriptor member =
TypeDescriptor
.GetProperties(Component)["Controls"];
477
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(TabControlDesigner), prop, empty);
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
52
PropertyDescriptor? lsProp =
TypeDescriptor
.GetProperties(panel)[LayoutSettingsPropName];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (29)
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"];
1175
_rowStyleProp =
TypeDescriptor
.GetProperties(Table)["RowStyles"];
1176
_colStyleProp =
TypeDescriptor
.GetProperties(Table)["ColumnStyles"];
1183
TypeDescriptor
.AddAttributes(Control.Controls[i], InheritanceAttribute.InheritedReadOnly);
1365
PropertyDescriptor columnSpan =
TypeDescriptor
.GetProperties(dragControl)["ColumnSpan"];
1366
PropertyDescriptor rowSpan =
TypeDescriptor
.GetProperties(dragControl)["RowSpan"];
1401
AttributeCollection attribs =
TypeDescriptor
.GetAttributes(Component.GetType());
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"];
2104
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(TableLayoutPanelDesigner), prop, attribs);
2117
properties["Controls"] =
TypeDescriptor
.CreateProperty(typeof(TableLayoutPanelDesigner), "Controls", typeof(DesignerTableLayoutControlCollection), attrs);
2212
TypeDescriptor
.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (1)
453
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(control)["TabIndex"];
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\TextBoxActionList.cs (1)
22
set =>
TypeDescriptor
.GetProperties(_textBox)[nameof(Multiline)]!.SetValue(Component, value);
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (6)
31
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
77
return
TypeDescriptor
.GetProperties(typeof(TextBoxBase))["Text"]!.ShouldSerializeValue(Component);
93
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
114
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(TextBoxBaseDesigner), prop, []);
133
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(component)["Multiline"];
138
PropertyDescriptor? propAuto =
TypeDescriptor
.GetProperties(component)["AutoSize"];
System\Windows\Forms\Design\TextBoxDesigner.cs (1)
60
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(TextBoxDesigner), prop, empty);
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\ToolStripContainerDesigner.cs (5)
379
TypeDescriptor
.AddAttributes(_bottomToolStripPanel, bottomToolboxBitmapAttribute, new DescriptionAttribute("bottom"));
380
TypeDescriptor
.AddAttributes(_rightToolStripPanel, rightToolboxBitmapAttribute, new DescriptionAttribute("right"));
381
TypeDescriptor
.AddAttributes(_leftToolStripPanel, leftToolboxBitmapAttribute, new DescriptionAttribute("left"));
382
TypeDescriptor
.AddAttributes(_topToolStripPanel, topToolboxBitmapAttribute, new DescriptionAttribute("top"));
451
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripContainerDesigner), propertyDescriptor, empty);
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
95
events[noBrowseEvents[i]] =
TypeDescriptor
.CreateEvent(eventDescriptor.ComponentType, eventDescriptor, BrowsableAttribute.No);
System\Windows\Forms\Design\ToolStripDesigner.cs (20)
178
InheritanceAttribute ia = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(ToolStrip)[typeof(InheritanceAttribute)];
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"];
908
RaiseComponentChanging(
TypeDescriptor
.GetProperties(Component)["Items"]);
930
RaiseComponentChanged(
TypeDescriptor
.GetProperties(Component)["Items"], null, null);
1042
RaiseComponentChanged(
TypeDescriptor
.GetProperties(Component)["Items"], null, null);
1117
RaiseComponentChanging(
TypeDescriptor
.GetProperties(Component)["Items"]);
1440
new EditorServiceContext(this,
TypeDescriptor
.GetProperties(Component)["Items"], SR.ToolStripItemCollectionEditorVerb);
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"];
1839
string name =
TypeDescriptor
.GetComponentName(dragComponents[0]);
1858
changeService.OnComponentChanging(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
1921
changeService?.OnComponentChanged(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
1928
changeService.OnComponentChanging(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
1929
changeService.OnComponentChanged(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
2217
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
286
ToolStripItemDesignerAvailabilityAttribute visibilityAttribute = (ToolStripItemDesignerAvailabilityAttribute)
TypeDescriptor
.GetAttributes(t)[typeof(ToolStripItemDesignerAvailabilityAttribute)];
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
408
new EditorServiceContext(this,
TypeDescriptor
.GetProperties(Component)["Items"], SR.ToolStripItemCollectionEditorVerb);
566
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripDropDownDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (9)
663
string name =
TypeDescriptor
.GetComponentName(dragComponents[0]);
684
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
688
changeService.OnComponentChanging(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
766
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
770
changeService.OnComponentChanged(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
779
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
780
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
784
changeService.OnComponentChanging(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
785
changeService.OnComponentChanged(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
212
_verbManager = new CollectionEditVerbManager(SR.ToolStripDropDownItemCollectionEditorVerb, itemDesigner,
TypeDescriptor
.GetProperties(_currentItem)["DropDownItems"], false);
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 (15)
374
PropertyDescriptor textProp =
TypeDescriptor
.GetProperties(ToolStripItem)["Text"];
534
changeService.OnComponentChanging(parent,
TypeDescriptor
.GetProperties(parent)["DropDownItems"]);
556
changeService.OnComponentChanged(parent,
TypeDescriptor
.GetProperties(parent)["DropDownItems"]);
684
PropertyDescriptor pd =
TypeDescriptor
.GetProperties(ToolStripItem)["Text"];
702
PropertyDescriptor textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
785
changeService.OnComponentChanging(parent,
TypeDescriptor
.GetProperties(parent)["Items"]);
789
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
790
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
824
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(newItem)["Image"];
831
PropertyDescriptor dispProperty =
TypeDescriptor
.GetProperties(newItem)["DisplayStyle"];
835
PropertyDescriptor imageTransProperty =
TypeDescriptor
.GetProperties(newItem)["ImageTransparentColor"];
845
changeService.OnComponentChanged(parent,
TypeDescriptor
.GetProperties(parent)["Items"]);
849
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
850
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
1049
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripItemDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
1100
InheritanceAttribute ia = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(tool)[typeof(InheritanceAttribute)];
1128
InheritanceAttribute ia = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(tool)[typeof(InheritanceAttribute)];
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (14)
542
PropertyDescriptor textProp =
TypeDescriptor
.GetProperties(editedItem)["Text"];
893
PropertyDescriptor textProperty =
TypeDescriptor
.GetProperties(newItem)["Text"];
1683
MemberDescriptor member =
TypeDescriptor
.GetProperties(MenuItem.DropDown)["Items"];
1689
RaiseComponentChanging(
TypeDescriptor
.GetProperties(MenuItem)["DropDownItems"]);
1786
MemberDescriptor member =
TypeDescriptor
.GetProperties(MenuItem.DropDown)["Items"];
1792
RaiseComponentChanged(
TypeDescriptor
.GetProperties(MenuItem)["DropDownItems"], null, null);
1892
RaiseComponentChanged(
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"], null, null);
1982
RaiseComponentChanging(
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
2279
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripMenuItemDesigner), prop, empty);
2699
string name =
TypeDescriptor
.GetComponentName(dragComponents[0]);
2717
changeService?.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
2774
changeService?.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
2781
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
2782
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (4)
380
PropertyDescriptor? dockProp =
TypeDescriptor
.GetProperties(e.Control)["Dock"];
522
events[noBrowseEvents[i]] =
TypeDescriptor
.CreateEvent(eventDescriptor.ComponentType, eventDescriptor, BrowsableAttribute.No);
565
properties[noBrowseProps[i]] =
TypeDescriptor
.CreateProperty(propertyDescriptor.ComponentType, propertyDescriptor, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
577
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripPanelDesigner), propertyDescriptor, empty);
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
43
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(component)[propertyName];
System\Windows\Forms\Design\TreeViewActionList.cs (1)
26
set =>
TypeDescriptor
.GetProperties(_treeView)[nameof(TreeView.ImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
47
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (1)
54
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(UserControlDocumentDesigner), prop, []);
System.Windows.Forms.Design.Tests (125)
ControlDesignerTests.cs (3)
333
TypeDescriptor
.AddAttributes(_designer._control, new DockingAttribute(dockingBehavior));
345
PropertyDescriptor? dockPropDescriptor =
TypeDescriptor
.GetProperties(_designer._control)[nameof(Control.Dock)];
354
TypeDescriptor
.AddAttributes(_designer._control, new DockingAttribute(DockingBehavior.AutoDock));
EnsureEditorsTests.cs (3)
71
object editor =
TypeDescriptor
.GetEditor(type, typeof(UITypeEditor));
149
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(type);
165
Type reflectType =
TypeDescriptor
.GetReflectionType(type);
System\ComponentModel\Design\ArrayEditorTests.cs (1)
79
TypeDescriptor
.AddAttributes(component, attribute);
System\ComponentModel\Design\CollectionEditorTests.cs (1)
89
TypeDescriptor
.AddAttributes(component, attribute);
System\ComponentModel\Design\CollectionFormTests.cs (1)
477
TypeDescriptor
.AddAttributes(component, attribute);
System\ComponentModel\Design\ComponentDesignerTests.cs (26)
71
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
779
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[property])
892
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1003
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[property])
1119
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1212
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1303
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1393
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1500
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1586
yield return new object[] {
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.ReadOnlyProperty)] };
1587
yield return new object[] {
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.IntProperty)] };
1883
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
2306
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2326
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2347
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2359
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2433
EventDescriptor descriptor =
TypeDescriptor
.GetEvents(typeof(CustomComponent))[0];
2484
yield return new object[] {
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0], new(), new() };
2512
yield return new object[] { componentChangeService,
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0], new(), new() };
2542
yield return new object[] {
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0] };
2570
yield return new object[] { componentChangeService,
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0] };
2736
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2757
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2779
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2792
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2872
EventDescriptor descriptor =
TypeDescriptor
.GetEvents(typeof(CustomComponent))[0];
System\ComponentModel\Design\DesignerHostTests.cs (21)
384
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
388
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
392
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
455
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
459
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
463
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
653
.Returns(
TypeDescriptor
.GetAttributes(typeof(CustomTypeDescriptionProviderComponent)));
668
TypeDescriptor
.AddProvider(mockProvider.Object, component);
743
ICustomTypeDescriptor descriptor =
TypeDescriptor
.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
793
Assert.False(
TypeDescriptor
.GetProvider(component1).IsSupportedType(typeof(int)));
804
Assert.False(
TypeDescriptor
.GetProvider(component2).IsSupportedType(typeof(int)));
844
ICustomTypeDescriptor descriptor =
TypeDescriptor
.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
858
TypeDescriptor
.AddProvider(mockTypeDescriptionProvider.Object, component);
2575
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
2579
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
2583
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
2645
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
2649
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
2653
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
2924
yield return new object[] { new(),
TypeDescriptor
.GetProperties(typeof(string))[0] };
2994
yield return new object[] { new(),
TypeDescriptor
.GetProperties(typeof(string))[0], new(), new() };
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (34)
420
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
421
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
422
MemberDescriptor member3 =
TypeDescriptor
.GetEvents(typeof(DataClass))[nameof(DataClass.Event)];
466
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
467
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
468
MemberDescriptor member3 =
TypeDescriptor
.GetEvents(typeof(DataClass))[nameof(DataClass.Event)];
512
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
513
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
561
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
562
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
1131
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1132
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1174
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1175
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1231
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1232
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1302
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1303
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1365
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1374
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1391
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1401
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1410
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1411
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1453
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1454
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1510
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1511
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1581
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1582
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1644
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1653
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1670
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1680
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
256
TypeDescriptor
.AddProvider(mockProvider.Object, provider);
System\ComponentModel\Design\Serialization\SerializeAbsoluteContextTests.cs (2)
19
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(RootContext));
33
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(RootContext));
System\ComponentModel\Design\SiteNestedContainerTests.cs (12)
288
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
292
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
296
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
364
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
368
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
372
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
711
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
715
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
719
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
776
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
780
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
784
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (8)
318
ValidateResultBitmap(imagePropertyInfo, expected,
TypeDescriptor
.GetConverter(typeof(Bitmap)));
326
var converter =
TypeDescriptor
.GetConverter(bitmap);
374
ValidateResultBitmap(imagePropertyInfo, expected,
TypeDescriptor
.GetConverter(typeof(Bitmap)));
399
ValidateResultIcon(iconPropertyInfo, expected,
TypeDescriptor
.GetConverter(typeof(Icon)));
406
var converter =
TypeDescriptor
.GetConverter(icon);
454
ValidateResultIcon(iconPropertyInfo, expected,
TypeDescriptor
.GetConverter(typeof(Icon)));
605
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(AxHost.State));
608
converter =
TypeDescriptor
.GetConverter(typeof(AxHost.State));
System\Windows\Forms\Design\CollectionEditVerbManagerTests.cs (1)
27
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(ToolStripButton));
System\Windows\Forms\Design\FormatStringEditorTests.cs (6)
66
cs => cs.OnComponentChanging(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["Format"]),
70
cs => cs.OnComponentChanging(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["NullValue"]),
74
cs => cs.OnComponentChanging(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["FormatProvider"]),
89
cs => cs.OnComponentChanged(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["Format"], null, null),
93
cs => cs.OnComponentChanged(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["NullValue"], null, null),
97
cs => cs.OnComponentChanged(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["FormatProvider"], null, null),
System\Windows\Forms\Design\InheritedPropertyDescriptorTestExtensions.cs (1)
13
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(control);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (1)
23
var property =
TypeDescriptor
.GetProperties(instance)["Text"];
System\Windows\Forms\Design\ToolStripActionListTests.cs (2)
121
TypeDescriptor
.AddAttributes(_toolStrip, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
122
TypeDescriptor
.Refresh(_toolStrip);
ToolStripMenuItemDesignerTest.cs (1)
110
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(ToolStripMenuItem));
System.Windows.Forms.Primitives (9)
System\ComponentModel\TypeConverterHelper.cs (3)
43
converter =
TypeDescriptor
.GetConverter(typeof(T));
48
TypeDescriptor
.RegisterType<T>();
49
converter =
TypeDescriptor
.GetConverterFromRegisteredType(typeof(T));
System\ComponentModel\TypeDescriptorHelper.cs (5)
13
attribute =
TypeDescriptor
.GetAttributes(component)[typeof(T)] as T;
22
attribute =
TypeDescriptor
.GetAttributes(componentType)[typeof(T)] as T;
28
return (T?)
TypeDescriptor
.GetEditor(type, typeof(T));
33
editor =
TypeDescriptor
.GetEditor(component, typeof(T)) as T;
42
PropertyDescriptor? property =
TypeDescriptor
.GetProperties(component)[name];
System\Windows\Forms\PaddingConverter.cs (1)
114
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(Padding), attributes);
System.Windows.Forms.Primitives.TestUtilities (1)
System\Windows\Forms\BinaryFormat\BinaryFormatTestExtensions.cs (1)
56
converter =
TypeDescriptor
.GetConverter(type);
System.Windows.Forms.Tests (381)
System\Resources\ResxDataNodeTests.cs (2)
30
var converter =
TypeDescriptor
.GetConverter(bitmap);
44
var converter =
TypeDescriptor
.GetConverter(bitmap);
System\Windows\Forms\AxHostTests.cs (1)
3030
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(string))[nameof(string.Length)];
System\Windows\Forms\AxSystemMonitorTests.cs (2)
26
var properties =
TypeDescriptor
.GetProperties(_control);
27
var events =
TypeDescriptor
.GetEvents(_control);
System\Windows\Forms\AxWebBrowserTests.cs (2)
28
var properties =
TypeDescriptor
.GetProperties(_control);
29
var events =
TypeDescriptor
.GetEvents(_control);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
249
var propertyDescriptors =
TypeDescriptor
.GetProperties(value, s_visible);
System\Windows\Forms\BindingSourceTests.cs (1)
343
PropertyDescriptor sortProperty =
TypeDescriptor
.GetProperties(typeof(DataClass))[0];
System\Windows\Forms\ButtonBaseTests.cs (7)
678
TypeDescriptor
.AddProvider(mockProvider.Object, control);
1776
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
1795
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
1823
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
4280
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
4298
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
4325
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
System\Windows\Forms\ColorDialogTests.cs (2)
146
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)];
162
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)];
System\Windows\Forms\ColumnHeaderConverterTests.cs (1)
154
Assert.Equal(
TypeDescriptor
.GetProperties(item, null).Count, converter.GetProperties(null, item, null).Count);
System\Windows\Forms\ColumnHeaderTests.cs (7)
239
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)];
260
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)];
858
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
885
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
914
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
1054
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)];
1081
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)];
System\Windows\Forms\ComboBoxTests.cs (4)
279
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)];
295
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)];
1147
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ComboBox))[nameof(ComboBox.ForeColor)];
1163
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ComboBox))[nameof(ComboBox.ForeColor)];
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (5)
27
ValidateIPictureDispProperties(iPictureDisp,
TypeDescriptor
.GetProperties(iPictureDisp));
86
var properties =
TypeDescriptor
.GetProperties(iPicture);
217
var properties =
TypeDescriptor
.GetProperties(vbcontrol);
220
var events =
TypeDescriptor
.GetEvents(vbcontrol);
223
var attributes =
TypeDescriptor
.GetAttributes(vbcontrol);
System\Windows\Forms\ControlTests.Properties.cs (28)
1604
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.BackColor)];
1620
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.BackColor)];
3673
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Controls)];
3693
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Controls)];
4765
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Enabled)];
4781
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Enabled)];
5242
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Font)];
5267
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Font)];
5638
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
5654
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
7572
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Location)];
7596
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Location)];
7850
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Margin)];
7866
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Margin)];
8443
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.MaximumSize)];
8467
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.MaximumSize)];
9213
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.MinimumSize)];
9237
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.MinimumSize)];
9645
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Padding)];
9661
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Padding)];
10442
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.RightToLeft)];
10470
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.RightToLeft)];
11753
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Size)];
11777
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Size)];
12043
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Text)];
12070
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Text)];
13067
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Visible)];
13083
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Visible)];
System\Windows\Forms\DataGridViewRowConverterTests.cs (2)
16
TypeConverter converter =
TypeDescriptor
.GetConverter(row);
26
TypeConverter converter =
TypeDescriptor
.GetConverter(row);
System\Windows\Forms\Design\EventsTabTests.cs (4)
63
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(ClassWithDefaultEvent))[0];
66
.Setup(e => e.GetEventProperty(
TypeDescriptor
.GetDefaultEvent(typeof(ClassWithDefaultEvent))))
99
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(ClassWithDefaultEvent))[0];
102
.Setup(e => e.GetEventProperty(
TypeDescriptor
.GetDefaultEvent(typeof(ClassWithDefaultEvent))))
System\Windows\Forms\Design\PropertyTabTests.cs (2)
146
PropertyDescriptorCollection result =
TypeDescriptor
.GetProperties(typeof(ClassWithDefaultProperty));
172
PropertyDescriptorCollection result =
TypeDescriptor
.GetProperties(typeof(ClassWithDefaultProperty));
System\Windows\Forms\DockPaddingEdgesTests.cs (6)
388
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
409
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
430
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
451
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
472
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
488
Assert.IsType<ScrollableControl.DockPaddingEdgesConverter>(
TypeDescriptor
.GetConverter(typeof(ScrollableControl.DockPaddingEdges)));
System\Windows\Forms\ErrorProviderTests.cs (6)
308
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)];
319
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)];
510
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)];
521
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)];
557
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)];
569
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)];
System\Windows\Forms\FontDialogTests.cs (2)
331
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(FontDialog))[nameof(FontDialog.Font)];
348
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(FontDialog))[nameof(FontDialog.Font)];
System\Windows\Forms\ImageListTests.cs (6)
169
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)];
186
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)];
363
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)];
380
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)];
779
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)];
796
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)];
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (3)
1758
TypeDescriptor
.AddAttributes(settings, [new TypeConverterAttribute(type)]);
1814
TypeDescriptor
.AddAttributes(settings, [new TypeConverterAttribute(type)]);
1836
TypeDescriptor
.AddAttributes(settings, [new TypeConverterAttribute(type)]);
System\Windows\Forms\LinkAreaTests.cs (1)
99
Assert.IsType<LinkArea.LinkAreaConverter>(
TypeDescriptor
.GetConverter(area));
System\Windows\Forms\ListBindingHelperTests.cs (55)
210
TypeDescriptor
.AddProvider(customPropertyDescriptorProvider.Object, instance);
273
mockTypedList.Setup(t => t.GetItemProperties(null)).Returns(
TypeDescriptor
.GetProperties(typeof(DataClass)));
313
yield return new object[] { null,
TypeDescriptor
.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
315
yield return new object[] { new DataClass(),
TypeDescriptor
.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
316
yield return new object[] { typeof(DataClass),
TypeDescriptor
.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
318
yield return new object[] { new ListDataClass(),
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
319
yield return new object[] { new ListDataClass() { ListProperty = [new()] },
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
320
yield return new object[] { typeof(ListDataClass),
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
322
yield return new object[] { new MultiListDataClass(),
TypeDescriptor
.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } };
323
yield return new object[] { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] },
TypeDescriptor
.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().Take(0).ToArray(), new string[] { "ParentListProperty" } };
325
var inner = new PropertyDescriptor[] {
TypeDescriptor
.GetProperties(typeof(MultiListDataClass))[0],
TypeDescriptor
.GetProperties(typeof(ListDataClass))[0],
TypeDescriptor
.GetProperties(typeof(DataClass))[0] };
327
yield return new object[] { typeof(MultiListDataClass),
TypeDescriptor
.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } };
329
yield return new object[] { typeof(DataClass),
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
334
PropertyDescriptor[] descriptors =
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray();
355
mockTypedList.Setup(t => t.GetItemProperties(descriptors)).Returns(
TypeDescriptor
.GetProperties(typeof(DataClass)));
364
yield return new object[] { new EnumerableITypedListImplementor[] { new() },
TypeDescriptor
.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
365
yield return new object[] { new List<EnumerableITypedListImplementor> { new() },
TypeDescriptor
.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
366
yield return new object[] { new ArrayList { new EnumerableITypedListImplementor() },
TypeDescriptor
.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
367
yield return new object[] { new IEnumerableWrapper(new object[] { new EnumerableITypedListImplementor() }),
TypeDescriptor
.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
372
yield return new object[] { new NonEnumerableITypedListImplementor[] { new() },
TypeDescriptor
.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
373
yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() },
TypeDescriptor
.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
374
yield return new object[] { new ArrayList { new NonEnumerableITypedListImplementor() },
TypeDescriptor
.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
375
yield return new object[] { new IEnumerableWrapper(new object[] { new NonEnumerableITypedListImplementor() }),
TypeDescriptor
.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
379
yield return new object[] { new ITypedListDataClass(),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
380
yield return new object[] { typedListDataClass,
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
381
yield return new object[] { typeof(ITypedListDataClass),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
382
yield return new object[] { new ITypedListDataClass[] { new() },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
383
yield return new object[] { new ITypedListDataClass[] { typedListDataClass },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
384
yield return new object[] { new List<ITypedListDataClass> { new() },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
385
yield return new object[] { new List<ITypedListDataClass> { typedListDataClass },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
386
yield return new object[] { new ArrayList { new ITypedListDataClass() },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
387
yield return new object[] { new ArrayList { typedListDataClass },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
388
yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListDataClass() }),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
389
yield return new object[] { new IEnumerableWrapper(new object[] { typedListDataClass }),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
390
yield return new object[] { typeof(ITypedListDataClass[]),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
393
yield return new object[] { new ITypedListParent(),
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
394
yield return new object[] { typedListParent,
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
395
yield return new object[] { new ITypedListParent[] { new() },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
396
yield return new object[] { new ITypedListParent[] { typedListParent },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
397
yield return new object[] { new List<ITypedListParent> { new() },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
398
yield return new object[] { new List<ITypedListParent> { typedListParent },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
399
yield return new object[] { new ArrayList { new ITypedListParent() },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
400
yield return new object[] { new ArrayList { typedListParent },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
401
yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListParent() }),
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
402
yield return new object[] { new IEnumerableWrapper(new object[] { typedListParent }),
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
425
yield return new object[] { new MultiListDataClass(), "ParentListProperty",
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
428
yield return new object[] { typeof(MultiListDataClass), "ParentListProperty",
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
456
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(),
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
457
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), null,
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
458
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), string.Empty,
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
490
yield return new object[] { typeof(IEnumerable), new PropertyDescriptor[] {
TypeDescriptor
.GetProperties(typeof(DataClass))[0] }, "Int32" };
697
return
TypeDescriptor
.GetProperties(typeof(DataClass));
717
return
TypeDescriptor
.GetProperties(typeof(DataClass));
System\Windows\Forms\ListBoxTests.cs (6)
443
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.BackColor)];
459
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.BackColor)];
1340
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.ForeColor)];
1356
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.ForeColor)];
1816
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)];
1833
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)];
System\Windows\Forms\ListViewGroupConverterTests.cs (19)
22
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
49
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
62
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
77
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
107
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
123
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
135
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
162
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
202
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
213
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
220
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
227
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
236
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
243
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
250
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
278
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
289
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
296
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
303
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
System\Windows\Forms\ListViewItemConverterTests.cs (1)
307
Assert.Equal(
TypeDescriptor
.GetProperties(item, null).Count, converter.GetProperties(null, item, null).Count);
System\Windows\Forms\ListViewSubItemConverterTests.cs (14)
22
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
32
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
44
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
70
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
81
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
88
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
95
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
104
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
111
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
118
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
120
Assert.Equal(
TypeDescriptor
.GetProperties(item, null).Count, converter.GetProperties(null, item, null).Count);
126
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
133
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
140
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
System\Windows\Forms\MdiClientTests.cs (6)
145
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(MdiClient.BackColor)];
161
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(MdiClient.BackColor)];
435
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(MdiClient.Location)];
459
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(MdiClient.Location)];
1148
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(Control.Size)];
1172
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(Control.Size)];
System\Windows\Forms\PaddingConverterTests.cs (3)
144
.Returns(
TypeDescriptor
.GetProperties(typeof(ClassWithPadding))[0]);
360
.Returns(
TypeDescriptor
.GetProperties(typeof(ClassWithPadding))[0]);
375
.Returns(
TypeDescriptor
.GetProperties(typeof(string))[0]);
System\Windows\Forms\PaddingTests.cs (7)
97
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
117
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
167
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
217
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
267
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
317
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
423
Assert.IsType<PaddingConverter>(
TypeDescriptor
.GetConverter(padding));
System\Windows\Forms\PageSetupDialogTests.cs (2)
225
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)];
254
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)];
System\Windows\Forms\PictureBoxTests.cs (6)
387
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.ErrorImage)];
404
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.ErrorImage)];
597
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.Image)];
614
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.Image)];
1084
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)];
1101
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)];
System\Windows\Forms\ProgressBarTests.cs (2)
624
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
640
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (2)
69
public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes) =>
TypeDescriptor
.GetProperties(component, attributes);
71
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes) =>
TypeDescriptor
.GetProperties(component, attributes);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (2)
93
PropertyDescriptor propertyDescriptor =
TypeDescriptor
.GetProperties(typeof(TestEntity)).
112
PropertyDescriptor propertyDescriptor =
TypeDescriptor
.GetProperties(typeof(TestEntity)).
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
53
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[0];
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (3)
146
.Returns(
TypeDescriptor
.GetProperties(typeof(ParentClass))[0])
162
.Returns(
TypeDescriptor
.GetProperties(typeof(CustomTypeConverterParentClass))[0])
233
return
TypeDescriptor
.GetProperties(typeof(ClassWithNameProperty));
System\Windows\Forms\PropertyGridTests.cs (40)
378
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)];
394
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)];
752
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategoryForeColor)];
768
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategoryForeColor)];
830
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategorySplitterColor)];
846
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategorySplitterColor)];
915
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsActiveLinkColor)];
931
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsActiveLinkColor)];
993
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBackColor)];
1009
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBackColor)];
1078
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBorderColor)];
1094
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBorderColor)];
1163
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsDisabledLinkColor)];
1179
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsDisabledLinkColor)];
1241
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsForeColor)];
1257
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsForeColor)];
1326
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsLinkColor)];
1342
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsLinkColor)];
1490
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.DisabledItemForeColor)];
1506
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.DisabledItemForeColor)];
1703
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)];
1719
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)];
1781
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBackColor)];
1797
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBackColor)];
1866
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBorderColor)];
1882
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBorderColor)];
1944
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpForeColor)];
1960
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpForeColor)];
2200
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)];
2216
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)];
2447
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusBackColor)];
2463
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusBackColor)];
2525
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusForeColor)];
2541
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusForeColor)];
3251
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)];
3267
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)];
3336
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBorderColor)];
3352
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBorderColor)];
3421
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)];
3437
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)];
System\Windows\Forms\ScrollableControlTests.cs (4)
416
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)];
440
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)];
657
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMinSize)];
681
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMinSize)];
System\Windows\Forms\SpecialFolderEnumConverterTests.cs (5)
15
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
81
TypeDescriptor
.AddProvider(mockProvider.Object, typeof(Environment.SpecialFolder));
83
TypeDescriptor
.RemoveProvider(mockProvider.Object, typeof(Environment.SpecialFolder));
89
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
96
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
System\Windows\Forms\StatusStripTests.cs (2)
549
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
577
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\TabControlTests.cs (4)
1557
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)];
1581
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)];
1766
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabControl))[nameof(TabControl.Padding)];
1790
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabControl))[nameof(TabControl.Padding)];
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (19)
106
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
122
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
132
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
141
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
148
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
155
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
167
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
174
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
184
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
191
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
200
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
207
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
219
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
278
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
285
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
296
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
307
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
314
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
324
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
System\Windows\Forms\TableLayoutPanelTests.cs (2)
336
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TableLayoutPanel))[nameof(Control.Controls)];
356
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TableLayoutPanel))[nameof(Control.Controls)];
System\Windows\Forms\TableLayoutStyleTests.cs (6)
120
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
138
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
148
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
155
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
162
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
171
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
System\Windows\Forms\TabPageTests.cs (3)
810
TypeDescriptor
.AddProvider(mockProvider.Object, control);
2364
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabPage))[nameof(TabPage.Location)];
2392
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabPage))[nameof(TabPage.Location)];
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
1435
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)];
1463
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)];
System\Windows\Forms\ToolStripControlHostTests.cs (16)
331
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
348
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
362
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
379
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
998
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1024
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1038
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1064
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1150
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1167
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1181
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1198
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1641
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1670
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1684
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1713
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1431
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
1447
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
System\Windows\Forms\ToolStripItemTests.cs (38)
1736
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.BackColor)];
1752
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.BackColor)];
2329
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)];
2345
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)];
3178
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Font)];
3207
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Font)];
3429
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ForeColor)];
3445
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ForeColor)];
4083
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4100
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4128
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4145
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4736
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4757
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4782
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4816
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4836
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4860
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
5223
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5250
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5281
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5315
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5342
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5373
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5780
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageTransparentColor)];
5796
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageTransparentColor)];
6097
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Margin)];
6113
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Margin)];
6912
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Padding)];
6928
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Padding)];
7414
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.RightToLeft)];
7442
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.RightToLeft)];
8772
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)];
8796
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)];
9073
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ToolTipText)];
9100
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ToolTipText)];
9596
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)];
9612
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)];
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
386
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)];
402
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)];
System\Windows\Forms\ToolStripTests.cs (4)
2204
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
2220
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
3375
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)];
3403
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\ToolTipTests.cs (4)
185
var properties =
TypeDescriptor
.GetProperties(typeof(ToolTip));
261
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolTip))[nameof(ToolTip.AutoPopDelay)];
386
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolTip))[nameof(ToolTip.InitialDelay)];
471
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolTip))[nameof(ToolTip.ReshowDelay)];
System\Windows\Forms\TreeNodeTests.cs (4)
420
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)];
436
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)];
861
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)];
877
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)];
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
410
PropertyDescriptor? propertyDescriptor =
TypeDescriptor
.GetProperties(textBox)["Text"];
System.Xaml (4)
System\Windows\Markup\ValueSerializer.cs (2)
115
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(type);
276
TypeDescriptor
.Refreshed += TypeDescriptorRefreshed;
System\Xaml\Schema\BuiltInValueConverter.cs (2)
195
stdConverter =
TypeDescriptor
.GetConverter(typeof(Uri));
219
s_Uri = new BuiltInValueConverter<TypeConverter>(stdConverter.GetType(), () =>
TypeDescriptor
.GetConverter(typeof(Uri)));
System.Xaml.Tests (20)
System\Windows\Markup\StaticExtensionTests.cs (5)
207
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
215
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
225
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
234
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
242
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
System\Windows\Markup\TypeExtensionTests.cs (5)
168
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
176
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
186
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
195
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
203
TypeConverter converter =
TypeDescriptor
.GetConverter(extension);
System\Windows\Markup\ValueSerializerTests.cs (8)
221
TypeDescriptor
.Refresh(typeof(DateTime));
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];
300
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(ClassWithInvalidValueSerializerAttributeProperty))[0];
308
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0];
317
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0];
System\Xaml\Replacements\TypeUriConverterTests.cs (2)
25
TypeDescriptor
.RemoveProvider(provider, typeof(Uri));
38
TypeDescriptionProvider provider =
TypeDescriptor
.AddAttributes(typeof(Uri), new TypeConverterAttribute(converterType));
WindowsBase.Tests (13)
System\ComponentModel\DependencyPropertyDescriptorTests.cs (1)
18
PropertyDescriptor property =
TypeDescriptor
.GetProperties(component)[nameof(NotDependencyObject.Property)]!;
System\ComponentModel\GroupDescriptionTests.cs (3)
272
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(GroupDescription))[nameof(GroupDescription.GroupNames)]!;
471
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(GroupDescription))[nameof(GroupDescription.SortDescriptions)]!;
564
_ =
TypeDescriptor
.GetProperties(typeof(GroupDescription))[nameof(GroupDescription.GroupNames)]!;
System\Windows\ExpressionTests.cs (1)
13
Assert.IsType<ExpressionConverter>(
TypeDescriptor
.GetConverter(typeof(Expression)));
System\Windows\Input\KeyTests.cs (1)
14
Assert.IsType<KeyConverter>(
TypeDescriptor
.GetConverter(typeof(Key)));
System\Windows\Input\ModifierKeysTests.cs (1)
14
Assert.IsType<ModifierKeysConverter>(
TypeDescriptor
.GetConverter(typeof(ModifierKeys)));
System\Windows\Int32RectTests.cs (1)
454
Assert.IsType<Int32RectConverter>(
TypeDescriptor
.GetConverter(typeof(Int32Rect)));
System\Windows\Media\MatrixTests.cs (1)
5637
Assert.IsType<MatrixConverter>(
TypeDescriptor
.GetConverter(typeof(Matrix)));
System\Windows\PointTests.cs (1)
573
Assert.IsType<PointConverter>(
TypeDescriptor
.GetConverter(typeof(Point)));
System\Windows\RectTests.cs (1)
3325
Assert.IsType<RectConverter>(
TypeDescriptor
.GetConverter(typeof(Rect)));
System\Windows\SizeTests.cs (1)
569
Assert.IsType<SizeConverter>(
TypeDescriptor
.GetConverter(typeof(Size)));
System\Windows\VectorTests.cs (1)
854
Assert.IsType<VectorConverter>(
TypeDescriptor
.GetConverter(typeof(Vector)));
WinFormsControlsTest (3)
Dialogs.cs (3)
23
TypeDescriptor
.AddProvider(new AssociatedMetadataTypeTypeDescriptionProvider(openFileDialog1.GetType(), typeof(ExposedClientGuidMetadata)), openFileDialog1);
24
TypeDescriptor
.AddProvider(new AssociatedMetadataTypeTypeDescriptionProvider(saveFileDialog1.GetType(), typeof(ExposedClientGuidMetadata)), saveFileDialog1);
25
TypeDescriptor
.AddProvider(new AssociatedMetadataTypeTypeDescriptionProvider(folderBrowserDialog1.GetType(), typeof(ExposedClientGuidMetadata)), folderBrowserDialog1);