MenuBindingsEditor.GetEditStyle(ITypeDescriptorContext) 方法

定义

获取与此编辑器关联的编辑样式。Gets the editing style that is associated with this editor.

public:
 override System::Drawing::Design::UITypeEditorEditStyle GetEditStyle(System::ComponentModel::ITypeDescriptorContext ^ context);
public override System.Drawing.Design.UITypeEditorEditStyle GetEditStyle (System.ComponentModel.ITypeDescriptorContext context);
override this.GetEditStyle : System.ComponentModel.ITypeDescriptorContext -> System.Drawing.Design.UITypeEditorEditStyle
Public Overrides Function GetEditStyle (context As ITypeDescriptorContext) As UITypeEditorEditStyle

参数

context
ITypeDescriptorContext

实现 ITypeDescriptorContext 接口的对象,该接口指示所编辑的对象的上下文。An object implementing the ITypeDescriptorContext interface that indicates the context of the object being edited.

返回

UITypeEditorEditStyle

与此编辑器关联的编辑样式。The editing style that is associated with this editor.

注解

GetEditStyle方法始终返回 Modal 值,该值指示编辑器用户界面 (UI) 是模式对话框。The GetEditStyle method always returns the Modal value, which indicates that the editor user interface (UI) is a modal dialog box.

继承者说明

context此方法的实现不使用参数, GetEditStyle(ITypeDescriptorContext) 但可在派生类中重写此参数The context parameter is not used by this implementation of the GetEditStyle(ITypeDescriptorContext) method but is available for you to override in derived classes

适用于

另请参阅