3 overrides of GetEditor
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
111
public override object?
GetEditor
(Type editorBaseType)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
564
public override object?
GetEditor
(Type editorBaseType)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
192
public override object?
GetEditor
(Type editorBaseType) => _descriptors[0].GetEditor(editorBaseType);
27 references to GetEditor
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
122
: base.
GetEditor
(editorBaseType);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
549
return base.
GetEditor
(editorBaseType);
591
_editor = base.
GetEditor
(editorBaseType);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
192
public override object? GetEditor(Type editorBaseType) => _descriptors[0].
GetEditor
(editorBaseType);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
292
Editor = (UITypeEditor?)PropertyDescriptor.
GetEditor
(typeof(UITypeEditor));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
190
var editor = entry.PropertyDescriptor.
GetEditor
(typeof(InstanceCreationEditor)) as InstanceCreationEditor;
System.Windows.Forms.Design.Tests (1)
EnsureEditorsTests.cs (1)
156
object editor = propertyDescriptor.
GetEditor
(typeof(UITypeEditor));
System.Windows.Forms.Primitives (2)
System\ComponentModel\PropertyDescriptorExtensions.cs (2)
32
public static T? GetEditor<T>(this PropertyDescriptor descriptor) => (T?)descriptor.
GetEditor
(typeof(T));
36
value = (T?)descriptor.
GetEditor
(typeof(T));
System.Windows.Forms.Tests (18)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (18)
368
Assert.Null(property.
GetEditor
(typeof(UITypeEditor)));
379
Assert.IsType<CustomEditor>(property.
GetEditor
(typeof(object)));
380
Assert.Null(property.
GetEditor
(typeof(CustomEditor)));
381
Assert.Null(property.
GetEditor
(typeof(UITypeEditor)));
382
Assert.Null(property.
GetEditor
(typeof(int)));
393
Assert.Null(property.
GetEditor
(typeof(object)));
394
Assert.Null(property.
GetEditor
(typeof(CustomUITypeEditor)));
395
Assert.IsType<CustomUITypeEditor>(property.
GetEditor
(typeof(UITypeEditor)));
396
Assert.Null(property.
GetEditor
(typeof(int)));
416
Assert.Null(property.
GetEditor
(typeof(UITypeEditor)));
439
Assert.IsType<CustomEditor>(property.
GetEditor
(typeof(object)));
440
Assert.Null(property.
GetEditor
(typeof(CustomEditor)));
441
Assert.Null(property.
GetEditor
(typeof(UITypeEditor)));
442
Assert.Null(property.
GetEditor
(typeof(int)));
465
Assert.Null(property.
GetEditor
(typeof(object)));
466
Assert.Null(property.
GetEditor
(typeof(CustomUITypeEditor)));
467
Assert.IsType<CustomUITypeEditor>(property.
GetEditor
(typeof(UITypeEditor)));
468
Assert.Null(property.
GetEditor
(typeof(int)));