1483 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)
49
PropertyDescriptor dockProp =
TypeDescriptor
.GetProperties(Component)[nameof(CustomButton.BackColor)];
88
PropertyDescriptor pd =
TypeDescriptor
.GetProperties(_control)[propertyName];
DesignSurfaceExt (4)
DesignSurfaceExt.cs (3)
120
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(ctrl);
130
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(ctrl);
168
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(newComp);
TypeDiscoveryService.cs (1)
7
/// 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)
246
TypeConverter converter =
TypeDescriptor
.GetConverter(valueType);
362
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
402
&&
TypeDescriptor
.GetConverter(ResolveTypeName(typeName)) is { } converter
615
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)
1044
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(
1498
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)
6812
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 (514)
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)
54
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)
25
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(Component)["UseVisualStyleBackColor"];
49
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)
82
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
108
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\DataMemberFieldEditor.cs (1)
24
if (
TypeDescriptor
.GetProperties(instance)[nameof(ComboBox.DataSource)] is not PropertyDescriptor property)
System\Windows\Forms\Design\DataMemberListEditor.cs (1)
22
if (
TypeDescriptor
.GetProperties(context.Instance)[nameof(ComboBox.DataSource)] is { } dataSourceProperty)
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)
33
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
145
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)
118
properties["OwnerDraw"] =
TypeDescriptor
.CreateProperty(typeof(ListViewDesigner), ownerDrawProp, []);
125
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)
19
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)
364
PropertyDescriptor? boundsProp =
TypeDescriptor
.GetProperties(components[i])["Bounds"];
394
PropertyDescriptor? trayProp =
TypeDescriptor
.GetProperties(components[i])["TrayLocation"];
406
PropertyDescriptor? leftProp =
TypeDescriptor
.GetProperties(components[i])["Left"];
407
PropertyDescriptor? topProp =
TypeDescriptor
.GetProperties(components[i])["Top"];
436
PropertyDescriptor? locationProp =
TypeDescriptor
.GetProperties(components[i])["Location"];
456
PropertyDescriptor? widthProp =
TypeDescriptor
.GetProperties(components[i])["Width"];
457
PropertyDescriptor? heightProp =
TypeDescriptor
.GetProperties(components[i])["Height"];
517
cs.OnComponentChanging(c,
TypeDescriptor
.GetProperties(c)["Location"]);
518
PropertyDescriptor? sizeProp =
TypeDescriptor
.GetProperties(c)["Size"];
522
sizeProp =
TypeDescriptor
.GetProperties(c)["ClientSize"];
593
PropertyDescriptor? sizeProp =
TypeDescriptor
.GetProperties(control)["Size"];
594
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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
597
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(newItem)[nameof(Image)];
604
PropertyDescriptor displayProperty =
TypeDescriptor
.GetProperties(newItem)["DisplayStyle"];
607
PropertyDescriptor imageTransProperty =
TypeDescriptor
.GetProperties(newItem)["ImageTransparentColor"];
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (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\ToolStripCustomTypeDescriptor.cs (2)
42
PropertyDescriptorCollection retColl =
TypeDescriptor
.GetProperties(_instance);
76
PropertyDescriptorCollection retColl =
TypeDescriptor
.GetProperties(_instance);
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)
45
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 (128)
ControlDesignerTests.cs (3)
331
TypeDescriptor
.AddAttributes(_designer._control, new DockingAttribute(dockingBehavior));
343
PropertyDescriptor? dockPropDescriptor =
TypeDescriptor
.GetProperties(_designer._control)[nameof(Control.Dock)];
352
TypeDescriptor
.AddAttributes(_designer._control, new DockingAttribute(DockingBehavior.AutoDock));
EnsureEditorsTests.cs (3)
73
object editor =
TypeDescriptor
.GetEditor(type, typeof(UITypeEditor));
152
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(type);
168
Type reflectType =
TypeDescriptor
.GetReflectionType(type);
System\ComponentModel\Design\ArrayEditorTests.cs (1)
83
TypeDescriptor
.AddAttributes(component, attribute);
System\ComponentModel\Design\CollectionEditorTests.cs (1)
85
TypeDescriptor
.AddAttributes(component, attribute);
System\ComponentModel\Design\CollectionFormTests.cs (1)
479
TypeDescriptor
.AddAttributes(component, attribute);
System\ComponentModel\Design\ComponentDesignerTests.cs (26)
73
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
781
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[property])
894
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1005
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[property])
1121
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1214
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1305
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1395
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1502
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
1588
yield return new object[] {
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.ReadOnlyProperty)] };
1589
yield return new object[] {
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.IntProperty)] };
1885
.Returns(
TypeDescriptor
.GetProperties(typeof(DefaultEventComponent))[nameof(DefaultEventComponent.StringProperty)])
2308
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2328
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2349
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2361
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2435
EventDescriptor descriptor =
TypeDescriptor
.GetEvents(typeof(CustomComponent))[0];
2486
yield return new object[] {
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0], new(), new() };
2514
yield return new object[] { componentChangeService,
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0], new(), new() };
2544
yield return new object[] {
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0] };
2572
yield return new object[] { componentChangeService,
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0] };
2738
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2759
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2781
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2794
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(CustomComponent))[0];
2874
EventDescriptor descriptor =
TypeDescriptor
.GetEvents(typeof(CustomComponent))[0];
System\ComponentModel\Design\DesignerHostTests.cs (21)
386
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
390
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
394
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
457
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
461
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
465
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
655
.Returns(
TypeDescriptor
.GetAttributes(typeof(CustomTypeDescriptionProviderComponent)));
670
TypeDescriptor
.AddProvider(mockProvider.Object, component);
745
ICustomTypeDescriptor descriptor =
TypeDescriptor
.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
795
Assert.False(
TypeDescriptor
.GetProvider(component1).IsSupportedType(typeof(int)));
806
Assert.False(
TypeDescriptor
.GetProvider(component2).IsSupportedType(typeof(int)));
846
ICustomTypeDescriptor descriptor =
TypeDescriptor
.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
860
TypeDescriptor
.AddProvider(mockTypeDescriptionProvider.Object, component);
2577
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
2581
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
2585
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
2647
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
2651
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
2655
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
2926
yield return new object[] { new(),
TypeDescriptor
.GetProperties(typeof(string))[0] };
2996
yield return new object[] { new(),
TypeDescriptor
.GetProperties(typeof(string))[0], new(), new() };
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (34)
422
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
423
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
424
MemberDescriptor member3 =
TypeDescriptor
.GetEvents(typeof(DataClass))[nameof(DataClass.Event)];
468
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
469
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
470
MemberDescriptor member3 =
TypeDescriptor
.GetEvents(typeof(DataClass))[nameof(DataClass.Event)];
514
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
515
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
563
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
564
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
1133
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1134
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1176
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1177
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1233
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1234
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1304
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1305
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1367
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1376
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1393
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1403
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1412
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1413
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1455
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1456
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1512
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1513
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1583
MemberDescriptor member1 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1584
MemberDescriptor member2 =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1646
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1655
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1672
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1682
MemberDescriptor member =
TypeDescriptor
.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
258
TypeDescriptor
.AddProvider(mockProvider.Object, provider);
System\ComponentModel\Design\Serialization\SerializeAbsoluteContextTests.cs (2)
21
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(RootContext));
35
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(RootContext));
System\ComponentModel\Design\SiteNestedContainerTests.cs (12)
290
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
294
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
298
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
366
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
370
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
374
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
713
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
717
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
721
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
778
TypeDescriptor
.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
782
TypeDescriptor
.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
786
TypeDescriptor
.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (8)
320
ValidateResultBitmap(imagePropertyInfo, expected,
TypeDescriptor
.GetConverter(typeof(Bitmap)));
328
var converter =
TypeDescriptor
.GetConverter(bitmap);
376
ValidateResultBitmap(imagePropertyInfo, expected,
TypeDescriptor
.GetConverter(typeof(Bitmap)));
401
ValidateResultIcon(iconPropertyInfo, expected,
TypeDescriptor
.GetConverter(typeof(Icon)));
408
var converter =
TypeDescriptor
.GetConverter(icon);
456
ValidateResultIcon(iconPropertyInfo, expected,
TypeDescriptor
.GetConverter(typeof(Icon)));
607
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(AxHost.State));
610
converter =
TypeDescriptor
.GetConverter(typeof(AxHost.State));
System\Windows\Forms\Design\CollectionEditVerbManagerTests.cs (1)
25
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(ToolStripButton));
System\Windows\Forms\Design\DataGridViewDesignerTests.cs (2)
147
{ "AutoSizeColumnsMode",
TypeDescriptor
.GetProperties(typeof(DataGridView))["AutoSizeColumnsMode"]!},
148
{ "DataSource",
TypeDescriptor
.GetProperties(typeof(DataGridView))["DataSource"]!}
System\Windows\Forms\Design\FormatStringEditorTests.cs (6)
64
cs => cs.OnComponentChanging(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["Format"]),
68
cs => cs.OnComponentChanging(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["NullValue"]),
72
cs => cs.OnComponentChanging(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["FormatProvider"]),
87
cs => cs.OnComponentChanged(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["Format"], null, null),
91
cs => cs.OnComponentChanged(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["NullValue"], null, null),
95
cs => cs.OnComponentChanged(_cellStyle,
TypeDescriptor
.GetProperties(_cellStyle)["FormatProvider"], null, null),
System\Windows\Forms\Design\InheritedPropertyDescriptorTestExtensions.cs (1)
15
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(control);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (1)
21
var property =
TypeDescriptor
.GetProperties(instance)["Text"];
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (1)
159
TypeDescriptor
.GetAttributes(control).Contains(InheritanceAttribute.InheritedReadOnly).Should().BeTrue();
System\Windows\Forms\Design\ToolStripActionListTests.cs (2)
119
TypeDescriptor
.AddAttributes(_toolStrip, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
120
TypeDescriptor
.Refresh(_toolStrip);
ToolStripMenuItemDesignerTest.cs (1)
112
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)
31
converter =
TypeDescriptor
.GetConverter(type);
System.Windows.Forms.Tests (382)
System\Resources\ResxDataNodeTests.cs (2)
28
var converter =
TypeDescriptor
.GetConverter(bitmap);
42
var converter =
TypeDescriptor
.GetConverter(bitmap);
System\Windows\Forms\AxHostTests.cs (1)
3032
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(string))[nameof(string.Length)];
System\Windows\Forms\AxSystemMonitorTests.cs (2)
28
var properties =
TypeDescriptor
.GetProperties(_control);
29
var events =
TypeDescriptor
.GetEvents(_control);
System\Windows\Forms\AxWebBrowserTests.cs (2)
30
var properties =
TypeDescriptor
.GetProperties(_control);
31
var events =
TypeDescriptor
.GetEvents(_control);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
253
var propertyDescriptors =
TypeDescriptor
.GetProperties(value, s_visible);
System\Windows\Forms\BindingSourceTests.cs (1)
345
PropertyDescriptor sortProperty =
TypeDescriptor
.GetProperties(typeof(DataClass))[0];
System\Windows\Forms\ButtonBaseTests.cs (7)
680
TypeDescriptor
.AddProvider(mockProvider.Object, control);
1778
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
1797
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
1825
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.Image)];
4282
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
4300
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
4327
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.UseVisualStyleBackColor)];
System\Windows\Forms\ColorDialogTests.cs (2)
148
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)];
164
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)];
System\Windows\Forms\ColumnHeaderConverterTests.cs (1)
156
Assert.Equal(
TypeDescriptor
.GetProperties(item, null).Count, converter.GetProperties(null, item, null).Count);
System\Windows\Forms\ColumnHeaderTests.cs (7)
241
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)];
262
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)];
860
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
887
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
916
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)];
1056
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)];
1083
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)];
System\Windows\Forms\ComboBoxTests.cs (4)
281
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)];
297
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)];
1149
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ComboBox))[nameof(ComboBox.ForeColor)];
1165
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ComboBox))[nameof(ComboBox.ForeColor)];
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (5)
29
ValidateIPictureDispProperties(iPictureDisp,
TypeDescriptor
.GetProperties(iPictureDisp));
88
var properties =
TypeDescriptor
.GetProperties(iPicture);
219
var properties =
TypeDescriptor
.GetProperties(vbcontrol);
222
var events =
TypeDescriptor
.GetEvents(vbcontrol);
225
var attributes =
TypeDescriptor
.GetAttributes(vbcontrol);
System\Windows\Forms\ControlTests.Properties.cs (28)
1606
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.BackColor)];
1622
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.BackColor)];
3675
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Controls)];
3695
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Controls)];
4767
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Enabled)];
4783
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Enabled)];
5244
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Font)];
5269
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Font)];
5640
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
5656
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
7574
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Location)];
7598
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Location)];
7852
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Margin)];
7868
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Margin)];
8445
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.MaximumSize)];
8469
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.MaximumSize)];
9215
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.MinimumSize)];
9239
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.MinimumSize)];
9647
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Padding)];
9663
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Padding)];
10444
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.RightToLeft)];
10472
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.RightToLeft)];
11755
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Size)];
11779
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Size)];
12045
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Text)];
12072
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Text)];
13069
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Visible)];
13085
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.Visible)];
System\Windows\Forms\DataGridViewRowConverterTests.cs (2)
18
TypeConverter converter =
TypeDescriptor
.GetConverter(row);
28
TypeConverter converter =
TypeDescriptor
.GetConverter(row);
System\Windows\Forms\Design\EventsTabTests.cs (4)
65
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(ClassWithDefaultEvent))[0];
68
.Setup(e => e.GetEventProperty(
TypeDescriptor
.GetDefaultEvent(typeof(ClassWithDefaultEvent))))
101
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(typeof(ClassWithDefaultEvent))[0];
104
.Setup(e => e.GetEventProperty(
TypeDescriptor
.GetDefaultEvent(typeof(ClassWithDefaultEvent))))
System\Windows\Forms\Design\PropertyTabTests.cs (2)
148
PropertyDescriptorCollection result =
TypeDescriptor
.GetProperties(typeof(ClassWithDefaultProperty));
174
PropertyDescriptorCollection result =
TypeDescriptor
.GetProperties(typeof(ClassWithDefaultProperty));
System\Windows\Forms\DockPaddingEdgesTests.cs (6)
390
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
411
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
432
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
453
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
474
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
490
Assert.IsType<ScrollableControl.DockPaddingEdgesConverter>(
TypeDescriptor
.GetConverter(typeof(ScrollableControl.DockPaddingEdges)));
System\Windows\Forms\ErrorProviderTests.cs (6)
310
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)];
321
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)];
512
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)];
523
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)];
559
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)];
571
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)];
System\Windows\Forms\FontDialogTests.cs (2)
333
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(FontDialog))[nameof(FontDialog.Font)];
350
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(FontDialog))[nameof(FontDialog.Font)];
System\Windows\Forms\ImageListTests.cs (6)
171
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)];
188
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)];
365
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)];
382
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)];
781
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)];
798
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)];
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (3)
1760
TypeDescriptor
.AddAttributes(settings, [new TypeConverterAttribute(type)]);
1816
TypeDescriptor
.AddAttributes(settings, [new TypeConverterAttribute(type)]);
1838
TypeDescriptor
.AddAttributes(settings, [new TypeConverterAttribute(type)]);
System\Windows\Forms\LinkAreaTests.cs (1)
101
Assert.IsType<LinkArea.LinkAreaConverter>(
TypeDescriptor
.GetConverter(area));
System\Windows\Forms\ListBindingHelperTests.cs (55)
212
TypeDescriptor
.AddProvider(customPropertyDescriptorProvider.Object, instance);
275
mockTypedList.Setup(t => t.GetItemProperties(null)).Returns(
TypeDescriptor
.GetProperties(typeof(DataClass)));
315
yield return new object[] { null,
TypeDescriptor
.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
317
yield return new object[] { new DataClass(),
TypeDescriptor
.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
318
yield return new object[] { typeof(DataClass),
TypeDescriptor
.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
320
yield return new object[] { new ListDataClass(),
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
321
yield return new object[] { new ListDataClass() { ListProperty = [new()] },
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
322
yield return new object[] { typeof(ListDataClass),
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
324
yield return new object[] { new MultiListDataClass(),
TypeDescriptor
.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } };
325
yield return new object[] { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] },
TypeDescriptor
.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().Take(0).ToArray(), new string[] { "ParentListProperty" } };
327
var inner = new PropertyDescriptor[] {
TypeDescriptor
.GetProperties(typeof(MultiListDataClass))[0],
TypeDescriptor
.GetProperties(typeof(ListDataClass))[0],
TypeDescriptor
.GetProperties(typeof(DataClass))[0] };
329
yield return new object[] { typeof(MultiListDataClass),
TypeDescriptor
.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } };
331
yield return new object[] { typeof(DataClass),
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
336
PropertyDescriptor[] descriptors =
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray();
357
mockTypedList.Setup(t => t.GetItemProperties(descriptors)).Returns(
TypeDescriptor
.GetProperties(typeof(DataClass)));
366
yield return new object[] { new EnumerableITypedListImplementor[] { new() },
TypeDescriptor
.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
367
yield return new object[] { new List<EnumerableITypedListImplementor> { new() },
TypeDescriptor
.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
368
yield return new object[] { new ArrayList { new EnumerableITypedListImplementor() },
TypeDescriptor
.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
369
yield return new object[] { new IEnumerableWrapper(new object[] { new EnumerableITypedListImplementor() }),
TypeDescriptor
.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
374
yield return new object[] { new NonEnumerableITypedListImplementor[] { new() },
TypeDescriptor
.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
375
yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() },
TypeDescriptor
.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
376
yield return new object[] { new ArrayList { new NonEnumerableITypedListImplementor() },
TypeDescriptor
.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
377
yield return new object[] { new IEnumerableWrapper(new object[] { new NonEnumerableITypedListImplementor() }),
TypeDescriptor
.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
381
yield return new object[] { new ITypedListDataClass(),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
382
yield return new object[] { typedListDataClass,
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
383
yield return new object[] { typeof(ITypedListDataClass),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
384
yield return new object[] { new ITypedListDataClass[] { new() },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
385
yield return new object[] { new ITypedListDataClass[] { typedListDataClass },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
386
yield return new object[] { new List<ITypedListDataClass> { new() },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
387
yield return new object[] { new List<ITypedListDataClass> { typedListDataClass },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
388
yield return new object[] { new ArrayList { new ITypedListDataClass() },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
389
yield return new object[] { new ArrayList { typedListDataClass },
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
390
yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListDataClass() }),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
391
yield return new object[] { new IEnumerableWrapper(new object[] { typedListDataClass }),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
392
yield return new object[] { typeof(ITypedListDataClass[]),
TypeDescriptor
.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
395
yield return new object[] { new ITypedListParent(),
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
396
yield return new object[] { typedListParent,
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
397
yield return new object[] { new ITypedListParent[] { new() },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
398
yield return new object[] { new ITypedListParent[] { typedListParent },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
399
yield return new object[] { new List<ITypedListParent> { new() },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
400
yield return new object[] { new List<ITypedListParent> { typedListParent },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
401
yield return new object[] { new ArrayList { new ITypedListParent() },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
402
yield return new object[] { new ArrayList { typedListParent },
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
403
yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListParent() }),
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
404
yield return new object[] { new IEnumerableWrapper(new object[] { typedListParent }),
TypeDescriptor
.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
427
yield return new object[] { new MultiListDataClass(), "ParentListProperty",
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
430
yield return new object[] { typeof(MultiListDataClass), "ParentListProperty",
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
458
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(),
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
459
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), null,
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
460
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), string.Empty,
TypeDescriptor
.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
492
yield return new object[] { typeof(IEnumerable), new PropertyDescriptor[] {
TypeDescriptor
.GetProperties(typeof(DataClass))[0] }, "Int32" };
699
return
TypeDescriptor
.GetProperties(typeof(DataClass));
719
return
TypeDescriptor
.GetProperties(typeof(DataClass));
System\Windows\Forms\ListBoxTests.cs (6)
445
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.BackColor)];
461
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.BackColor)];
1342
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.ForeColor)];
1358
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.ForeColor)];
1818
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)];
1835
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)];
System\Windows\Forms\ListViewGroupConverterTests.cs (19)
24
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
51
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
64
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
79
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
109
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
125
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
137
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
164
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
204
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
215
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
222
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
229
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
238
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
245
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
252
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
280
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
291
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
298
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
305
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewGroup));
System\Windows\Forms\ListViewItemConverterTests.cs (1)
309
Assert.Equal(
TypeDescriptor
.GetProperties(item, null).Count, converter.GetProperties(null, item, null).Count);
System\Windows\Forms\ListViewSubItemConverterTests.cs (14)
24
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
34
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
46
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
72
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
83
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
90
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
97
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
106
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
113
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
120
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
122
Assert.Equal(
TypeDescriptor
.GetProperties(item, null).Count, converter.GetProperties(null, item, null).Count);
128
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
135
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
142
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(ListViewItem.ListViewSubItem));
System\Windows\Forms\MdiClientTests.cs (6)
147
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(MdiClient.BackColor)];
163
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(MdiClient.BackColor)];
437
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(MdiClient.Location)];
461
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(MdiClient.Location)];
1150
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(Control.Size)];
1174
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(MdiClient))[nameof(Control.Size)];
System\Windows\Forms\PaddingConverterTests.cs (3)
146
.Returns(
TypeDescriptor
.GetProperties(typeof(ClassWithPadding))[0]);
362
.Returns(
TypeDescriptor
.GetProperties(typeof(ClassWithPadding))[0]);
377
.Returns(
TypeDescriptor
.GetProperties(typeof(string))[0]);
System\Windows\Forms\PaddingTests.cs (7)
99
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
119
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
169
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
219
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
269
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
319
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(padding);
425
Assert.IsType<PaddingConverter>(
TypeDescriptor
.GetConverter(padding));
System\Windows\Forms\PageSetupDialogTests.cs (2)
227
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)];
256
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)];
System\Windows\Forms\PictureBoxTests.cs (6)
389
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.ErrorImage)];
406
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.ErrorImage)];
599
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.Image)];
616
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.Image)];
1086
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)];
1103
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)];
System\Windows\Forms\ProgressBarTests.cs (2)
626
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
642
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(Control))[nameof(Control.ForeColor)];
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (2)
71
public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes) =>
TypeDescriptor
.GetProperties(component, attributes);
73
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes) =>
TypeDescriptor
.GetProperties(component, attributes);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (2)
95
PropertyDescriptor propertyDescriptor =
TypeDescriptor
.GetProperties(typeof(TestEntity)).
114
PropertyDescriptor propertyDescriptor =
TypeDescriptor
.GetProperties(typeof(TestEntity)).
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
55
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[0];
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (3)
148
.Returns(
TypeDescriptor
.GetProperties(typeof(ParentClass))[0])
164
.Returns(
TypeDescriptor
.GetProperties(typeof(CustomTypeConverterParentClass))[0])
235
return
TypeDescriptor
.GetProperties(typeof(ClassWithNameProperty));
System\Windows\Forms\PropertyGridTests.cs (40)
380
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)];
396
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)];
754
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategoryForeColor)];
770
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategoryForeColor)];
832
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategorySplitterColor)];
848
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CategorySplitterColor)];
917
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsActiveLinkColor)];
933
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsActiveLinkColor)];
995
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBackColor)];
1011
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBackColor)];
1080
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBorderColor)];
1096
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsBorderColor)];
1165
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsDisabledLinkColor)];
1181
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsDisabledLinkColor)];
1243
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsForeColor)];
1259
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsForeColor)];
1328
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsLinkColor)];
1344
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.CommandsLinkColor)];
1492
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.DisabledItemForeColor)];
1508
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.DisabledItemForeColor)];
1705
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)];
1721
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)];
1783
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBackColor)];
1799
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBackColor)];
1868
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBorderColor)];
1884
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpBorderColor)];
1946
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpForeColor)];
1962
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.HelpForeColor)];
2202
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)];
2218
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)];
2449
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusBackColor)];
2465
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusBackColor)];
2527
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusForeColor)];
2543
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.SelectedItemWithFocusForeColor)];
3253
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)];
3269
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)];
3338
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBorderColor)];
3354
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBorderColor)];
3423
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)];
3439
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)];
System\Windows\Forms\ScrollableControlTests.cs (4)
418
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)];
442
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)];
659
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMinSize)];
683
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMinSize)];
System\Windows\Forms\SpecialFolderEnumConverterTests.cs (5)
17
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
83
TypeDescriptor
.AddProvider(mockProvider.Object, typeof(Environment.SpecialFolder));
85
TypeDescriptor
.RemoveProvider(mockProvider.Object, typeof(Environment.SpecialFolder));
91
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
98
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(new FolderBrowserDialog()).Find(nameof(FolderBrowserDialog.RootFolder), ignoreCase: false);
System\Windows\Forms\StatusStripTests.cs (2)
551
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
579
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\TabControlTests.cs (4)
1559
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)];
1583
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)];
1768
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabControl))[nameof(TabControl.Padding)];
1792
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabControl))[nameof(TabControl.Padding)];
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (19)
108
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
124
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
134
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
143
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
150
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
157
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
169
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
176
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
186
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
193
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
202
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
209
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
221
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
280
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
287
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
298
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
309
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
316
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
326
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutPanelCellPosition));
System\Windows\Forms\TableLayoutPanelTests.cs (2)
338
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TableLayoutPanel))[nameof(Control.Controls)];
358
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TableLayoutPanel))[nameof(Control.Controls)];
System\Windows\Forms\TableLayoutStyleTests.cs (6)
122
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
140
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
150
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
157
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
164
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
173
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(TableLayoutStyle));
System\Windows\Forms\TabPageTests.cs (3)
812
TypeDescriptor
.AddProvider(mockProvider.Object, control);
2366
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabPage))[nameof(TabPage.Location)];
2394
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TabPage))[nameof(TabPage.Location)];
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
1437
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)];
1465
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)];
System\Windows\Forms\ToolStripControlHostTests.cs (16)
333
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
350
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
364
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
381
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)];
1000
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1026
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1040
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1066
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];
1152
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1169
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1183
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1200
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.ForeColor)];
1643
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1672
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1686
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
1715
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(SubToolStripControlHost))[nameof(ToolStripControlHost.RightToLeft)];
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1433
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
1449
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
System\Windows\Forms\ToolStripItemTests.cs (38)
1738
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.BackColor)];
1754
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.BackColor)];
2331
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)];
2347
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)];
3180
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Font)];
3209
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Font)];
3431
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ForeColor)];
3447
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ForeColor)];
4085
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4102
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4130
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4147
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)];
4738
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4759
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4784
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4818
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4838
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
4862
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)];
5225
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5252
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5283
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5317
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5344
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5375
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageKey)];
5782
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageTransparentColor)];
5798
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageTransparentColor)];
6099
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Margin)];
6115
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Margin)];
6914
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Padding)];
6930
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Padding)];
7416
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.RightToLeft)];
7444
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.RightToLeft)];
8774
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)];
8798
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)];
9075
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ToolTipText)];
9102
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ToolTipText)];
9598
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)];
9614
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)];
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
388
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)];
404
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)];
System\Windows\Forms\ToolStripTests.cs (4)
2206
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
2222
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)];
3377
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)];
3405
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\ToolTipTests.cs (4)
187
var properties =
TypeDescriptor
.GetProperties(typeof(ToolTip));
263
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolTip))[nameof(ToolTip.AutoPopDelay)];
388
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolTip))[nameof(ToolTip.InitialDelay)];
473
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(ToolTip))[nameof(ToolTip.ReshowDelay)];
System\Windows\Forms\TreeNodeTests.cs (4)
422
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)];
438
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)];
863
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)];
879
PropertyDescriptor property =
TypeDescriptor
.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)];
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (1)
87
PropertyDescriptor? propertyDescriptor =
TypeDescriptor
.GetProperties(treeView)["ImageList"];
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);