971 references to TypeDescriptor
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
156
return
TypeDescriptor
.GetConverter(type);
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
1845
var typeConverter =
TypeDescriptor
.GetConverter(typeof(T));
2060
var typeConverter =
TypeDescriptor
.GetConverter(typeof(T));
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
777
IsConvertibleType =
TypeDescriptor
.GetConverter(ModelType).CanConvertFrom(typeof(string));
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
30
_typeConverter =
TypeDescriptor
.GetConverter(type);
ModelBinding\ModelBindingHelper.cs (2)
692
var converter =
TypeDescriptor
.GetConverter(destinationType);
696
converter =
TypeDescriptor
.GetConverter(value.GetType());
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1000
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
Microsoft.Extensions.Identity.Stores (2)
RoleStoreBase.cs (1)
130
return (TKey?)
TypeDescriptor
.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
UserStoreBase.cs (1)
231
return (TKey?)
TypeDescriptor
.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
337
Dim converter As TypeConverter =
TypeDescriptor
.GetConverter(GetType(DiskSpaceExhaustedOption))
406
Dim converter As TypeConverter =
TypeDescriptor
.GetConverter(GetType(LogFileLocation))
432
Dim converter As TypeConverter =
TypeDescriptor
.GetConverter(GetType(LogFileCreationScheduleOption))
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
XML\XmlPersistence.cs (1)
641
TypeConverter convert =
TypeDescriptor
.GetConverter(valueType);
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
TestObject.cs (2)
269
TypeConverter converter =
TypeDescriptor
.GetConverter(valueType);
315
TypeConverter converter =
TypeDescriptor
.GetConverter(valueType);
netstandard (1)
netstandard.cs (1)
422
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
TypeDescriptor
))]
PresentationBuildTasks (2)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2537
TypeConverter boolConverter =
TypeDescriptor
.GetConverter(typeof(Boolean));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
428
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(typeof(System.Xml.XmlSpace));
PresentationCore (19)
MS\Internal\FontFace\CompositeFontParser.cs (1)
165
_doubleTypeConverter =
TypeDescriptor
.GetConverter(typeof(double));
System\Windows\Duration.cs (2)
483
return HasTimeSpan ?
TypeDescriptor
.GetConverter(_timeSpan).ConvertToString(_timeSpan) : ToStringInvariant();
487
/// 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)
58
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(KeyGesture));
73
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(KeyGesture));
System\Windows\Input\Command\MouseActionValueSerializer.cs (2)
51
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(MouseAction));
66
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(MouseAction));
System\Windows\Input\Command\MouseGestureConverter.cs (4)
74
TypeConverter mouseActionConverter =
TypeDescriptor
.GetConverter(typeof(System.Windows.Input.MouseAction));
85
TypeConverter modifierKeysConverter =
TypeDescriptor
.GetConverter(typeof(System.Windows.Input.ModifierKeys));
153
TypeConverter modifierKeysConverter =
TypeDescriptor
.GetConverter(typeof(System.Windows.Input.ModifierKeys));
162
TypeConverter mouseActionConverter =
TypeDescriptor
.GetConverter(typeof(System.Windows.Input.MouseAction));
System\Windows\Input\Command\MouseGestureValueSerializer.cs (2)
63
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(MouseGesture));
78
TypeConverter converter =
TypeDescriptor
.GetConverter(typeof(MouseGesture));
System\Windows\Media\Animation\KeyTimeConverter.cs (4)
86
double doubleValue = (double)
TypeDescriptor
.GetConverter(
107
TimeSpan timeSpanValue = (TimeSpan)
TypeDescriptor
.GetConverter(
182
string returnValue = (string)
TypeDescriptor
.GetConverter(
193
return
TypeDescriptor
.GetConverter(
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (2)
84
double doubleValue = (double)
TypeDescriptor
.GetConverter(typeof(double)).ConvertFrom(td, cultureInfo, stringDoubleValue);
93
TimeSpan timeSpanValue = (TimeSpan)
TypeDescriptor
.GetConverter(typeof(TimeSpan)).ConvertFrom(td, cultureInfo, stringValue);
PresentationFramework (30)
MS\Internal\Data\DefaultValueConverter.cs (1)
185
typeConverter =
TypeDescriptor
.GetConverter(type);
MS\Internal\Data\PropertyPathWorker.cs (2)
1383
TypeConverter tc =
TypeDescriptor
.GetConverter(paramType);
1466
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(item);
MS\Internal\Data\ValueTable.cs (2)
218
pd =
TypeDescriptor
.GetProperties(item)[name];
222
pd =
TypeDescriptor
.GetProperties(item.GetType())[name];
System\Windows\Controls\ContentPresenter.cs (3)
1017
TypeConverter tc =
TypeDescriptor
.GetConverter(ReflectionHelper.GetReflectionType(content));
1119
TypeConverter tc =
TypeDescriptor
.GetConverter(ReflectionHelper.GetReflectionType(content));
1188
(tc =
TypeDescriptor
.GetConverter(ReflectionHelper.GetReflectionType(item))) != null &&
System\Windows\Data\BindingListCollectionView.cs (1)
2187
pdc =
TypeDescriptor
.GetProperties(itemType);
System\Windows\Data\CollectionView.cs (2)
1451
properties =
TypeDescriptor
.GetProperties(itemType);
1464
properties =
TypeDescriptor
.GetProperties(item);
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
72
System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.
TypeDescriptor
.GetConverter(property.PropertyType);
System\Windows\Documents\TextRange.cs (1)
790
System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.
TypeDescriptor
.GetConverter(formattingProperty.PropertyType);
System\Windows\Documents\TextRangeSerialization.cs (1)
1125
System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.
TypeDescriptor
.GetConverter(property.PropertyType);
System\Windows\Markup\BamlReader.cs (1)
1075
TypeConverter converter =
TypeDescriptor
.GetConverter(value.GetType());
System\Windows\Markup\BamlRecords.cs (1)
2537
TypeConverter boolConverter =
TypeDescriptor
.GetConverter(typeof(Boolean));
System\Windows\Markup\ParserContext.cs (2)
98
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(typeof(XmlSpace));
428
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(typeof(System.Xml.XmlSpace));
System\Windows\Markup\Primitives\ElementMarkupObject.cs (5)
95
foreach (PropertyDescriptor descriptor in
TypeDescriptor
.GetProperties(_instance))
160
get { return
TypeDescriptor
.GetAttributes(ObjectType); }
355
TypeConverter converter =
TypeDescriptor
.GetConverter(instance);
802
TypeConverter converter =
TypeDescriptor
.GetConverter(value);
900
TypeConverter converter =
TypeDescriptor
.GetConverter(value);
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
37
return
TypeDescriptor
.GetAttributes(ObjectType);
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1083
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(type);
System\Windows\Markup\XamlTypeMapper.cs (1)
1829
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(typeAndSerializer.ObjectType);
System\Windows\PropertyPath.cs (3)
599
accessor =
TypeDescriptor
.GetProperties(item)[propertyName];
620
accessor =
TypeDescriptor
.GetProperties(item)[propertyName];
776
TypeConverter tc =
TypeDescriptor
.GetConverter(type);
System\Windows\PropertyPathConverter.cs (1)
263
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
75
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(list[0]);
PresentationFramework-SystemXmlLinq (1)
SystemXmlLinqExtension.cs (1)
21
PropertyDescriptorCollection pdc =
TypeDescriptor
.GetProperties(xelement);
ReachFramework (8)
Serialization\Manager\MetroSerializationManager.cs (2)
153
return
TypeDescriptor
.GetConverter(serializedObject.GetType());
169
return
TypeDescriptor
.GetConverter(serializedObjectType);
Serialization\Manager\ReachDocumentPageSerializer.cs (1)
197
writer.WriteAttributeString(name,
TypeDescriptor
.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (1)
281
writer.WriteAttributeString(name,
TypeDescriptor
.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachSerializationUtils.cs (3)
608
TypeDescriptor
.GetConverter(size.Width).ConvertToInvariantString(size.Width));
610
TypeDescriptor
.GetConverter(size.Height).ConvertToInvariantString(size.Height));
1007
writer.WriteAttributeString(name,
TypeDescriptor
.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\XpsOMDocumentPageSerializer.cs (1)
228
writer.WriteAttributeString(name,
TypeDescriptor
.GetConverter(value).ConvertToInvariantString(value));
System (1)
src\runtime\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)
128
public virtual TypeConverter GetConverter(Type type) =>
TypeDescriptor
.GetConverter(type);
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptionProvider.cs (1)
32
: base(
TypeDescriptor
.GetProvider(type))
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
87
Attribute[] newAttributes =
TypeDescriptor
.GetAttributes(AssociatedMetadataType).OfType<Attribute>().ToArray();
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
260
TypeDescriptor
.GetConverter(OperandType);
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (3)
128
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(type);
215
var properties =
TypeDescriptor
.GetProperties(_type);
244
AttributeCollection typeAttributes =
TypeDescriptor
.GetAttributes(propertyDescriptor.PropertyType);
System\ComponentModel\DataAnnotations\Validator.cs (1)
519
var properties =
TypeDescriptor
.GetProperties(instance.GetType());
System.ComponentModel.TypeConverter (183)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (2)
16
public XTypeDescriptionProvider() : base(
TypeDescriptor
.GetProvider(typeof(T)))
20
public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type, object? instance)
System\ComponentModel\AmbientValueAttribute.cs (3)
28
public AmbientValueAttribute([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type, string value)
45
static TypeConverter TypeDescriptorGetConverter([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type) =>
TypeDescriptor
.GetConverter(type);
System\ComponentModel\AttributeCollection.cs (1)
260
Type reflect =
TypeDescriptor
.GetReflectionType(attributeType);
System\ComponentModel\BindingList.cs (2)
15
public class BindingList<[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] T> :
518
_itemTypeProperties =
TypeDescriptor
.GetProperties(typeof(T));
System\ComponentModel\ComponentConverter.cs (1)
28
return
TypeDescriptor
.GetProperties(value, attributes);
System\ComponentModel\ComponentResourceManager.cs (2)
86
TypeDescriptor
.ValidateRegisteredType(typeFromValue);
198
static PropertyDescriptorCollection TypeDescriptorGetProperties(object value) =>
TypeDescriptor
.GetProperties(value);
System\ComponentModel\Container.cs (1)
234
InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(s.Component)[typeof(InheritanceAttribute)]!;
System\ComponentModel\CustomTypeDescriptor.cs (10)
96
if (
TypeDescriptor
.RequireRegisteredTypes)
98
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType));
103
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType));
131
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed)]
179
if (
TypeDescriptor
.RequireRegisteredTypes)
181
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType));
186
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType));
220
if (
TypeDescriptor
.RequireRegisteredTypes)
222
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
227
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
System\ComponentModel\DelegatingTypeDescriptionProvider.cs (5)
28
internal TypeDescriptionProvider Provider =>
TypeDescriptor
.GetProviderRecursive(_type);
99
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
101
[DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)] Type objectType,
117
public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType, object? instance)
130
public override void RegisterType<[DynamicallyAccessedMembers(
TypeDescriptor
.RegisteredTypesDynamicallyAccessedMembers)] T>() => Provider.RegisterType<T>();
System\ComponentModel\Design\DesignerOptionService.cs (1)
178
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(_value);
System\ComponentModel\Design\IDesignerFilter.cs (6)
16
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
22
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
28
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
34
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
40
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
46
/// through the <see cref='System.ComponentModel.
TypeDescriptor
'/> object.
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (2)
123
string? sourceName =
TypeDescriptor
.GetComponentName(source.Owner!) ?? source.Owner!.ToString();
124
string? relName =
TypeDescriptor
.GetComponentName(relationship.Owner!) ?? relationship.Owner!.ToString();
System\ComponentModel\EnumConverter.cs (2)
240
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
241
static Type GetTypeDescriptorReflectionType(Type enumType) =>
TypeDescriptor
.GetReflectionType(enumType);
System\ComponentModel\EventDescriptorCollection.cs (1)
360
TypeDescriptor
.SortDescriptorArray(this);
System\ComponentModel\ExpandableObjectConverter.cs (1)
28
return
TypeDescriptor
.GetProperties(value, attributes);
System\ComponentModel\ICustomTypeDescriptor.cs (10)
50
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed)]
91
if (
TypeDescriptor
.RequireRegisteredTypes)
93
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType));
98
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType));
111
if (
TypeDescriptor
.RequireRegisteredTypes)
113
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType));
118
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType));
133
if (
TypeDescriptor
.RequireRegisteredTypes)
135
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
140
TypeDescriptor
.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
System\ComponentModel\InheritanceAttribute.cs (1)
109
public override string ToString() =>
TypeDescriptor
.GetConverterTrimUnsafe(typeof(InheritanceLevel)).ConvertToString(InheritanceLevel)!;
System\ComponentModel\MemberDescriptor.cs (4)
221
if (_metadataVersion !=
TypeDescriptor
.MetadataVersion)
374
_metadataVersion =
TypeDescriptor
.MetadataVersion;
438
return
TypeDescriptor
.GetAssociation(type, instance);
452
return
TypeDescriptor
.GetAssociation(componentClass, component);
System\ComponentModel\NullableConverter.cs (1)
34
UnderlyingTypeConverter =
TypeDescriptor
.GetConverter(UnderlyingType);
System\ComponentModel\PropertyDescriptor.cs (8)
87
_converter ??=
TypeDescriptor
.GetConverter(PropertyType);
114
_converter ??=
TypeDescriptor
.GetConverterFromRegisteredType(PropertyType);
232
return
TypeDescriptor
.CreateInstance(null, type, typeArgs, new object[] { PropertyType });
235
return
TypeDescriptor
.CreateInstance(null, type, null, null);
272
return
TypeDescriptor
.GetProperties(PropertyType, filter);
276
return
TypeDescriptor
.GetProperties(instance, filter);
283
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed + " " + PropertyDescriptorPropertyTypeMessage)]
329
editor ??=
TypeDescriptor
.GetEditor(PropertyType, editorBaseType);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
378
TypeDescriptor
.SortDescriptorArray(this);
System\ComponentModel\ReflectEventDescriptor.cs (4)
63
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)]
75
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentClass,
95
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentClass,
114
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType,
System\ComponentModel\ReflectionCachesUpdateHandler.cs (2)
26
TypeDescriptor
.Refresh(type);
33
TypeDescriptor
.Refresh(assembly);
System\ComponentModel\ReflectPropertyDescriptor.cs (5)
140
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentClass,
161
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentClass,
254
_realChangedEvent =
TypeDescriptor
.GetEvents(_componentClass)[Name + "Changed"];
273
_realIPropChangedEvent =
TypeDescriptor
.GetEvents(typeof(INotifyPropertyChanged))["PropertyChanged"];
776
foreach (Attribute typeAttr in
TypeDescriptor
.GetAttributes(PropertyType))
System\ComponentModel\ReflectTypeDescriptionProvider.cs (39)
226
lock (
TypeDescriptor
.s_commonSyncObject)
309
internal AttributeCollection GetAttributes([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type)
342
internal string? GetClassName([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type)
370
internal TypeConverter GetConverter([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type, object? instance)
387
internal EventDescriptor? GetDefaultEvent([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type, object? instance)
397
internal PropertyDescriptor? GetDefaultProperty([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type, object? instance)
406
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")]
407
internal object? GetEditor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type, object? instance, Type editorBaseType)
437
lock (
TypeDescriptor
.s_commonSyncObject)
463
internal EventDescriptorCollection GetEvents([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type)
532
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")]
572
IDictionary? cache =
TypeDescriptor
.GetCache(instance);
653
IDictionary? cache =
TypeDescriptor
.GetCache(instance);
850
return
TypeDescriptor
.GetComponentName(component);
876
internal PropertyDescriptorCollection GetProperties([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type)
896
return
TypeDescriptor
.GetAssociation(type, instance);
903
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
905
[DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)] Type objectType,
917
private ReflectedTypeData? GetTypeData([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type, bool createIfNeeded)
925
lock (
TypeDescriptor
.s_commonSyncObject)
931
if (
TypeDescriptor
.RequireRegisteredTypes && !td.IsRegistered && !IsIntrinsicType(type))
933
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type);
939
if (
TypeDescriptor
.RequireRegisteredTypes && !IsIntrinsicType(type))
942
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type);
965
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type);
971
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type);
977
public override void RegisterType<[DynamicallyAccessedMembers(
TypeDescriptor
.RegisteredTypesDynamicallyAccessedMembers)] T>()
986
lock (
TypeDescriptor
.s_commonSyncObject)
1005
lock (
TypeDescriptor
.s_commonSyncObject)
1030
public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType, object? instance)
1102
lock (
TypeDescriptor
.s_commonSyncObject)
1130
lock (
TypeDescriptor
.s_commonSyncObject)
1158
lock (
TypeDescriptor
.s_commonSyncObject)
1234
IDictionary? cache =
TypeDescriptor
.GetCache(provider);
1255
lock (
TypeDescriptor
.s_commonSyncObject)
1264
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(providerType);
1323
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type) =>
1340
lock (
TypeDescriptor
.s_commonSyncObject)
1430
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed)]
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (18)
110
attributes.AddRange(
TypeDescriptor
.GetAttributes(iface).Attributes);
195
typeAttr = (TypeConverterAttribute?)
TypeDescriptor
.GetAttributes(_type)[typeof(TypeConverterAttribute)];
196
TypeConverterAttribute instanceAttr = (TypeConverterAttribute)
TypeDescriptor
.GetAttributes(instance)[typeof(TypeConverterAttribute)]!;
204
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(_type);
215
typeAttr ??= (TypeConverterAttribute?)
TypeDescriptor
.GetAttributes(_type)[typeof(TypeConverterAttribute)];
238
TypeDescriptor
.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(_type);
255
attributes =
TypeDescriptor
.GetAttributes(instance);
259
attributes =
TypeDescriptor
.GetAttributes(_type);
267
return
TypeDescriptor
.GetEvents(instance)[attr.Name];
271
return
TypeDescriptor
.GetEvents(_type)[attr.Name];
288
attributes =
TypeDescriptor
.GetAttributes(instance);
292
attributes =
TypeDescriptor
.GetAttributes(_type);
300
return
TypeDescriptor
.GetProperties(instance)[attr.Name];
304
return
TypeDescriptor
.GetProperties(_type)[attr.Name];
314
[RequiresUnreferencedCode(
TypeDescriptor
.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")]
326
typeAttr = GetEditorAttribute(
TypeDescriptor
.GetAttributes(_type), editorBaseType);
327
EditorAttribute? instanceAttr = GetEditorAttribute(
TypeDescriptor
.GetAttributes(instance), editorBaseType);
353
typeAttr = GetEditorAttribute(
TypeDescriptor
.GetAttributes(_type), editorBaseType);
System\ComponentModel\RefreshEventArgs.cs (1)
7
/// Provides data for the <see cref='System.ComponentModel.
TypeDescriptor
.Refresh(object)'/> event.
System\ComponentModel\RefreshEventHandler.cs (1)
7
/// Represents the method that will handle the <see cref='System.ComponentModel.
TypeDescriptor
.Refresh(object)'/> event
System\ComponentModel\TypeDescriptionProvider.cs (9)
50
public virtual void RegisterType<[DynamicallyAccessedMembers(
TypeDescriptor
.RegisteredTypesDynamicallyAccessedMembers)] T>()
179
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
180
public Type GetReflectionType([DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)] Type objectType) => GetReflectionType(objectType, null);
208
[return: DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)]
210
[DynamicallyAccessedMembers(
TypeDescriptor
.ReflectTypesDynamicallyAccessedMembers)] Type objectType,
252
public ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType)
287
public virtual ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType, object? instance)
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 (26)
170
/// Indicates whether types require registration in order to be used with <see cref="
TypeDescriptor
"/>.
206
TypeDescriptor
.AddProvider(provider, type);
461
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType,
474
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType,
521
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType,
535
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType,
686
public static AttributeCollection GetAttributes([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType)
818
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType)
873
public static TypeConverter GetConverter([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type)
880
internal static TypeConverter GetConverterTrimUnsafe([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type) =>
893
private static object? ConvertFromInvariantString([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type, string stringValue)
903
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType)
941
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType)
979
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type,
1089
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type type,
1101
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType)
1127
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType,
1338
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType)
1364
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type componentType,
2776
public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType, object? instance)
2887
public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType, object? instance)
3063
public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType, object? instance)
3357
public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType, object? instance)
3394
internal DefaultTypeDescriptor GetDefaultTypeDescriptor([DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType)
3776
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)]
3785
[DynamicallyAccessedMembers(
TypeDescriptor
.AllMembersAndInterfaces)] Type objectType,
System\Drawing\ColorConverter.cs (1)
75
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
System\Drawing\PointConverter.cs (3)
46
TypeConverter converter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
67
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
110
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(Point), attributes);
System\Drawing\RectangleConverter.cs (3)
46
TypeConverter converter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
69
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
120
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(Rectangle), attributes);
System\Drawing\SizeConverter.cs (3)
46
TypeConverter converter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
67
TypeConverter intConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(int));
110
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(Size), attributes);
System\Drawing\SizeFConverter.cs (3)
46
TypeConverter converter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(float));
67
TypeConverter floatConverter =
TypeDescriptor
.GetConverterTrimUnsafe(typeof(float));
108
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(SizeF), attributes);
System.Configuration.ConfigurationManager (5)
System\Configuration\ApplicationSettingsBase.cs (1)
515
TypeConverter tc =
TypeDescriptor
.GetConverter(propertyInfo.PropertyType);
System\Configuration\ConfigurationProperty.cs (1)
394
_converter =
TypeDescriptor
.GetConverter(Type);
System\Configuration\InfiniteTimeSpanConverter.cs (1)
11
private static readonly TypeConverter s_timeSpanConverter =
TypeDescriptor
.GetConverter(typeof(TimeSpan));
System\Configuration\SettingsPropertyValue.cs (2)
208
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
261
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
System.Data.Common (16)
System\Data\Common\DbConnectionStringBuilder.cs (10)
445
foreach (PropertyDescriptor reflected in
TypeDescriptor
.GetProperties(this, true))
597
return
TypeDescriptor
.GetClassName(this, true);
606
return
TypeDescriptor
.GetComponentName(this, true);
612
return
TypeDescriptor
.GetAttributes(this, true);
617
return
TypeDescriptor
.GetEditor(this, editorBaseType, true);
622
return
TypeDescriptor
.GetConverter(this, true);
627
return
TypeDescriptor
.GetDefaultProperty(this, true);
642
return
TypeDescriptor
.GetDefaultEvent(this, true);
651
return
TypeDescriptor
.GetEvents(this, true);
656
return
TypeDescriptor
.GetEvents(this, attributes, true);
System\Data\xmlsaver.cs (1)
117
PropertyDescriptorCollection pds =
TypeDescriptor
.GetProperties(instance);
System\Data\XMLSchema.cs (5)
21
return
TypeDescriptor
.GetConverter(type);
42
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(instance)[name];
286
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(instance)[name];
328
object? val =
TypeDescriptor
.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance);
399
object? val =
TypeDescriptor
.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance);
System.Data.Odbc (1)
System\Data\Odbc\OdbcCommand.cs (1)
308
TypeDescriptor
.Refresh(this); // VS7 208845
System.Data.OleDb (1)
OleDbCommand.cs (1)
276
TypeDescriptor
.Refresh(this);
System.Drawing.Common (4)
System\Drawing\FontConverter.cs (2)
255
static TypeConverter GetFloatConverter() =>
TypeDescriptor
.GetConverter(typeof(float));
398
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(value, attributes);
System\Drawing\ImageConverter.cs (1)
75
return
TypeDescriptor
.GetProperties(typeof(Image), attributes);
System\Drawing\Printing\MarginsConverter.cs (1)
63
private static TypeConverter GetIntConverter() =>
TypeDescriptor
.GetConverter(typeof(int));
System.Private.Windows.Core.TestUtilities (4)
CustomConverter.cs (4)
18
TypeDescriptionProvider parentProvider =
TypeDescriptor
.GetProvider(type);
20
TypeDescriptor
.AddProvider(newProvider, type);
27
/// <see cref="
TypeDescriptor
.RemoveProvider(TypeDescriptionProvider, Type)"/> is called when going out of scope with the using.
40
public void Dispose() =>
TypeDescriptor
.RemoveProvider(_provider, _type);
System.Resources.Extensions (3)
System\Resources\Extensions\DeserializingResourceReader.cs (2)
170
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
184
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
91
TypeConverter converter =
TypeDescriptor
.GetConverter(primitiveType);
System.Windows.Forms (138)
misc\ImageListUtils.cs (1)
38
PropertyDescriptor? property =
TypeDescriptor
.GetProperties(parentInstance)[pathInfo[i]];
System\Drawing\Design\UITypeEditor.cs (1)
63
TypeDescriptor
.AddEditorTable(typeof(UITypeEditor), intrinsicEditors);
System\Resources\ResXDataNode.cs (4)
246
TypeConverter converter =
TypeDescriptor
.GetConverter(valueType);
362
TypeConverter converter =
TypeDescriptor
.GetConverter(type);
402
&&
TypeDescriptor
.GetConverter(ResolveTypeName(typeName)) is { } converter
615
return
TypeDescriptor
.GetConverter(typeof(ResXFileRef)).ConvertFrom(_fileRef.ToString());
System\Windows\Forms\ActiveX\AxHost.cs (10)
994
if (
TypeDescriptor
.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int))
2392
if (
TypeDescriptor
.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int))
2431
TypeDescriptor
.Refresh(GetType());
2434
return
TypeDescriptor
.GetAttributes(this, true);
2471
return
TypeDescriptor
.GetDefaultEvent(this, true);
2478
return
TypeDescriptor
.GetDefaultProperty(this, true);
2498
=>
TypeDescriptor
.GetEvents(this, noCustomTypeDesc: true);
2503
=>
TypeDescriptor
.GetEvents(this, attributes, noCustomTypeDesc: true);
2509
TypeDescriptor
.Refresh(GetType());
2584
PropertyDescriptorCollection baseProps =
TypeDescriptor
.GetProperties(this, null, true);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1044
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(
1498
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
24
_innerConverter =
TypeDescriptor
.GetConverter(baseType);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedUITypeEditor.cs (1)
22
_innerEditor = (UITypeEditor?)
TypeDescriptor
.GetEditor(baseType, typeof(UITypeEditor));
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
62
=>
TypeDescriptor
.GetProperties(value, attributes);
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (1)
53
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(value, attributes);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (6)
18
/// through the <see cref="
TypeDescriptor
"/> support in .NET.
22
/// <see cref="
TypeDescriptor
.ComObjectType"/>.
100
internal static TypeConverter GetIComponentConverter() =>
TypeDescriptor
.GetConverter(typeof(IComponent));
104
=>
TypeDescriptor
.GetEditor(component.GetType(), baseEditorType);
341
TypeConverter subConverter =
TypeDescriptor
.GetConverter(type);
347
object? subEditor =
TypeDescriptor
.GetEditor(type, editorType);
System\Windows\Forms\Control.cs (2)
12739
sizeProperty =
TypeDescriptor
.GetProperties(this)[PropertyNames.Size];
12740
locationProperty =
TypeDescriptor
.GetProperties(this)[PropertyNames.Location];
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
166
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(this)["UseVisualStyleBackColor"];
System\Windows\Forms\Controls\Buttons\FlatButtonAppearanceConverter.cs (1)
27
return
TypeDescriptor
.GetProperties(value, attributes);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
912
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
943
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6809
converter =
TypeDescriptor
.GetConverter(type);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
242
formattedValueTypeConverter =
TypeDescriptor
.GetConverter(FormattedValueType);
728
valueTypeConverter =
TypeDescriptor
.GetConverter(ValueType);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (7)
313
:
TypeDescriptor
.GetConverter(DisplayType);
1059
PropertyDescriptor? propDesc =
TypeDescriptor
.GetProperties(item).Find(DisplayMember, ignoreCase: true);
1068
PropertyDescriptor? propDesc =
TypeDescriptor
.GetProperties(item).Find(ValueMember, ignoreCase: true);
1133
PropertyDescriptor? propDesc =
TypeDescriptor
.GetProperties(item).Find(ValueMember, ignoreCase: true);
1143
PropertyDescriptor? propDesc =
TypeDescriptor
.GetProperties(item).Find(DisplayMember, ignoreCase: true);
1452
PropertyDescriptor? propDesc =
TypeDescriptor
.GetProperties(item!).Find(field, ignoreCase: true);
1470
PropertyDescriptor? propDesc =
TypeDescriptor
.GetProperties(itemCandidate).Find(field, ignoreCase: true);
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (2)
95
TypeConverter intConverter =
TypeDescriptor
.GetConverter(typeof(int));
153
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(LinkArea), attributes);
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
91
TypeConverter intConverter =
TypeDescriptor
.GetConverter(typeof(int));
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
449
descriptor =
TypeDescriptor
.GetProperties(item).Find(field, true);
546
s_stringTypeConverter ??=
TypeDescriptor
.GetConverter(typeof(string));
551
s_stringTypeConverter ??=
TypeDescriptor
.GetConverterFromRegisteredType(typeof(string));
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
42
Type t =
TypeDescriptor
.GetReflectionType(value);
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
50
PropertyDescriptorCollection listViewItemProps =
TypeDescriptor
.GetProperties(instance);
61
PropertyDescriptorCollection listViewProps =
TypeDescriptor
.GetProperties(listViewInstance);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
109
args[i] =
TypeDescriptor
.GetConverter(propValue).ConvertToString(context, culture, propValue);
175
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(SelectionRange), attributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
1999
enable =
TypeDescriptor
.GetEditor(obj, typeof(ComponentEditor)) is not null;
2378
OnComComponentNameChanged(new ComponentRenameEventArgs(obj, oldName: null,
TypeDescriptor
.GetClassName(obj)));
2540
TypeDescriptor
.Refreshed += OnTypeDescriptorRefreshed;
2549
TypeDescriptor
.Refreshed -= OnTypeDescriptorRefreshed;
2946
&&
TypeDescriptor
.GetEditor(propertyType, typeof(UITypeEditor)) is UITypeEditor editor)
3131
var editor = (ComponentEditor?)
TypeDescriptor
.GetEditor(obj, typeof(ComponentEditor));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (7)
124
protected virtual AttributeCollection Attributes =>
TypeDescriptor
.GetAttributes(PropertyType!);
362
forceReadOnly |=
TypeDescriptor
.GetAttributes(value).Contains(InheritanceAttribute.InheritedReadOnly);
376
bool hasImmutableAttribute =
TypeDescriptor
.GetAttributes(PropertyType!)[typeof(ImmutableObjectAttribute)]!
758
=> _typeConverter ??=
TypeDescriptor
.GetConverter((PropertyValue ?? PropertyType)!);
769
Editor = (UITypeEditor?)
TypeDescriptor
.GetEditor(PropertyType, typeof(UITypeEditor));
1147
PropertyDescriptor? property =
TypeDescriptor
.GetProperties(owner)[propertyName];
1300
defaultProperty =
TypeDescriptor
.GetDefaultProperty(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
138
TypeConverter converter =
TypeDescriptor
.GetConverter(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
45
||
TypeDescriptor
.GetAttributes(target).Contains(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (3)
49
return
TypeDescriptor
.GetProperties(component, attributes);
53
?
TypeDescriptor
.GetConverter(component)
57
?
TypeDescriptor
.GetProperties(component, attributes)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
100
typeName =
TypeDescriptor
.GetClassName(owner);
110
PropertyDescriptor? componentProperty =
TypeDescriptor
.GetProperties(ownerType)[PropertyName!];
114
typeName = componentType is null ?
TypeDescriptor
.GetClassName(owner) : componentType.FullName;
642
eventDescriptor =
TypeDescriptor
.GetEvents(eventObj!)[PropertyDescriptor.Name];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
198
editor = (InstanceCreationEditor?)
TypeDescriptor
.GetEditor(ute, typeof(InstanceCreationEditor));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
41
_valueClassName =
TypeDescriptor
.GetClassName(Target);
128
||
TypeDescriptor
.GetAttributes(Target).Contains(InheritanceAttribute.InheritedReadOnly))
185
_valueClassName =
TypeDescriptor
.GetClassName(Target);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
121
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(this)[nameof(UseVisualStyleBackColor)];
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (2)
50
percent = (double)
TypeDescriptor
.GetConverter(typeof(double)).ConvertFrom(context, culture, text)!;
55
percent = (double)
TypeDescriptor
.GetConverterFromRegisteredType(typeof(double)).ConvertFrom(context, culture, text)!;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
202
TypeDescriptor
.RegisterType<Keys>();
1103
return
TypeDescriptor
.GetConverter(typeof(Keys)).ConvertToString(context: null, CultureInfo.CurrentUICulture, shortcutKeys);
1108
return
TypeDescriptor
.GetConverterFromRegisteredType(typeof(Keys)).ConvertToString(context: null, CultureInfo.CurrentUICulture, shortcutKeys);
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (1)
85
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
735
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(this)["SelectionStyle"];
1062
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(this)["SelectionStyle"];
System\Windows\Forms\DataBinding\Binding.cs (6)
495
InheritanceAttribute? attr = (InheritanceAttribute?)
TypeDescriptor
.GetAttributes(BindableComponent)[typeof(InheritanceAttribute)];
498
propInfos =
TypeDescriptor
.GetProperties(controlClass);
502
propInfos =
TypeDescriptor
.GetProperties(BindableComponent);
547
EventDescriptorCollection eventInfos =
TypeDescriptor
.GetEvents(BindableComponent);
718
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(value is not null ? value.GetType() : typeof(object));
792
TypeConverter typeConverter =
TypeDescriptor
.GetConverter(value is not null ? value.GetType() : typeof(object));
System\Windows\Forms\DataBinding\BindingManagerBase.cs (5)
109
return
TypeDescriptor
.GetProperties(listType);
116
return
TypeDescriptor
.GetProperties(property.PropertyType, [new BrowsableAttribute(true)]);
123
return
TypeDescriptor
.GetProperties(list[0]!);
137
itemProps =
TypeDescriptor
.GetProperties(property.PropertyType, [new BrowsableAttribute(true)]);
159
itemProps =
TypeDescriptor
.GetProperties(list[0]!);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (2)
141
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(b)[constructorParameterProperty];
187
val =
TypeDescriptor
.GetProperties(b)[constructorParameterProperty]?.GetValue(b);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (8)
142
pdc =
TypeDescriptor
.GetProperties(target!);
487
return
TypeDescriptor
.GetProperties(target!, BrowsableAttributeList);
568
return
TypeDescriptor
.GetProperties(GetListItemType(type), BrowsableAttributeList);
578
pdc =
TypeDescriptor
.GetProperties(targetType.GetElementType()!, BrowsableAttributeList);
593
pdc =
TypeDescriptor
.GetProperties(type, BrowsableAttributeList);
631
pdc =
TypeDescriptor
.GetProperties(enumerable, BrowsableAttributeList);
639
pdc =
TypeDescriptor
.GetProperties(instance, BrowsableAttributeList);
643
pdc =
TypeDescriptor
.GetProperties(enumerable, BrowsableAttributeList);
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
39
_propInfo =
TypeDescriptor
.GetProperties(_dataSource).Find(_propName, true) ??
68
return $"{
TypeDescriptor
.GetClassName(_dataSource!)}.{_propName}";
System\Windows\Forms\Design\EventsTab.cs (6)
42
return
TypeDescriptor
.GetDefaultEvent(obj) is EventDescriptor defaultEvent
95
/// to get <paramref name="component"/> property descriptors from <see cref="
TypeDescriptor
.GetEvents(object)"/>.
110
TypeDescriptor
.GetEvents(component, attributes, noCustomTypeDesc: false));
131
var matchingComponentProperties =
TypeDescriptor
.GetProperties(component, specifiedAttributesPlusContent);
150
EventDescriptorCollection propertyEvents =
TypeDescriptor
.GetEvents(value!, attributes!);
156
matchingPropertyEvents.Add(
TypeDescriptor
.CreateProperty(property.ComponentType, property, MergablePropertyAttribute.No));
System\Windows\Forms\Design\PropertyTab.cs (1)
107
=>
TypeDescriptor
.GetDefaultProperty(component);
System\Windows\Forms\ImageIndexConverter.cs (1)
108
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance);
System\Windows\Forms\ImageKeyConverter.cs (1)
114
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance);
System\Windows\Forms\Internal\Formatter.cs (6)
143
sourceTypeTypeConverter =
TypeDescriptor
.GetConverter(sourceType);
148
sourceTypeTypeConverter =
TypeDescriptor
.GetConverterFromRegisteredType(sourceType);
159
targetTypeTypeConverter =
TypeDescriptor
.GetConverter(targetType);
164
targetTypeTypeConverter =
TypeDescriptor
.GetConverterFromRegisteredType(targetType);
298
TypeConverter targetTypeTypeConverter =
TypeDescriptor
.GetConverter(targetType);
304
TypeConverter sourceTypeTypeConverter =
TypeDescriptor
.GetConverter(sourceType);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
102
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(TableLayoutPanelCellPosition), attributes);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (7)
46
TypeConverter converter =
TypeDescriptor
.GetConverter(this);
472
converter =
TypeDescriptor
.GetConverter(this);
477
TypeDescriptor
.RegisterType<TableLayoutSettings>();
478
converter =
TypeDescriptor
.GetConverterFromRegisteredType(this);
501
TypeDescriptor
.RegisterType<Control>();
515
prop =
TypeDescriptor
.GetProperties(c)["Name"];
520
prop =
TypeDescriptor
.GetPropertiesFromRegisteredType(c)["Name"];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
49
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(tableControl)["Name"];
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdges.cs (1)
20
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(typeof(DockPaddingEdges), attributes);
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
76
fontSize = (float)
TypeDescriptor
.GetConverter(typeof(float)).ConvertFromString(null, s_culture, unitTokens.size);
System.Windows.Forms.Design (514)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
103
if (!
TypeDescriptor
.GetConverter(type).GetCreateInstanceSupported())
105
foreach (PropertyDescriptor p in
TypeDescriptor
.GetProperties(type))
1240
AttributeCollection ICustomTypeDescriptor.GetAttributes() =>
TypeDescriptor
.GetAttributes(PropertyType);
1342
_uiTypeEditor =
TypeDescriptor
.GetEditor(_value, typeof(UITypeEditor));
System\ComponentModel\Design\CollectionEditor.cs (5)
116
if (
TypeDescriptor
.CreateInstance(host, itemType, argTypes: null, args: null) is { } obj)
125
nameof(
TypeDescriptor
),
153
PropertyDescriptor? property =
TypeDescriptor
.GetDefaultProperty(CollectionType);
162
text =
TypeDescriptor
.GetConverter(value).ConvertToString(value);
176
PropertyInfo[] properties =
TypeDescriptor
.GetReflectionType(CollectionType).GetProperties(BindingFlags.Public | BindingFlags.Instance);
System\ComponentModel\Design\ComponentDesigner.cs (7)
40
PropertyDescriptor? defaultProperty =
TypeDescriptor
.GetDefaultProperty(_component);
271
EventDescriptor? defaultEvent =
TypeDescriptor
.GetDefaultEvent(comp);
410
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(Component);
440
TypeDescriptor
.Refresh(Component); // force TypeDescriptor to re-query us.
640
events[evt.Name] =
TypeDescriptor
.CreateEvent(evt.ComponentType, evt, ReadOnlyAttribute.Yes);
668
properties[prop.Name] =
TypeDescriptor
.CreateProperty(prop.ComponentType, prop, ReadOnlyAttribute.Yes);
713
properties[SettingsKeyName] =
TypeDescriptor
.CreateProperty(
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
62
descriptor =
TypeDescriptor
.GetProperties(_designer.Component.GetType())[propertyName];
System\ComponentModel\Design\DesignerActionPanel.cs (1)
666
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(list)[pti.MemberName]
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
25
protected PropertyDescriptor PropertyDescriptor => _propDesc ??=
TypeDescriptor
.GetProperties(_actionList!)[PropertyItem!.MemberName]!;
System\ComponentModel\Design\DesignerActionUI.cs (1)
171
InheritanceAttribute? attribute = (InheritanceAttribute?)
TypeDescriptor
.GetAttributes(comp)[typeof(InheritanceAttribute)];
System\ComponentModel\Design\DesignerHost.cs (4)
134
Type type =
TypeDescriptor
.GetProvider(component).GetReflectionType(typeof(object));
140
TypeDescriptor
.AddProvider(typeProvider, component);
234
&& !
TypeDescriptor
.GetAttributes(extenderComponent).Contains(InheritanceAttribute.InheritedReadOnly)
393
Type reflectType =
TypeDescriptor
.GetReflectionType(component);
System\ComponentModel\Design\DesignSurface.cs (6)
263
?
TypeDescriptor
.CreateDesigner(component, typeof(IRootDesigner)) as IRootDesigner
264
:
TypeDescriptor
.CreateDesigner(component, typeof(IDesigner));
277
ConstructorInfo? ctor =
TypeDescriptor
.GetReflectionType(type).GetConstructor([]);
280
instance =
TypeDescriptor
.CreateInstance(this, type, [], []);
286
ctor =
TypeDescriptor
.GetReflectionType(type).GetConstructor(BindingFlags.Public | BindingFlags.Instance | BindingFlags.ExactBinding, null, [typeof(IContainer)], null);
291
instance =
TypeDescriptor
.CreateInstance(this, type, [typeof(IContainer)], [ComponentContainer]);
System\ComponentModel\Design\InheritanceService.cs (1)
84
Type reflect =
TypeDescriptor
.GetReflectionType(type);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
45
foreach (MethodInfo method in
TypeDescriptor
.GetReflectionType(collection).GetMethods(BindingFlags.Public | BindingFlags.Instance))
System\ComponentModel\Design\MenuCommandService.cs (3)
43
TypeDescriptor
.Refreshed += OnTypeRefreshed;
151
TypeDescriptor
.Refreshed -= OnTypeRefreshed;
197
!
TypeDescriptor
.GetAttributes(selectedComponent).Contains(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\ReferenceService.cs (3)
47
foreach (PropertyDescriptor property in
TypeDescriptor
.GetProperties(reference, s_attributes))
321
Debug.Assert(
TypeDescriptor
.GetComponentName(sitedComponent) is not null, $"Sited component has no name: {sitedComponent}");
344
string? siteName =
TypeDescriptor
.GetComponentName(SitedComponent);
System\ComponentModel\Design\SelectionService.cs (2)
234
string? helpContext =
TypeDescriptor
.GetClassName(component);
235
HelpKeywordAttribute? contextAttribute = (HelpKeywordAttribute?)
TypeDescriptor
.GetAttributes(component)[typeof(HelpKeywordAttribute)];
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (8)
153
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
185
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
418
PropertyDescriptorCollection eventProps = ebs.GetEventProperties(
TypeDescriptor
.GetEvents(comp));
444
PropertyDescriptor? modifierProp =
TypeDescriptor
.GetProperties(comp)["Modifiers"];
464
string? name =
TypeDescriptor
.GetComponentName(c);
580
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(data._value);
596
PropertyDescriptorCollection events = ebs.GetEventProperties(
TypeDescriptor
.GetEvents(data._value));
636
object? modifier =
TypeDescriptor
.GetProperties(data._value)["Modifiers"]?.GetValue(data._value);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
157
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(t);
260
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(baseType);
864
&& field.Type.BaseType.Equals(
TypeDescriptor
.GetClassName(component)))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
54
return modifierConverter ??
TypeDescriptor
.GetConverter(typeof(MemberAttributes));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (1)
41
if (!
TypeDescriptor
.GetAttributes(o)[typeof(InheritanceAttribute)]!.Equals(InheritanceAttribute.NotInherited))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (3)
41
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(o);
89
FieldInfo? field =
TypeDescriptor
.GetReflectionType(baseType).GetField(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
114
PropertyInfo? prop =
TypeDescriptor
.GetReflectionType(baseType).GetProperty(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (3)
66
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance, s_deserializeFilter);
180
string? varTypeName =
TypeDescriptor
.GetClassName(value);
348
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(instance, [BrowsableAttribute.Yes]);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (10)
159
return
TypeDescriptor
.GetReflectionType(type);
204
return
TypeDescriptor
.GetReflectionType(instance);
233
return
TypeDescriptor
.GetProperties(instance);
236
return
TypeDescriptor
.GetProperties(instance, attributes);
265
return
TypeDescriptor
.GetEvents(instance);
268
return
TypeDescriptor
.GetEvents(instance, attributes);
290
return
TypeDescriptor
.GetAttributes(instance);
322
return
TypeDescriptor
.GetAttributes(type);
1879
TypeConverter converter =
TypeDescriptor
.GetConverter(value);
1925
return new CodeObjectCreateExpression(
TypeDescriptor
.GetClassName(value)!, []);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (3)
326
provider ??=
TypeDescriptor
.GetProvider(originalCollection);
411
if (o is IComponent &&
TypeDescriptor
.GetAttributes(o).Contains(InheritanceAttribute.InheritedReadOnly))
675
MethodInfo? clearMethod =
TypeDescriptor
.GetReflectionType(collection).GetMethod("Clear", BindingFlags.Public | BindingFlags.Instance, null, [], null);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (3)
63
props ??=
TypeDescriptor
.GetProperties(comp);
105
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(value);
208
string? typeName =
TypeDescriptor
.GetClassName(value);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (6)
287
instance =
TypeDescriptor
.CreateInstance(_provider, type, argTypes: null, argArray);
304
foreach (ConstructorInfo info in
TypeDescriptor
.GetReflectionType(type).GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.CreateInstance))
341
instance =
TypeDescriptor
.CreateInstance(_provider, type, argTypes: null, tempArgs);
444
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(objectType);
489
DefaultSerializationProviderAttribute? attribute = (DefaultSerializationProviderAttribute?)
TypeDescriptor
.GetAttributes(serializerType)[typeof(DefaultSerializationProviderAttribute)];
672
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(propObject);
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
35
TypeConverter? converter =
TypeDescriptor
.GetConverter(enumValue);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
64
Type type =
TypeDescriptor
.GetProvider(propertyValue).GetReflectionType(typeof(object));
71
TypeDescriptor
.AddProvider(typeProvider, propertyValue);
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
54
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(comp)["LoadLanguage"];
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
248
typeName =
TypeDescriptor
.GetClassName(value);
306
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(value)["Modifiers"];
System\ComponentModel\Design\ToolStripContainerActionList.cs (8)
34
PropertyDescriptor? getProperty =
TypeDescriptor
.GetProperties(component)?[propertyName];
55
PropertyDescriptor? visibleProperty =
TypeDescriptor
.GetProperties(control)["Visible"];
70
PropertyDescriptor? changingProperty =
TypeDescriptor
.GetProperties(component)[propertyName];
88
PropertyDescriptor? dockProperty =
TypeDescriptor
.GetProperties(_toolStripContainer)["Dock"];
121
PropertyDescriptor? dockProp =
TypeDescriptor
.GetProperties(_toolStripContainer)["Dock"];
140
PropertyDescriptor? autoScrollProp =
TypeDescriptor
.GetProperties(newParent)["AutoScroll"];
160
if (
TypeDescriptor
.GetAttributes(control)?[typeof(InheritanceAttribute)] is not InheritanceAttribute inheritanceAttribute
168
PropertyDescriptor? controlsProp =
TypeDescriptor
.GetProperties(newParent)["Controls"];
System\ComponentModel\Design\UndoEngine.cs (1)
452
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
29
_cursorConverter =
TypeDescriptor
.GetConverter(typeof(Cursor));
System\Drawing\Design\ToolboxItem.cs (2)
267
comps.Add((IComponent)
TypeDescriptor
.CreateInstance(provider: null, createType, argTypes: null, args: null)!);
616
foreach (Attribute a in
TypeDescriptor
.GetAttributes(type))
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
560
designer =
TypeDescriptor
.CreateDesigner(targetControl, typeof(IDesigner)) as ControlDesigner;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (8)
237
PropertyDescriptor propLoc =
TypeDescriptor
.GetProperties(currentControl)["Visible"];
264
PropertyDescriptor propLoc =
TypeDescriptor
.GetProperties(_dragComponents[dragComponentIndex].dragComponent)["Location"];
341
PropertyDescriptor targetProp =
TypeDescriptor
.GetProperties(dragTarget)["Controls"];
342
PropertyDescriptor sourceProp =
TypeDescriptor
.GetProperties(dragSource)["Controls"];
365
string name =
TypeDescriptor
.GetComponentName(_dragComponents[0].dragComponent);
460
PropertyDescriptor propLoc =
TypeDescriptor
.GetProperties(primaryComponent)["Location"];
871
PropertyDescriptor snapProp =
TypeDescriptor
.GetProperties(parentControl)["SnapToGrid"];
874
PropertyDescriptor gridProp =
TypeDescriptor
.GetProperties(parentControl)["GridSize"];
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (15)
239
string name =
TypeDescriptor
.GetComponentName(_resizeComponents[0].resizeControl);
266
PropertyDescriptor snapProp =
TypeDescriptor
.GetProperties(control.Parent)["SnapToGrid"];
269
PropertyDescriptor gridProp =
TypeDescriptor
.GetProperties(control.Parent)["GridSize"];
330
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(control)["Locked"];
426
PropertyDescriptor propIntegralHeight =
TypeDescriptor
.GetProperties(control)["IntegralHeight"];
432
PropertyDescriptor propItemHeight =
TypeDescriptor
.GetProperties(control)["ItemHeight"];
518
propWidth =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Width"];
519
propHeight =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Height"];
520
propTop =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Top"];
521
propLeft =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Left"];
568
PropertyDescriptor propIntegralHeight =
TypeDescriptor
.GetProperties(targetControl)["IntegralHeight"];
924
PropertyDescriptor propWidth =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Width"];
925
PropertyDescriptor propHeight =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Height"];
926
PropertyDescriptor propTop =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Top"];
927
PropertyDescriptor propLeft =
TypeDescriptor
.GetProperties(_resizeComponents[0].resizeControl)["Left"];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (6)
102
_resizeProp =
TypeDescriptor
.GetProperties(_tableGlyph.Style)[isColumn ? "Width" : "Height"];
108
_changedProp =
TypeDescriptor
.GetProperties(_table)[isColumn ? "ColumnStyles" : "RowStyles"];
127
_rightStyle.styleProp =
TypeDescriptor
.GetProperties(_rightStyle.style)[isColumn ? "Width" : "Height"];
131
_leftStyle.styleProp =
TypeDescriptor
.GetProperties(_leftStyle.style)[isColumn ? "Width" : "Height"];
323
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(_styles[i])[isColumn ? "Width" : "Height"];
331
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(_styles[absIndex])[isColumn ? "Width" : "Height"];
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
164
PropertyDescriptor? controlsProp =
TypeDescriptor
.GetProperties(newParent)["Controls"];
197
string? name =
TypeDescriptor
.GetComponentName(control);
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (2)
78
MemberDescriptor? memberDescriptor =
TypeDescriptor
.GetProperties(navigator)["Items"];
84
PropertyDescriptor? propertyDescriptor =
TypeDescriptor
.GetProperties(navigator)[itemName];
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
62
PropertyDescriptorCollection propertyDescriptorCollection =
TypeDescriptor
.GetProperties(bindingSource);
System\Windows\Forms\Design\ButtonBaseDesigner.cs (2)
25
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(Component)["UseVisualStyleBackColor"];
49
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
65
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\CollectionEditVerbManager.cs (2)
34
prop =
TypeDescriptor
.GetDefaultProperty(designer.Component);
196
CollectionEditor itemsEditor =
TypeDescriptor
.GetEditor(propertyValue, typeof(UITypeEditor)) as CollectionEditor;
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
62
property =
TypeDescriptor
.GetProperties(Context.Instance)["Columns"];
System\Windows\Forms\Design\ComboBoxDesigner.cs (2)
82
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
108
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\CommandSet.cs (16)
553
return
TypeDescriptor
.GetProperties(comp)[propName];
598
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(currentSnapComponent);
919
PropertyDescriptor? propLoc =
TypeDescriptor
.GetProperties(component)["Location"];
1000
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
1271
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
1331
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(comp);
1959
PropertyDescriptorCollection eventProps = evs.GetEventProperties(
TypeDescriptor
.GetEvents(curComp));
2054
if ((
TypeDescriptor
.GetAttributes(curComp).Contains(DesignTimeVisibleAttribute.Yes)) || curComp is ToolStripItem)
2082
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(curComp);
2722
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(curComp);
2922
if (!Equals(
TypeDescriptor
.GetAttributes(obj)[typeof(InheritanceAttribute)], InheritanceAttribute.NotInherited))
3080
InheritanceAttribute? attr = (InheritanceAttribute?)
TypeDescriptor
.GetAttributes(primarySelection)[typeof(InheritanceAttribute)];
3462
PropertyDescriptor pProp =
TypeDescriptor
.GetProperties(p!)["Location"]!;
3463
PropertyDescriptor qProp =
TypeDescriptor
.GetProperties(q!)["Location"]!;
3480
PropertyDescriptor pProp =
TypeDescriptor
.GetProperties(p!)["Location"]!;
3481
PropertyDescriptor qProp =
TypeDescriptor
.GetProperties(q!)["Location"]!;
System\Windows\Forms\Design\ComponentTray.cs (13)
300
PropertyDescriptor trayIconProp =
TypeDescriptor
.GetProperties(_mainDesigner.Component)["TrayLargeIcon"];
406
PropertyDescriptor trayAAProp =
TypeDescriptor
.GetProperties(_mainDesigner.Component)["TrayAutoArrange"];
716
TypeDescriptor
.Refresh(component);
767
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(t);
807
return
TypeDescriptor
.GetAttributes(component).Contains(DesignTimeVisibleAttribute.Yes);
943
PropertyDescriptor loc =
TypeDescriptor
.GetProperties(receiver.GetType())["Location"];
1529
PropertyDescriptor loc =
TypeDescriptor
.GetProperties(receiver.GetType())["Location"];
1825
PropertyDescriptor ctlLocation =
TypeDescriptor
.GetProperties(comp)["TrayLocation"];
1860
PropertyDescriptor ctlLocation =
TypeDescriptor
.GetProperties(comp)["TrayLocation"];
1931
_inheritanceAttribute = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(component)[typeof(InheritanceAttribute)];
2353
prop =
TypeDescriptor
.GetProperties(_component)["Locked"];
2424
ToolboxBitmapAttribute attr = (ToolboxBitmapAttribute)
TypeDescriptor
.GetAttributes(_component)[typeof(ToolboxBitmapAttribute)];
2452
EventDescriptor defaultEvent =
TypeDescriptor
.GetDefaultEvent(component);
System\Windows\Forms\Design\ContextMenuStripActionList.cs (2)
23
PropertyDescriptor? getProperty =
TypeDescriptor
.GetProperties(_toolStripDropDown)[propertyName];
36
PropertyDescriptor? changingProperty =
TypeDescriptor
.GetProperties(_toolStripDropDown)[propertyName];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (4)
243
if (
TypeDescriptor
.GetAttributes(component).Contains(InheritanceAttribute.InheritedReadOnly))
319
return
TypeDescriptor
.GetProvider(context).GetReflectionType(runtimeType);
351
if (
TypeDescriptor
.GetReflectionType(control).GetMethod(
428
InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(child)[typeof(InheritanceAttribute)]!;
System\Windows\Forms\Design\ControlCommandSet.cs (11)
381
props =
TypeDescriptor
.GetProperties(c);
401
props =
TypeDescriptor
.GetProperties(currentSnapComponent);
530
PropertyDescriptor dockProp =
TypeDescriptor
.GetProperties(comp)["Dock"];
767
PropertyDescriptor propIntegralHeight =
TypeDescriptor
.GetProperties(component)["IntegralHeight"];
773
PropertyDescriptor propItemHeight =
TypeDescriptor
.GetProperties(component)["ItemHeight"];
782
PropertyDescriptor propSize =
TypeDescriptor
.GetProperties(component)["Size"];
1040
controlsProp =
TypeDescriptor
.GetProperties(parent)["Controls"];
1103
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(parent)["Controls"];
1181
PropertyDescriptor lockedProp =
TypeDescriptor
.GetProperties(_baseControl)["Locked"];
1199
lockedProp =
TypeDescriptor
.GetProperties(component)["Locked"];
1314
!
TypeDescriptor
.GetAttributes(obj)[typeof(InheritanceAttribute)].Equals(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ControlDesigner.cs (13)
205
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(component);
783
if (
TypeDescriptor
.GetAttributes(Component).Contains(DesignTimeVisibleAttribute.Yes)
841
if (
TypeDescriptor
.GetAttributes(Component).Contains(DesignTimeVisibleAttribute.Yes)
930
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(component.GetType());
949
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(Component);
1156
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
1174
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(Component);
1192
PropertyDescriptor? dockProp =
TypeDescriptor
.GetProperties(Component)["Dock"];
1216
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
1610
_hasLocation =
TypeDescriptor
.GetProperties(Component)["Location"] is not null;
1648
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ControlDesigner), prop, []);
1658
properties["Controls"] =
TypeDescriptor
.CreateProperty(
1671
properties["Locked"] =
TypeDescriptor
.CreateProperty(
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
74
TypeDescriptor
.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (2)
28
PropertyDescriptor? dockProp =
TypeDescriptor
.GetProperties(Component)["Dock"];
64
PropertyDescriptor dockProp =
TypeDescriptor
.GetProperties(Component!)["Dock"]!;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (5)
140
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(column);
206
AttributeCollection? attributes =
TypeDescriptor
.GetAttributes(type);
540
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(_liveDataGridView)["Columns"];
731
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
816
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (18)
140
TypeDescriptor
.RemoveAssociation(listBoxItem.DataGridViewColumn, listBoxItem.DataGridViewColumnDesigner);
183
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(_liveDataGridView)["Columns"];
264
PropertyDescriptor? propertyDescriptor =
TypeDescriptor
.GetProperties(newColumns[i])["DisplayIndex"];
274
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(newColumns[i])["UserAddedColumn"];
640
PropertyDescriptor? propertyDescriptor =
TypeDescriptor
.GetProperties(col)["UserAddedColumn"];
763
TypeDescriptor
.RemoveAssociation(lbi.DataGridViewColumn, lbi.DataGridViewColumnDesigner);
865
TypeDescriptor
.RemoveAssociation(lbi.DataGridViewColumn, lbi.DataGridViewColumnDesigner);
1211
TypeDescriptor
.CreateAssociation(DataGridViewColumn, DataGridViewColumnDesigner);
1236
AttributeCollection ICustomTypeDescriptor.GetAttributes() =>
TypeDescriptor
.GetAttributes(DataGridViewColumn);
1238
string? ICustomTypeDescriptor.GetClassName() =>
TypeDescriptor
.GetClassName(DataGridViewColumn);
1240
string? ICustomTypeDescriptor.GetComponentName() =>
TypeDescriptor
.GetComponentName(DataGridViewColumn);
1243
TypeConverter ICustomTypeDescriptor.GetConverter() =>
TypeDescriptor
.GetConverter(DataGridViewColumn);
1245
EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() =>
TypeDescriptor
.GetDefaultEvent(DataGridViewColumn);
1247
PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() =>
TypeDescriptor
.GetDefaultProperty(DataGridViewColumn);
1250
object? ICustomTypeDescriptor.GetEditor(Type type) =>
TypeDescriptor
.GetEditor(DataGridViewColumn, type);
1252
EventDescriptorCollection ICustomTypeDescriptor.GetEvents() =>
TypeDescriptor
.GetEvents(DataGridViewColumn);
1254
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attrs) =>
TypeDescriptor
.GetEvents(DataGridViewColumn, attrs!);
1262
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(DataGridViewColumn);
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (4)
234
properties["Width"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewColumnDesigner), prop, []);
245
properties["Name"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewColumnDesigner),
256
properties["Name"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewColumnDesigner),
263
properties["UserAddedColumn"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewColumnDesigner), "UserAddedColumn", typeof(bool),
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
102
DataGridViewColumnDesignTimeVisibleAttribute? attr =
TypeDescriptor
.GetAttributes(t)[typeof(DataGridViewColumnDesignTimeVisibleAttribute)] as DataGridViewColumnDesignTimeVisibleAttribute;
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (2)
105
properties["ValueMember"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewComboBoxColumnDesigner), property, []);
111
properties["DisplayMember"] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewComboBoxColumnDesigner), property, []);
System\Windows\Forms\Design\DataGridViewDesigner.cs (16)
42
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(typeof(DataGridViewColumn))["Width"];
297
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(dataGridView);
363
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(DataGridViewDesigner), prop, empty);
403
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(dataGridViewColumn)["UserAddedColumn"];
424
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
443
PropertyDescriptor? columnsProp =
TypeDescriptor
.GetProperties(dataGridView)["Columns"];
463
PropertyDescriptor? pd =
TypeDescriptor
.GetProperties(dataGridViewColumn)["UserAddedColumn"];
485
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
569
PropertyDescriptor? columnsProp =
TypeDescriptor
.GetProperties(dataGridView)["Columns"];
581
PropertyDescriptor? propertyDescriptor =
TypeDescriptor
.GetProperties(col)["UserAddedColumn"];
616
TypeConverter imageTypeConverter =
TypeDescriptor
.GetConverter(typeof(Image));
653
DataGridViewColumn? dataGridViewColumn =
TypeDescriptor
.CreateInstance(host, columnType, null, null) as DataGridViewColumn;
872
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(dataGridView)["AllowUserToAddRows"];
915
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(dataGridView)["AllowUserToDeleteRows"];
958
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(dataGridView)["AllowUserToReorderColumns"];
1001
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(dataGridView)["ReadOnly"];
System\Windows\Forms\Design\DataGridViewDesigner.DataGridViewChooseDataSourceActionList.cs (1)
48
PropertyDescriptor? dataSourceProp =
TypeDescriptor
.GetProperties(dataGridView)["DataSource"];
System\Windows\Forms\Design\DataMemberFieldEditor.cs (1)
24
if (
TypeDescriptor
.GetProperties(instance)[nameof(ComboBox.DataSource)] is not PropertyDescriptor property)
System\Windows\Forms\Design\DataMemberListEditor.cs (1)
22
if (
TypeDescriptor
.GetProperties(context.Instance)[nameof(ComboBox.DataSource)] is { } dataSourceProperty)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1481
ListBindableAttribute? listBindable =
TypeDescriptor
.GetAttributes(dataSource)[typeof(ListBindableAttribute)] as ListBindableAttribute;
System\Windows\Forms\Design\DesignerExtenders.NameExtenderProvider.cs (1)
59
if (!
TypeDescriptor
.GetAttributes(o)[typeof(InheritanceAttribute)]?.Equals(InheritanceAttribute.NotInherited) ?? false)
System\Windows\Forms\Design\DesignerExtenders.NameInheritedExtenderProvider.cs (1)
39
if (!
TypeDescriptor
.GetAttributes(o)[typeof(InheritanceAttribute)]?.Equals(InheritanceAttribute.NotInherited) ?? false)
System\Windows\Forms\Design\DocumentDesigner.cs (12)
475
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(Component)["Locked"];
482
prop =
TypeDescriptor
.GetProperties(Component)["AutoSize"];
489
prop =
TypeDescriptor
.GetProperties(Component)["AutoSizeMode"];
634
PropertyDescriptor backProp =
TypeDescriptor
.GetProperties(Component.GetType())["BackColor"];
854
if (!addControl || !
TypeDescriptor
.GetAttributes(component).Contains(DesignTimeVisibleAttribute.Yes))
1198
properties["TrayHeight"] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), "TrayHeight", typeof(int),
1204
properties["TrayLargeIcon"] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), "TrayLargeIcon", typeof(bool),
1210
properties["DoubleBuffered"] =
TypeDescriptor
.CreateProperty(typeof(Control), "DoubleBuffered", typeof(bool),
1238
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), prop, empty);
1245
properties["AutoScaleDimensions"] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible);
1251
properties["AutoScaleMode"] =
TypeDescriptor
.CreateProperty(typeof(DocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible, BrowsableAttribute.Yes);
1259
properties[noBrowseProps[i]] =
TypeDescriptor
.CreateProperty(prop.ComponentType, prop, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
System\Windows\Forms\Design\EditorServiceContext.cs (3)
27
prop =
TypeDescriptor
.GetDefaultProperty(designer.Component);
46
PropertyDescriptor descriptor =
TypeDescriptor
.GetProperties(objectToChange)[propName]!;
147
CollectionEditor? itemsEditor =
TypeDescriptor
.GetEditor(propertyValue, typeof(UITypeEditor)) as CollectionEditor;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (5)
80
TypeDescriptor
.AddAttributes(child, InheritanceAttribute.InheritedReadOnly);
95
properties["FlowDirection"] =
TypeDescriptor
.CreateProperty(typeof(FlowLayoutPanelDesigner), flowDirection, []);
340
string name =
TypeDescriptor
.GetComponentName(_dragControls[0]);
591
PropertyDescriptor controlsProperty =
TypeDescriptor
.GetProperties(Component)["Controls"];
724
PropertyDescriptor controlsProperty =
TypeDescriptor
.GetProperties(Component)["Controls"];
System\Windows\Forms\Design\FormatStringEditor.cs (11)
47
changeService.OnComponentChanging(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["Format"]);
48
changeService.OnComponentChanging(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["NullValue"]);
49
changeService.OnComponentChanging(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["FormatProvider"]);
53
changeService.OnComponentChanging(component,
TypeDescriptor
.GetProperties(component)["FormatString"]);
54
changeService.OnComponentChanging(component,
TypeDescriptor
.GetProperties(component)["FormatInfo"]);
67
TypeDescriptor
.Refresh(component);
73
changeService.OnComponentChanged(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["Format"]);
74
changeService.OnComponentChanged(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["NullValue"]);
75
changeService.OnComponentChanged(cellStyle,
TypeDescriptor
.GetProperties(cellStyle)["FormatProvider"]);
79
changeService.OnComponentChanged(component,
TypeDescriptor
.GetProperties(component)["FormatString"]);
80
changeService.OnComponentChanged(component,
TypeDescriptor
.GetProperties(component)["FormatInfo"]);
System\Windows\Forms\Design\FormDocumentDesigner.cs (5)
236
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
322
PropertyDescriptor windowStateProp =
TypeDescriptor
.GetProperties(component.GetType())["WindowState"];
468
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(FormDocumentDesigner), prop, empty);
476
properties["AutoScaleBaseSize"] =
TypeDescriptor
.CreateProperty(typeof(FormDocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible);
483
properties["ClientSize"] =
TypeDescriptor
.CreateProperty(typeof(FormDocumentDesigner), prop, new DefaultValueAttribute(new Size(-1, -1)));
System\Windows\Forms\Design\ImageCollectionEditor.cs (3)
37
PropertyDescriptor property =
TypeDescriptor
.GetProperties(value)["Name"];
53
text =
TypeDescriptor
.GetConverter(value).ConvertToString(value);
65
UITypeEditor editor = (UITypeEditor)
TypeDescriptor
.GetEditor(typeof(ImageListImage), typeof(UITypeEditor));
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
63
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(instance);
162
PropertyDescriptor? property =
TypeDescriptor
.GetProperties(parentInstance)[pathInfo[i]];
System\Windows\Forms\Design\ImageListActionList.cs (2)
29
TypeDescriptor
.GetProperties(Component)[nameof(ColorDepth)]?.SetValue(Component, value);
41
TypeDescriptor
.GetProperties(Component)[nameof(ImageSize)]?.SetValue(Component, value);
System\Windows\Forms\Design\ImageListDesigner.cs (2)
118
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ImageListDesigner), prop, []);
129
properties["Images"] =
TypeDescriptor
.CreateProperty(typeof(ImageListDesigner), "Images", typeof(OriginalImageCollection), attrs);
System\Windows\Forms\Design\LabelDesigner.cs (2)
33
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
145
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
37
property =
TypeDescriptor
.GetProperties(context.Instance)["Text"];
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
67
properties[nameof(IntegralHeight)] =
TypeDescriptor
.CreateProperty(typeof(ListBoxDesigner), integralHeightProp, []);
72
properties[nameof(Dock)] =
TypeDescriptor
.CreateProperty(typeof(ListBoxDesigner), dockProp, []);
System\Windows\Forms\Design\ListViewActionList.cs (3)
33
set =>
TypeDescriptor
.GetProperties(_listView)[nameof(View)]!.SetValue(Component, value);
39
set =>
TypeDescriptor
.GetProperties(_listView)[nameof(LargeImageList)]!.SetValue(Component, value);
45
set =>
TypeDescriptor
.GetProperties(_listView)[nameof(SmallImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\ListViewDesigner.cs (2)
118
properties["OwnerDraw"] =
TypeDescriptor
.CreateProperty(typeof(ListViewDesigner), ownerDrawProp, []);
125
properties["View"] =
TypeDescriptor
.CreateProperty(typeof(ListViewDesigner), viewProp, []);
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (2)
32
PropertyDescriptor property =
TypeDescriptor
.GetDefaultProperty(CollectionType);
43
text =
TypeDescriptor
.GetConverter(value).ConvertToString(value);
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (2)
50
PropertyDescriptor property =
TypeDescriptor
.GetDefaultProperty(CollectionType);
62
text =
TypeDescriptor
.GetConverter(value).ConvertToString(value);
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
179
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(MaskedTextBoxDesigner), prop, empty);
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
51
PropertyDescriptor? maskProperty =
TypeDescriptor
.GetProperties(_maskedTextBox)["Mask"];
System\Windows\Forms\Design\OleDragDropHandler.cs (7)
264
if (!
TypeDescriptor
.GetAttributes(comps[i]).Contains(DesignTimeVisibleAttribute.Yes))
283
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(rootComponent)["Language"];
355
PropertyDescriptor? loc =
TypeDescriptor
.GetProperties(comps[i])["Location"];
476
InheritanceAttribute attr = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(components[i])[typeof(InheritanceAttribute)]!;
761
PropertyDescriptor? loc =
TypeDescriptor
.GetProperties(comp)["TrayLocation"];
763
loc ??=
TypeDescriptor
.GetProperties(comp)["Location"];
807
if (
TypeDescriptor
.GetAttributes(comp).Contains(DesignTimeVisibleAttribute.Yes))
System\Windows\Forms\Design\ParentControlDesigner.cs (19)
556
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(Control)["Controls"];
563
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(newChild);
938
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(component)["AutoSize"];
948
prop =
TypeDescriptor
.GetProperties(component)["PreferredSize"];
961
prop =
TypeDescriptor
.GetProperties(component)["Size"];
1331
_changeService.OnComponentChanging(Control,
TypeDescriptor
.GetProperties(Control)["Controls"]);
1343
_changeService.OnComponentChanged(Control,
TypeDescriptor
.GetProperties(Control)["Controls"]);
1361
_changeService.OnComponentChanging(Control,
TypeDescriptor
.GetProperties(Control)["Controls"]);
1525
InheritanceAttribute attr = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(comp)[typeof(InheritanceAttribute)];
2095
properties["DrawGrid"] =
TypeDescriptor
.CreateProperty(typeof(ParentControlDesigner), "DrawGrid", typeof(bool),
2101
properties["SnapToGrid"] =
TypeDescriptor
.CreateProperty(typeof(ParentControlDesigner), "SnapToGrid", typeof(bool),
2107
properties["GridSize"] =
TypeDescriptor
.CreateProperty(typeof(ParentControlDesigner), "GridSize", typeof(Size),
2115
properties["CurrentGridSize"] =
TypeDescriptor
.CreateProperty(typeof(ParentControlDesigner), "CurrentGridSize", typeof(Size),
2131
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(newParent)["Controls"];
2132
PropertyDescriptor locationProp =
TypeDescriptor
.GetProperties(newParent)["Location"];
2151
InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(control)[typeof(InheritanceAttribute)];
2158
PropertyDescriptor locProp =
TypeDescriptor
.GetProperties(control)["Location"];
2397
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(parent)["Controls"];
2477
designer =
TypeDescriptor
.CreateDesigner(component, typeof(IDesigner));
System\Windows\Forms\Design\PictureBoxActionList.cs (1)
24
set =>
TypeDescriptor
.GetProperties(_pictureBox)[nameof(PictureBox.SizeMode)]!.SetValue(Component, value);
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
88
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
19
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(Component)["TabStop"];
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
80
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(RichTextBoxDesigner), prop, empty);
System\Windows\Forms\Design\SelectionUIHandler.cs (12)
364
PropertyDescriptor? boundsProp =
TypeDescriptor
.GetProperties(components[i])["Bounds"];
394
PropertyDescriptor? trayProp =
TypeDescriptor
.GetProperties(components[i])["TrayLocation"];
406
PropertyDescriptor? leftProp =
TypeDescriptor
.GetProperties(components[i])["Left"];
407
PropertyDescriptor? topProp =
TypeDescriptor
.GetProperties(components[i])["Top"];
436
PropertyDescriptor? locationProp =
TypeDescriptor
.GetProperties(components[i])["Location"];
456
PropertyDescriptor? widthProp =
TypeDescriptor
.GetProperties(components[i])["Width"];
457
PropertyDescriptor? heightProp =
TypeDescriptor
.GetProperties(components[i])["Height"];
517
cs.OnComponentChanging(c,
TypeDescriptor
.GetProperties(c)["Location"]);
518
PropertyDescriptor? sizeProp =
TypeDescriptor
.GetProperties(c)["Size"];
522
sizeProp =
TypeDescriptor
.GetProperties(c)["ClientSize"];
593
PropertyDescriptor? sizeProp =
TypeDescriptor
.GetProperties(control)["Size"];
594
PropertyDescriptor? locProp =
TypeDescriptor
.GetProperties(control)["Location"];
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
62
private TypeConverter KeysConverter => _keysConverter ??=
TypeDescriptor
.GetConverter(typeof(Keys));
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
311
RaiseComponentChanging(
TypeDescriptor
.GetProperties(_splitContainer!)["SplitterDistance"]);
312
RaiseComponentChanged(
TypeDescriptor
.GetProperties(_splitContainer!)["SplitterDistance"], oldValue: null, newValue: null);
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (2)
28
PropertyDescriptor? orientationProp =
TypeDescriptor
.GetProperties(_ownerComponent)["Orientation"];
50
PropertyDescriptor? orientationProp =
TypeDescriptor
.GetProperties(_ownerComponent!)["Orientation"];
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
30
? (InheritanceAttribute?)
TypeDescriptor
.GetAttributes(_splitterPanel.Parent)[typeof(InheritanceAttribute)]
118
PropertyDescriptor? lockedProp =
TypeDescriptor
.GetProperties(component)["Locked"];
233
properties[de.Key] =
TypeDescriptor
.CreateProperty(descriptor.ComponentType, descriptor, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (7)
177
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(item)["Image"];
200
MemberDescriptor member =
TypeDescriptor
.GetProperties(rootItem)["DropDownItems"];
213
MemberDescriptor topMember =
TypeDescriptor
.GetProperties(tool)["Items"];
317
PropertyDescriptor displayStyleProperty =
TypeDescriptor
.GetProperties(item)["DisplayStyle"];
321
PropertyDescriptor textProperty =
TypeDescriptor
.GetProperties(item)["Text"];
337
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(item)["Image"];
351
MemberDescriptor topMember =
TypeDescriptor
.GetProperties(tool)["Items"];
System\Windows\Forms\Design\StyleEditorForm.cs (3)
109
_rowStyleProp =
TypeDescriptor
.GetProperties(_tableLayoutPanel)["RowStyles"];
110
_colStyleProp =
TypeDescriptor
.GetProperties(_tableLayoutPanel)["ColumnStyles"];
1052
PropertyDescriptor childProperty =
TypeDescriptor
.GetProperties(_tableLayoutPanel)[nameof(TableLayoutPanel.Controls)];
System\Windows\Forms\Design\TabControlDesigner.cs (7)
99
MemberDescriptor member =
TypeDescriptor
.GetProperties(component: Component)["Controls"];
245
MemberDescriptor member =
TypeDescriptor
.GetProperties(tc)["Controls"];
258
PropertyDescriptor nameProp =
TypeDescriptor
.GetProperties(page)["Name"];
266
PropertyDescriptor textProperty =
TypeDescriptor
.GetProperties(page)["Text"];
271
PropertyDescriptor styleProp =
TypeDescriptor
.GetProperties(page)["UseVisualStyleBackColor"];
315
MemberDescriptor member =
TypeDescriptor
.GetProperties(Component)["Controls"];
460
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(TabControlDesigner), prop, empty);
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
52
PropertyDescriptor? lsProp =
TypeDescriptor
.GetProperties(panel)[LayoutSettingsPropName];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (29)
96
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(host.RootComponent)["Localizable"];
468
PropertyDescriptor rowProp =
TypeDescriptor
.GetProperties(Table)["RowCount"];
476
PropertyDescriptor colProp =
TypeDescriptor
.GetProperties(Table)["ColumnCount"];
489
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(Table)["Controls"];
639
PropertyDescriptor colProp =
TypeDescriptor
.GetProperties(Table)["ColumnCount"];
642
PropertyDescriptor rowProp =
TypeDescriptor
.GetProperties(Table)["RowCount"];
1057
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(Component)["Locked"];
1169
_rowStyleProp =
TypeDescriptor
.GetProperties(Table)["RowStyles"];
1170
_colStyleProp =
TypeDescriptor
.GetProperties(Table)["ColumnStyles"];
1177
TypeDescriptor
.AddAttributes(Control.Controls[i], InheritanceAttribute.InheritedReadOnly);
1359
PropertyDescriptor columnSpan =
TypeDescriptor
.GetProperties(dragControl)["ColumnSpan"];
1360
PropertyDescriptor rowSpan =
TypeDescriptor
.GetProperties(dragControl)["RowSpan"];
1395
AttributeCollection attribs =
TypeDescriptor
.GetAttributes(Component.GetType());
1430
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(Component)["Controls"];
1456
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(Component)["Controls"];
1663
PropertyDescriptor rowProp =
TypeDescriptor
.GetProperties(Table)["RowCount"];
1675
PropertyDescriptor colProp =
TypeDescriptor
.GetProperties(Table)["ColumnCount"];
1698
PropertyDescriptor childProp =
TypeDescriptor
.GetProperties(Table)["Controls"];
1704
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(child)[isRow ? "Row" : "Column"];
1705
PropertyDescriptor spanProp =
TypeDescriptor
.GetProperties(child)[isRow ? "RowSpan" : "ColumnSpan"];
1773
PropertyDescriptor childProp =
TypeDescriptor
.GetProperties(Table)["Controls"];
1779
PropertyDescriptor prop =
TypeDescriptor
.GetProperties(child)[isRow ? "Row" : "Column"];
1780
PropertyDescriptor spanProp =
TypeDescriptor
.GetProperties(child)[isRow ? "RowSpan" : "ColumnSpan"];
1828
PropertyDescriptor rowProp =
TypeDescriptor
.GetProperties(Table)["RowCount"];
1840
PropertyDescriptor colProp =
TypeDescriptor
.GetProperties(Table)["ColumnCount"];
1882
PropertyDescriptor childProp =
TypeDescriptor
.GetProperties(Table)["Controls"];
2089
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(TableLayoutPanelDesigner), prop, attribs);
2102
properties["Controls"] =
TypeDescriptor
.CreateProperty(typeof(TableLayoutPanelDesigner), "Controls", typeof(DesignerTableLayoutControlCollection), attrs);
2197
TypeDescriptor
.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (1)
450
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(control)["TabIndex"];
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (3)
94
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(component)["Image"];
101
PropertyDescriptor dispProperty =
TypeDescriptor
.GetProperties(component)["DisplayStyle"];
105
PropertyDescriptor imageTransProperty =
TypeDescriptor
.GetProperties(component)["ImageTransparentColor"];
System\Windows\Forms\Design\TextBoxActionList.cs (1)
22
set =>
TypeDescriptor
.GetProperties(_textBox)[nameof(Multiline)]!.SetValue(Component, value);
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (6)
31
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
77
return
TypeDescriptor
.GetProperties(typeof(TextBoxBase))["Text"]!.ShouldSerializeValue(Component);
93
PropertyDescriptor? textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
114
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(TextBoxBaseDesigner), prop, []);
133
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(component)["Multiline"];
138
PropertyDescriptor? propAuto =
TypeDescriptor
.GetProperties(component)["AutoSize"];
System\Windows\Forms\Design\TextBoxDesigner.cs (1)
60
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(TextBoxDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripActionList.cs (2)
54
PropertyDescriptor? getProperty =
TypeDescriptor
.GetProperties(_toolStrip)[propertyName];
62
PropertyDescriptor? changingProperty =
TypeDescriptor
.GetProperties(_toolStrip)[propertyName];
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
593
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(newItem)[nameof(Image)];
600
PropertyDescriptor displayProperty =
TypeDescriptor
.GetProperties(newItem)["DisplayStyle"];
603
PropertyDescriptor imageTransProperty =
TypeDescriptor
.GetProperties(newItem)["ImageTransparentColor"];
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (5)
379
TypeDescriptor
.AddAttributes(_bottomToolStripPanel, bottomToolboxBitmapAttribute, new DescriptionAttribute("bottom"));
380
TypeDescriptor
.AddAttributes(_rightToolStripPanel, rightToolboxBitmapAttribute, new DescriptionAttribute("right"));
381
TypeDescriptor
.AddAttributes(_leftToolStripPanel, leftToolboxBitmapAttribute, new DescriptionAttribute("left"));
382
TypeDescriptor
.AddAttributes(_topToolStripPanel, topToolboxBitmapAttribute, new DescriptionAttribute("top"));
451
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripContainerDesigner), propertyDescriptor, empty);
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
95
events[noBrowseEvents[i]] =
TypeDescriptor
.CreateEvent(eventDescriptor.ComponentType, eventDescriptor, BrowsableAttribute.No);
System\Windows\Forms\Design\ToolStripCustomTypeDescriptor.cs (2)
42
PropertyDescriptorCollection retColl =
TypeDescriptor
.GetProperties(_instance);
76
PropertyDescriptorCollection retColl =
TypeDescriptor
.GetProperties(_instance);
System\Windows\Forms\Design\ToolStripDesigner.cs (20)
180
(InheritanceAttribute)
TypeDescriptor
.GetAttributes(ToolStrip)[typeof(InheritanceAttribute)];
558
PropertyDescriptor textProperty =
TypeDescriptor
.GetProperties(item)[nameof(Text)];
577
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(item)[nameof(Image)];
584
PropertyDescriptor displayProperty =
TypeDescriptor
.GetProperties(item)["DisplayStyle"];
588
PropertyDescriptor imageTransProperty =
TypeDescriptor
.GetProperties(item)["ImageTransparentColor"];
879
RaiseComponentChanging(
TypeDescriptor
.GetProperties(Component)[nameof(Items)]);
901
RaiseComponentChanged(
TypeDescriptor
.GetProperties(Component)[nameof(Items)], null, null);
1013
RaiseComponentChanged(
TypeDescriptor
.GetProperties(Component)[nameof(Items)], null, null);
1082
RaiseComponentChanging(
TypeDescriptor
.GetProperties(Component)[nameof(Items)]);
1447
new EditorServiceContext(this,
TypeDescriptor
.GetProperties(Component)[nameof(Items)], SR.ToolStripItemCollectionEditorVerb);
1501
PropertyDescriptor dockProp =
TypeDescriptor
.GetProperties(ToolStrip)["Dock"];
1522
PropertyDescriptor mainMenuStripProperty =
TypeDescriptor
.GetProperties(parentForm)["MainMenuStrip"];
1534
PropertyDescriptor controlsProp =
TypeDescriptor
.GetProperties(parentPanel)["Controls"];
1543
PropertyDescriptor locationProp =
TypeDescriptor
.GetProperties(ToolStrip)["Location"];
1861
string name =
TypeDescriptor
.GetComponentName(dragComponents[0]);
1880
changeService.OnComponentChanging(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)[nameof(Items)]);
1937
changeService?.OnComponentChanged(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)[nameof(Items)]);
1944
changeService.OnComponentChanging(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)[nameof(Items)]);
1945
changeService.OnComponentChanged(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)[nameof(Items)]);
2233
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
286
ToolStripItemDesignerAvailabilityAttribute visibilityAttribute = (ToolStripItemDesignerAvailabilityAttribute)
TypeDescriptor
.GetAttributes(t)[typeof(ToolStripItemDesignerAvailabilityAttribute)];
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
399
new EditorServiceContext(this,
TypeDescriptor
.GetProperties(Component)["Items"], SR.ToolStripItemCollectionEditorVerb);
557
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripDropDownDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (9)
660
string name =
TypeDescriptor
.GetComponentName(dragComponents[0]);
681
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
685
changeService.OnComponentChanging(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
757
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
761
changeService.OnComponentChanged(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
770
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
771
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
775
changeService.OnComponentChanging(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
776
changeService.OnComponentChanged(parentToolStrip,
TypeDescriptor
.GetProperties(parentToolStrip)["Items"]);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
212
_verbManager = new CollectionEditVerbManager(SR.ToolStripDropDownItemCollectionEditorVerb, itemDesigner,
TypeDescriptor
.GetProperties(_currentItem)["DropDownItems"], false);
568
PropertyDescriptor getProperty =
TypeDescriptor
.GetProperties(_currentItem)[propertyName];
584
PropertyDescriptor getProperty =
TypeDescriptor
.GetProperties(_currentItem)[propertyName];
602
PropertyDescriptor changingProperty =
TypeDescriptor
.GetProperties(target)[propertyName];
System\Windows\Forms\Design\ToolStripItemDesigner.cs (15)
371
PropertyDescriptor textProp =
TypeDescriptor
.GetProperties(ToolStripItem)["Text"];
516
changeService.OnComponentChanging(parent,
TypeDescriptor
.GetProperties(parent)["DropDownItems"]);
538
changeService.OnComponentChanged(parent,
TypeDescriptor
.GetProperties(parent)["DropDownItems"]);
663
PropertyDescriptor pd =
TypeDescriptor
.GetProperties(ToolStripItem)["Text"];
681
PropertyDescriptor textProp =
TypeDescriptor
.GetProperties(Component)["Text"];
764
changeService.OnComponentChanging(parent,
TypeDescriptor
.GetProperties(parent)["Items"]);
768
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
769
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
803
PropertyDescriptor imageProperty =
TypeDescriptor
.GetProperties(newItem)["Image"];
810
PropertyDescriptor dispProperty =
TypeDescriptor
.GetProperties(newItem)["DisplayStyle"];
814
PropertyDescriptor imageTransProperty =
TypeDescriptor
.GetProperties(newItem)["ImageTransparentColor"];
824
changeService.OnComponentChanged(parent,
TypeDescriptor
.GetProperties(parent)["Items"]);
828
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
829
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
1025
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripItemDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
1088
InheritanceAttribute ia = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(tool)[typeof(InheritanceAttribute)];
1116
InheritanceAttribute ia = (InheritanceAttribute)
TypeDescriptor
.GetAttributes(tool)[typeof(InheritanceAttribute)];
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (14)
536
PropertyDescriptor textProp =
TypeDescriptor
.GetProperties(editedItem)["Text"];
875
PropertyDescriptor textProperty =
TypeDescriptor
.GetProperties(newItem)["Text"];
1650
MemberDescriptor member =
TypeDescriptor
.GetProperties(MenuItem.DropDown)["Items"];
1656
RaiseComponentChanging(
TypeDescriptor
.GetProperties(MenuItem)["DropDownItems"]);
1753
MemberDescriptor member =
TypeDescriptor
.GetProperties(MenuItem.DropDown)["Items"];
1759
RaiseComponentChanged(
TypeDescriptor
.GetProperties(MenuItem)["DropDownItems"], null, null);
1859
RaiseComponentChanged(
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"], null, null);
1946
RaiseComponentChanging(
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
2237
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripMenuItemDesigner), prop, empty);
2648
string name =
TypeDescriptor
.GetComponentName(dragComponents[0]);
2666
changeService?.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
2717
changeService?.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
2724
changeService.OnComponentChanging(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
2725
changeService.OnComponentChanged(ownerItem,
TypeDescriptor
.GetProperties(ownerItem)["DropDownItems"]);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (4)
371
PropertyDescriptor? dockProp =
TypeDescriptor
.GetProperties(e.Control)["Dock"];
510
events[noBrowseEvents[i]] =
TypeDescriptor
.CreateEvent(eventDescriptor.ComponentType, eventDescriptor, BrowsableAttribute.No);
553
properties[noBrowseProps[i]] =
TypeDescriptor
.CreateProperty(propertyDescriptor.ComponentType, propertyDescriptor, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
565
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(ToolStripPanelDesigner), propertyDescriptor, empty);
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
43
PropertyDescriptor? prop =
TypeDescriptor
.GetProperties(component)[propertyName];
System\Windows\Forms\Design\TreeViewActionList.cs (1)
26
set =>
TypeDescriptor
.GetProperties(_treeView)[nameof(TreeView.ImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
45
PropertyDescriptorCollection props =
TypeDescriptor
.GetProperties(Component);
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (1)
54
properties[shadowProps[i]] =
TypeDescriptor
.CreateProperty(typeof(UserControlDocumentDesigner), prop, []);
System.Windows.Forms.Primitives (9)
System\ComponentModel\TypeConverterHelper.cs (3)
43
converter =
TypeDescriptor
.GetConverter(typeof(T));
48
TypeDescriptor
.RegisterType<T>();
49
converter =
TypeDescriptor
.GetConverterFromRegisteredType(typeof(T));
System\ComponentModel\TypeDescriptorHelper.cs (5)
13
attribute =
TypeDescriptor
.GetAttributes(component)[typeof(T)] as T;
22
attribute =
TypeDescriptor
.GetAttributes(componentType)[typeof(T)] as T;
28
return (T?)
TypeDescriptor
.GetEditor(type, typeof(T));
33
editor =
TypeDescriptor
.GetEditor(component, typeof(T)) as T;
42
PropertyDescriptor? property =
TypeDescriptor
.GetProperties(component)[name];
System\Windows\Forms\PaddingConverter.cs (1)
114
PropertyDescriptorCollection properties =
TypeDescriptor
.GetProperties(typeof(Padding), attributes);
System.Xaml (4)
System\Windows\Markup\ValueSerializer.cs (2)
114
AttributeCollection attributes =
TypeDescriptor
.GetAttributes(type);
275
TypeDescriptor
.Refreshed += TypeDescriptorRefreshed;
System\Xaml\Schema\BuiltInValueConverter.cs (2)
194
stdConverter =
TypeDescriptor
.GetConverter(typeof(Uri));
218
s_Uri = new BuiltInValueConverter<TypeConverter>(stdConverter.GetType(), () =>
TypeDescriptor
.GetConverter(typeof(Uri)));
tlens (1)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (1)
535
TypeConverter conv =
TypeDescriptor
.GetConverter(targetType);