17 implementations of ICustomTypeDescriptor
System.ComponentModel.TypeConverter (5)
System\ComponentModel\CustomTypeDescriptor.cs (1)
8
public abstract class CustomTypeDescriptor :
ICustomTypeDescriptor
System\ComponentModel\TypeDescriptor.cs (4)
2797
private sealed class ComNativeTypeDescriptor :
ICustomTypeDescriptor
3075
private sealed class MergedTypeDescriptor :
ICustomTypeDescriptor
3416
private readonly struct DefaultExtendedTypeDescriptor :
ICustomTypeDescriptor
3773
private readonly struct DefaultTypeDescriptor :
ICustomTypeDescriptor
System.Data.Common (5)
System\Data\Common\DataRecordInternal.cs (1)
11
internal sealed class DataRecordInternal : DbDataRecord,
ICustomTypeDescriptor
System\Data\Common\DbConnectionStringBuilder.cs (1)
25
public class DbConnectionStringBuilder : IDictionary,
ICustomTypeDescriptor
System\Data\Common\DbDataRecord.cs (1)
9
public abstract class DbDataRecord :
ICustomTypeDescriptor
, IDataRecord
System\Data\DataRowView.cs (1)
9
public class DataRowView :
ICustomTypeDescriptor
, IEditableObject, IDataErrorInfo, INotifyPropertyChanged
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
9
internal sealed class DataViewManagerListItemTypeDescriptor :
ICustomTypeDescriptor
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.cs (1)
27
public abstract unsafe partial class AxHost : Control, ISupportInitialize,
ICustomTypeDescriptor
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (1)
16
private sealed unsafe class ComTypeDescriptor :
ICustomTypeDescriptor
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (1)
16
private sealed class NullTypeDescriptor :
ICustomTypeDescriptor
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1118
private class SelectionWrapper : PropertyDescriptor,
ICustomTypeDescriptor
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1201
internal class ListBoxItem :
ICustomTypeDescriptor
, IComponent
System.Windows.Forms.Tests (2)
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
106
private class CustomDescriptor :
ICustomTypeDescriptor
System\Windows\Forms\ListBindingHelperTests.cs (1)
769
public class CustomTypeDescriptorType : Type,
ICustomTypeDescriptor
407 references to ICustomTypeDescriptor
netstandard (1)
netstandard.cs (1)
330
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
ICustomTypeDescriptor
))]
PresentationFramework (2)
MS\Internal\Data\ValueTable.cs (1)
216
if (item is
ICustomTypeDescriptor
)
System\Windows\PropertyPath.cs (1)
603
if (accessor == null && item is
ICustomTypeDescriptor
)
System (1)
src\libraries\shims\System\ref\System.cs (1)
316
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
ICustomTypeDescriptor
))]
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptionProvider.cs (2)
59
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(AllMembersAndInterfaces)] Type objectType, object? instance)
61
ICustomTypeDescriptor
? baseDescriptor = base.GetTypeDescriptor(objectType, instance);
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
20
ICustomTypeDescriptor
? parent,
System.ComponentModel.TypeConverter (134)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (2)
20
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, object? instance)
28
public XTypeDescriptor(
ICustomTypeDescriptor
? parent) : base(parent)
System\ComponentModel\CustomTypeDescriptor.cs (5)
10
private readonly
ICustomTypeDescriptor
? _parent;
34
protected CustomTypeDescriptor(
ICustomTypeDescriptor
? parent)
272
/// <see cref="
ICustomTypeDescriptor
.GetConverterFromRegisteredType()"/>,
273
/// <see cref="
ICustomTypeDescriptor
.GetEventsFromRegisteredType()"/>, and
274
/// <see cref="
ICustomTypeDescriptor
.GetPropertiesFromRegisteredType()"/>.
System\ComponentModel\DelegatingTypeDescriptionProvider.cs (3)
84
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
117
public override
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
128
public override
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance) => Provider.GetTypeDescriptorFromRegisteredType(objectType, instance);
System\ComponentModel\ICustomTypeDescriptor.cs (3)
154
/// <see cref="
ICustomTypeDescriptor
.GetConverterFromRegisteredType()"/>,
155
/// <see cref="
ICustomTypeDescriptor
.GetEventsFromRegisteredType()"/>, and
156
/// <see cref="
ICustomTypeDescriptor
.GetPropertiesFromRegisteredType()"/>.
System\ComponentModel\PropertyDescriptor.cs (1)
370
if (target is
ICustomTypeDescriptor
td)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
822
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
828
public override
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance)
1033
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
System\ComponentModel\TypeDescriptionProvider.cs (9)
108
public virtual
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
132
public virtual
ICustomTypeDescriptor
GetExtendedTypeDescriptorFromRegisteredType(object instance)
252
public
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType)
266
public
ICustomTypeDescriptor
? GetTypeDescriptor(object instance)
287
public virtual
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
305
public
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(Type objectType)
325
public
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(object instance)
356
public virtual
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance)
369
ICustomTypeDescriptor
? Forward() => GetTypeDescriptor(objectType, instance);
System\ComponentModel\TypeDescriptor.cs (108)
738
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
751
if (component is
ICustomTypeDescriptor
)
755
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
773
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1008
internal static
ICustomTypeDescriptor
? GetDescriptor(object component, bool noCustomTypeDesc)
1015
ICustomTypeDescriptor
? desc = NodeFor(component).GetTypeDescriptor(component);
1016
ICustomTypeDescriptor
? d = component as
ICustomTypeDescriptor
;
1025
internal static
ICustomTypeDescriptor
? GetDescriptorFromRegisteredType(object component)
1027
ICustomTypeDescriptor
? desc = NodeFor(component).GetTypeDescriptorFromRegisteredType(component);
1028
ICustomTypeDescriptor
? d = component as
ICustomTypeDescriptor
;
1041
internal static
ICustomTypeDescriptor
GetExtendedDescriptor(object component)
1051
internal static
ICustomTypeDescriptor
GetExtendedDescriptorFromRegisteredType(object component)
1213
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
1226
if (component is
ICustomTypeDescriptor
)
1231
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1249
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1470
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
1483
if (component is
ICustomTypeDescriptor
)
1488
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1506
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1563
ICustomTypeDescriptor
typeDesc = GetDescriptorFromRegisteredType(component)!;
1566
if (component is
ICustomTypeDescriptor
)
1576
ICustomTypeDescriptor
extDesc = GetExtendedDescriptorFromRegisteredType(component);
2776
public override
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
2813
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => _handler.GetAttributes(_instance);
2815
string
ICustomTypeDescriptor
.GetClassName() => _handler.GetClassName(_instance);
2817
string?
ICustomTypeDescriptor
.GetComponentName() => null;
2820
TypeConverter
ICustomTypeDescriptor
.GetConverter() => _handler.GetConverter(_instance);
2823
EventDescriptor
ICustomTypeDescriptor
.GetDefaultEvent()
2829
PropertyDescriptor
ICustomTypeDescriptor
.GetDefaultProperty()
2835
object
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
2840
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
2846
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
2852
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
2858
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
2863
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => _instance;
2887
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
2903
internal AttributeTypeDescriptor(Attribute[] attrs,
ICustomTypeDescriptor
? parent) : base(parent)
3063
public override
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
3077
private readonly
ICustomTypeDescriptor
_primary;
3078
private readonly
ICustomTypeDescriptor
_secondary;
3083
internal MergedTypeDescriptor(
ICustomTypeDescriptor
primary,
ICustomTypeDescriptor
secondary)
3092
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
3103
string
ICustomTypeDescriptor
.GetClassName()
3114
string?
ICustomTypeDescriptor
.GetComponentName()
3123
TypeConverter
ICustomTypeDescriptor
.GetConverter()
3135
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
3144
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
3153
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
3165
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
3177
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
3189
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
3201
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
3214
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
3283
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
3295
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptorFromRegisteredType(object instance)
3357
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
3373
public override
ICustomTypeDescriptor
GetTypeDescriptorFromRegisteredType(Type objectType, object? instance)
3391
ICustomTypeDescriptor
Forward() => GetTypeDescriptor(objectType, instance);
3435
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
3447
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3458
string?
ICustomTypeDescriptor
.GetClassName()
3470
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3480
string?
ICustomTypeDescriptor
.GetComponentName()
3492
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3501
TypeConverter
ICustomTypeDescriptor
.GetConverter()
3513
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3523
TypeConverter
ICustomTypeDescriptor
.GetConverterFromRegisteredType()
3535
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_instance);
3546
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
3558
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3567
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
3578
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3587
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
3600
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3609
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
3620
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3630
EventDescriptorCollection
ICustomTypeDescriptor
.GetEventsFromRegisteredType()
3641
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance);
3652
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
3668
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3679
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
3690
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3700
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetPropertiesFromRegisteredType()
3711
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance);
3722
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
3738
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3749
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
3762
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3809
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3836
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3848
string?
ICustomTypeDescriptor
.GetComponentName()
3861
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3887
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3914
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
3942
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3968
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3996
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4021
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4048
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
4076
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4104
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4132
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
4162
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4189
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
System.Data.Common (63)
System\Data\Common\DataRecordInternal.cs (13)
305
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
310
string?
ICustomTypeDescriptor
.GetClassName()
315
string?
ICustomTypeDescriptor
.GetComponentName()
321
TypeConverter?
ICustomTypeDescriptor
.GetConverter()
327
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
333
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
339
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
344
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
350
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
356
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
358
return ((
ICustomTypeDescriptor
)this).GetProperties(null);
362
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) =>
365
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbConnectionStringBuilder.cs (12)
592
string?
ICustomTypeDescriptor
.GetClassName()
601
string?
ICustomTypeDescriptor
.GetComponentName()
610
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
615
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
620
TypeConverter
ICustomTypeDescriptor
.GetConverter()
625
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
630
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
635
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
640
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
646
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
654
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
658
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbDataRecord.cs (13)
73
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => new AttributeCollection(null);
75
string?
ICustomTypeDescriptor
.GetClassName() => null;
77
string?
ICustomTypeDescriptor
.GetComponentName() => null;
80
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => null;
83
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
86
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => null;
89
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
91
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => new EventDescriptorCollection(null);
94
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null);
97
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() =>
98
((
ICustomTypeDescriptor
)this).GetProperties(null);
101
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) =>
104
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\DataRowView.cs (13)
232
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => new AttributeCollection(null);
233
string?
ICustomTypeDescriptor
.GetClassName() => null;
234
string?
ICustomTypeDescriptor
.GetComponentName() => null;
237
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => null;
240
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
243
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => null;
246
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
248
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => new EventDescriptorCollection(null);
251
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null);
254
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => ((
ICustomTypeDescriptor
)this).GetProperties(null);
257
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) =>
260
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\DataViewManagerListItemTypeDescriptor.cs (12)
34
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => new AttributeCollection(null);
40
string?
ICustomTypeDescriptor
.GetClassName() => null;
46
string?
ICustomTypeDescriptor
.GetComponentName() => null;
52
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => null;
58
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
64
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => null;
70
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
78
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => new EventDescriptorCollection(null);
88
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) =>
98
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() =>
109
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) =>
139
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => this;
System.Private.Windows.Core.TestUtilities (2)
CustomConverter.cs (2)
50
public override
ICustomTypeDescriptor
GetTypeDescriptor(
58
public TypeConverterProvider(
ICustomTypeDescriptor
? parent, TypeConverter converter) : base(parent)
System.Windows.Forms (56)
System\Windows\Forms\ActiveX\AxHost.cs (12)
2429
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
2445
string?
ICustomTypeDescriptor
.GetClassName()
2455
string?
ICustomTypeDescriptor
.GetComponentName()
2465
TypeConverter?
ICustomTypeDescriptor
.GetConverter()
2472
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
2479
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
2489
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
2500
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
2505
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
2690
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
2697
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
2703
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
500
PropertyDescriptorCollection props = ((
ICustomTypeDescriptor
)_host).GetProperties();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
44
if (target is
ICustomTypeDescriptor
customTypeDescriptor)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (4)
445
if (component is
ICustomTypeDescriptor
descriptor)
608
if (component is
ICustomTypeDescriptor
descriptor)
793
if (component is
ICustomTypeDescriptor
descriptor)
827
if (owner is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
42
if (instance is
ICustomTypeDescriptor
customTypeDescriptor)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (13)
13
/// The <see cref="
ICustomTypeDescriptor
"/> given by <see cref="ComNativeDescriptor"/> for a given type instance.
27
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => GetAttributes(_instance);
29
string?
ICustomTypeDescriptor
.GetClassName() => GetClassName(_instance);
31
string?
ICustomTypeDescriptor
.GetComponentName()
38
TypeConverter
ICustomTypeDescriptor
.GetConverter() => GetIComponentConverter();
41
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
44
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => _handler.GetDefaultProperty(_instance);
47
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => GetEditor(_instance, editorBaseType);
49
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => new(null);
52
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => new(null);
55
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => _handler.GetProperties(_instance);
58
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) => _handler.GetProperties(_instance);
60
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => _instance;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
65
public override
ICustomTypeDescriptor
? GetTypeDescriptor(
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (12)
18
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => new(s_staticAttributes);
19
string?
ICustomTypeDescriptor
.GetClassName() => string.Empty;
20
string?
ICustomTypeDescriptor
.GetComponentName() => string.Empty;
22
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => GetIComponentConverter();
24
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
26
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => null;
28
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
29
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => EventDescriptorCollection.Empty;
31
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty;
33
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => PropertyDescriptorCollection.Empty;
35
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) => PropertyDescriptorCollection.Empty;
36
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => null;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
957
if (newObject is
ICustomTypeDescriptor
descriptor)
1052
if (currentObject is
ICustomTypeDescriptor
descriptor)
2230
return @object is
ICustomTypeDescriptor
descriptor
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1362
if (value is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
183
if (propertyOwner is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
258
if (owner is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
334
if (owner is
ICustomTypeDescriptor
descriptor)
400
if (owner is
ICustomTypeDescriptor
descriptor)
728
if (realOwner is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (2)
296
if (dmProp is null || dmProp.PropertyType is
ICustomTypeDescriptor
)
590
if (indexer is not null && !typeof(
ICustomTypeDescriptor
).IsAssignableFrom(indexer.PropertyType))
System.Windows.Forms.Design (25)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (12)
1232
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => TypeDescriptor.GetAttributes(PropertyType);
1237
string
ICustomTypeDescriptor
.GetClassName() => PropertyType.Name;
1242
string?
ICustomTypeDescriptor
.GetComponentName() => null;
1248
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => null;
1253
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
1258
PropertyDescriptor
ICustomTypeDescriptor
.GetDefaultProperty() => this;
1264
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
1271
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
1282
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty;
1290
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => _properties;
1299
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) => _properties;
1307
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (13)
1242
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => TypeDescriptor.GetAttributes(DataGridViewColumn);
1244
string?
ICustomTypeDescriptor
.GetClassName() => TypeDescriptor.GetClassName(DataGridViewColumn);
1246
string?
ICustomTypeDescriptor
.GetComponentName() => TypeDescriptor.GetComponentName(DataGridViewColumn);
1249
TypeConverter
ICustomTypeDescriptor
.GetConverter() => TypeDescriptor.GetConverter(DataGridViewColumn);
1251
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => TypeDescriptor.GetDefaultEvent(DataGridViewColumn);
1253
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => TypeDescriptor.GetDefaultProperty(DataGridViewColumn);
1256
object?
ICustomTypeDescriptor
.GetEditor(Type type) => TypeDescriptor.GetEditor(DataGridViewColumn, type);
1258
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => TypeDescriptor.GetEvents(DataGridViewColumn);
1260
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attrs) => TypeDescriptor.GetEvents(DataGridViewColumn, attrs!);
1263
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => ((
ICustomTypeDescriptor
)this).GetProperties(null);
1266
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attrs)
1303
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) =>
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\DesignerHostTests.cs (3)
652
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);
745
ICustomTypeDescriptor
descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
846
ICustomTypeDescriptor
descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
System\Windows\Forms\Design\ControlCommandSetTests.cs (3)
153
public override
ICustomTypeDescriptor
? GetTypeDescriptor(Type objectType, object? instance)
155
var
baseDescriptor = _baseProvider.GetTypeDescriptor(objectType, instance);
164
public MockCustomTypeDescriptor(
ICustomTypeDescriptor
parent, PropertyDescriptor snapToGridProperty)
System\Windows\Forms\Design\EditorServiceContextTests.cs (1)
201
public override
ICustomTypeDescriptor
? GetTypeDescriptor(Type objectType, object? instance) => new TypeDescriptorStub(_property);
System.Windows.Forms.Tests (113)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (64)
23
ICustomTypeDescriptor
customTypeDescriptor = control;
39
ICustomTypeDescriptor
customTypeDescriptor = control;
55
ICustomTypeDescriptor
customTypeDescriptor = control;
71
ICustomTypeDescriptor
customTypeDescriptor = control;
87
ICustomTypeDescriptor
customTypeDescriptor = control;
103
ICustomTypeDescriptor
customTypeDescriptor = control;
114
ICustomTypeDescriptor
customTypeDescriptor = control;
125
ICustomTypeDescriptor
customTypeDescriptor = control;
136
ICustomTypeDescriptor
customTypeDescriptor = control;
147
ICustomTypeDescriptor
customTypeDescriptor = control;
167
ICustomTypeDescriptor
customTypeDescriptor = control;
188
ICustomTypeDescriptor
customTypeDescriptor = control;
199
ICustomTypeDescriptor
customTypeDescriptor = control;
210
ICustomTypeDescriptor
customTypeDescriptor = control;
221
ICustomTypeDescriptor
customTypeDescriptor = control;
232
ICustomTypeDescriptor
customTypeDescriptor = control;
243
ICustomTypeDescriptor
customTypeDescriptor = control;
254
ICustomTypeDescriptor
customTypeDescriptor = control;
265
ICustomTypeDescriptor
customTypeDescriptor = control;
276
ICustomTypeDescriptor
customTypeDescriptor = control;
287
ICustomTypeDescriptor
customTypeDescriptor = control;
301
ICustomTypeDescriptor
customTypeDescriptor = control;
312
ICustomTypeDescriptor
customTypeDescriptor = control;
367
ICustomTypeDescriptor
customTypeDescriptor = control;
378
ICustomTypeDescriptor
customTypeDescriptor = control;
392
ICustomTypeDescriptor
customTypeDescriptor = control;
415
ICustomTypeDescriptor
customTypeDescriptor = control;
438
ICustomTypeDescriptor
customTypeDescriptor = control;
464
ICustomTypeDescriptor
customTypeDescriptor = control;
499
ICustomTypeDescriptor
customTypeDescriptor = control;
523
ICustomTypeDescriptor
customTypeDescriptor = control;
542
ICustomTypeDescriptor
customTypeDescriptor = control;
567
ICustomTypeDescriptor
customTypeDescriptor = control;
603
ICustomTypeDescriptor
customTypeDescriptor = control;
634
ICustomTypeDescriptor
customTypeDescriptor = control;
655
ICustomTypeDescriptor
customTypeDescriptor = control;
682
ICustomTypeDescriptor
customTypeDescriptor = control;
703
ICustomTypeDescriptor
customTypeDescriptor = control;
730
ICustomTypeDescriptor
customTypeDescriptor = control;
756
ICustomTypeDescriptor
customTypeDescriptor = control;
768
ICustomTypeDescriptor
customTypeDescriptor = control;
783
ICustomTypeDescriptor
customTypeDescriptor = control;
802
ICustomTypeDescriptor
customTypeDescriptor = control;
819
ICustomTypeDescriptor
customTypeDescriptor = control;
848
ICustomTypeDescriptor
customTypeDescriptor = control;
879
ICustomTypeDescriptor
customTypeDescriptor = control;
908
ICustomTypeDescriptor
customTypeDescriptor = control;
940
ICustomTypeDescriptor
customTypeDescriptor = control;
969
ICustomTypeDescriptor
customTypeDescriptor = control;
988
ICustomTypeDescriptor
customTypeDescriptor = control;
1012
ICustomTypeDescriptor
customTypeDescriptor = control;
1031
ICustomTypeDescriptor
customTypeDescriptor = control;
1056
ICustomTypeDescriptor
customTypeDescriptor = control;
1083
ICustomTypeDescriptor
customTypeDescriptor = control;
1108
ICustomTypeDescriptor
customTypeDescriptor = control;
1133
ICustomTypeDescriptor
customTypeDescriptor = control;
1156
ICustomTypeDescriptor
customTypeDescriptor = control;
1181
ICustomTypeDescriptor
customTypeDescriptor = control;
1204
ICustomTypeDescriptor
customTypeDescriptor = control;
1232
ICustomTypeDescriptor
customTypeDescriptor = control;
1258
ICustomTypeDescriptor
customTypeDescriptor = control;
1286
ICustomTypeDescriptor
customTypeDescriptor = control;
1342
ICustomTypeDescriptor
customTypeDescriptor = control;
1353
ICustomTypeDescriptor
customTypeDescriptor = control;
System\Windows\Forms\AxHostTests.cs (32)
2332
ICustomTypeDescriptor
customTypeDescriptor = control;
2355
ICustomTypeDescriptor
customTypeDescriptor = control;
2376
ICustomTypeDescriptor
customTypeDescriptor = control;
2397
ICustomTypeDescriptor
customTypeDescriptor = control;
2416
ICustomTypeDescriptor
customTypeDescriptor = control;
2437
ICustomTypeDescriptor
customTypeDescriptor = control;
2456
ICustomTypeDescriptor
customTypeDescriptor = control;
2477
ICustomTypeDescriptor
customTypeDescriptor = control;
2496
ICustomTypeDescriptor
customTypeDescriptor = control;
2519
ICustomTypeDescriptor
customTypeDescriptor = control;
2540
ICustomTypeDescriptor
customTypeDescriptor = control;
2563
ICustomTypeDescriptor
customTypeDescriptor = control;
2588
ICustomTypeDescriptor
customTypeDescriptor = control;
2613
ICustomTypeDescriptor
customTypeDescriptor = control;
2632
ICustomTypeDescriptor
customTypeDescriptor = control;
2657
ICustomTypeDescriptor
customTypeDescriptor = control;
2688
ICustomTypeDescriptor
customTypeDescriptor = control;
2714
ICustomTypeDescriptor
customTypeDescriptor = control;
2737
ICustomTypeDescriptor
customTypeDescriptor = control;
2762
ICustomTypeDescriptor
customTypeDescriptor = control;
2785
ICustomTypeDescriptor
customTypeDescriptor = control;
2810
ICustomTypeDescriptor
customTypeDescriptor = control;
2833
ICustomTypeDescriptor
customTypeDescriptor = control;
2856
ICustomTypeDescriptor
customTypeDescriptor = control;
2887
ICustomTypeDescriptor
customTypeDescriptor = control;
2913
ICustomTypeDescriptor
customTypeDescriptor = control;
2936
ICustomTypeDescriptor
customTypeDescriptor = control;
2961
ICustomTypeDescriptor
customTypeDescriptor = control;
2984
ICustomTypeDescriptor
customTypeDescriptor = control;
3009
ICustomTypeDescriptor
customTypeDescriptor = control;
3041
ICustomTypeDescriptor
customTypeDescriptor = control;
3063
ICustomTypeDescriptor
customTypeDescriptor = control;
System\Windows\Forms\ButtonBaseTests.cs (1)
666
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
96
private readonly
ICustomTypeDescriptor
_descriptor;
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (2)
1897
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
1899
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
315
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
317
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ListBindingHelperTests.cs (8)
191
yield return new object[] { new ICustomTypeDescriptorPropertyClass(), "Property", typeof(
ICustomTypeDescriptor
) };
198
Mock<
ICustomTypeDescriptor
> customTypeDescriptor = new(MockBehavior.Strict);
252
yield return new object[] { new List<
ICustomTypeDescriptor
>(), Array.Empty<string>() };
253
yield return new object[] { typeof(IList<
ICustomTypeDescriptor
>), new string[] { nameof(
ICustomTypeDescriptor
.RequireRegisteredTypes) } };
732
public
ICustomTypeDescriptor
Property { get; set; }
944
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
949
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
System\Windows\Forms\TableLayoutPanelTests.cs (2)
2151
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
2153
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\TabPageTests.cs (1)
798
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);