Redigeeri

Jagamisviis:


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()

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

public:
 System::Drawing::Design::UITypeEditorEditStyle GetEditStyle();
public System.Drawing.Design.UITypeEditorEditStyle GetEditStyle ();
member this.GetEditStyle : unit -> System.Drawing.Design.UITypeEditorEditStyle
Public Function GetEditStyle () As UITypeEditorEditStyle

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

GetEditStyle(ITypeDescriptorContext)

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

public:
 virtual System::Drawing::Design::UITypeEditorEditStyle GetEditStyle(System::ComponentModel::ITypeDescriptorContext ^ context);
public virtual System.Drawing.Design.UITypeEditorEditStyle GetEditStyle (System.ComponentModel.ITypeDescriptorContext context);
public virtual System.Drawing.Design.UITypeEditorEditStyle GetEditStyle (System.ComponentModel.ITypeDescriptorContext? context);
abstract member GetEditStyle : System.ComponentModel.ITypeDescriptorContext -> System.Drawing.Design.UITypeEditorEditStyle
override this.GetEditStyle : System.ComponentModel.ITypeDescriptorContext -> System.Drawing.Design.UITypeEditorEditStyle
Public Overridable Function GetEditStyle (context As ITypeDescriptorContext) As UITypeEditorEditStyle

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