UITypeEditor.GetEditStyle 方法

定義

取得 EditValue(IServiceProvider, Object) 方法所使用的編輯器樣式。Gets the editor style used by the EditValue(IServiceProvider, Object) method.

多載

GetEditStyle()

取得 EditValue(IServiceProvider, Object) 方法所使用的編輯器樣式。Gets the editor style used by the EditValue(IServiceProvider, Object) method.

GetEditStyle(ITypeDescriptorContext)

取得 EditValue(IServiceProvider, Object) 方法所使用的編輯器樣式。Gets the editor style used by the EditValue(IServiceProvider, Object) method.

GetEditStyle()

取得 EditValue(IServiceProvider, Object) 方法所使用的編輯器樣式。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

傳回

UITypeEditorEditStyle 列舉型別值,表示目前 UITypeEditor 所使用的編輯器樣式。A UITypeEditorEditStyle enumeration value that indicates the style of editor used by the current UITypeEditor. 根據預設值,這個方法將永遠傳回 NoneBy default, this method will return None.

備註

如果不覆寫並執行這個方法, GetEditStyle則預設會None傳回。 UITypeEditorIf a UITypeEditor does not override and implement this method, GetEditStyle will return None by default.

另請參閱

GetEditStyle(ITypeDescriptorContext)

取得 EditValue(IServiceProvider, Object) 方法所使用的編輯器樣式。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);
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

參數

context
ITypeDescriptorContext

ITypeDescriptorContext,可用來取得其他的內容資訊。An ITypeDescriptorContext that can be used to gain additional context information.

傳回

UITypeEditorEditStyle 值,表示 EditValue(IServiceProvider, Object) 方法所使用的編輯器樣式。A UITypeEditorEditStyle value that indicates the style of editor used by the EditValue(IServiceProvider, Object) method. 如果 UITypeEditor 不支援這個方法,則 GetEditStyle() 會傳回 NoneIf the UITypeEditor does not support this method, then GetEditStyle() will return None.

另請參閱

適用於