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