UITypeEditor.GetEditStyle Method

Definition

Gets the editor style used by the EditValue(IServiceProvider, Object) method.

Overloads

GetEditStyle()

Gets the editor style used by the EditValue(IServiceProvider, Object) method.

GetEditStyle(ITypeDescriptorContext)

Gets the editor style used by the EditValue(IServiceProvider, Object) method.

GetEditStyle()

Source:
UITypeEditor.cs
Source:
UITypeEditor.cs
Source:
UITypeEditor.cs

Gets the editor style used by the EditValue(IServiceProvider, Object) method.

C#
public System.Drawing.Design.UITypeEditorEditStyle GetEditStyle();

Returns

A UITypeEditorEditStyle enumeration value that indicates the style of editor used by the current UITypeEditor. By default, this method will return None.

Remarks

If a UITypeEditor does not override and implement this method, GetEditStyle will return None by default.

See also

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetEditStyle(ITypeDescriptorContext)

Source:
UITypeEditor.cs
Source:
UITypeEditor.cs
Source:
UITypeEditor.cs

Gets the editor style used by the EditValue(IServiceProvider, Object) method.

C#
public virtual System.Drawing.Design.UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext context);
C#
public virtual System.Drawing.Design.UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext? context);

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that can be used to gain additional context information.

Returns

A UITypeEditorEditStyle value that indicates the style of editor used by the EditValue(IServiceProvider, Object) method. If the UITypeEditor does not support this method, then GetEditStyle() will return None.

See also

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10