WindowsFormsComponentEditor.EditComponent 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个编辑器窗口,允许用户编辑指定的组件。
重载
| 名称 | 说明 |
|---|---|
| EditComponent(ITypeDescriptorContext, Object) |
创建一个编辑器窗口,该窗口允许用户使用指定的上下文信息编辑指定的组件。 |
| EditComponent(Object, IWin32Window) |
创建一个编辑器窗口,该窗口允许用户使用拥有组件的指定窗口编辑指定的组件。 |
| EditComponent(ITypeDescriptorContext, Object, IWin32Window) |
创建一个编辑器窗口,允许用户编辑指定的组件。 |
EditComponent(ITypeDescriptorContext, Object)
创建一个编辑器窗口,该窗口允许用户使用指定的上下文信息编辑指定的组件。
public:
override bool EditComponent(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ component);
public override bool EditComponent(System.ComponentModel.ITypeDescriptorContext context, object component);
public override bool EditComponent(System.ComponentModel.ITypeDescriptorContext? context, object component);
override this.EditComponent : System.ComponentModel.ITypeDescriptorContext * obj -> bool
Public Overrides Function EditComponent (context As ITypeDescriptorContext, component As Object) As Boolean
参数
- context
- ITypeDescriptorContext
ITypeDescriptorContext可用于获取其他上下文信息。
- component
- Object
要编辑的组件。
返回
true 如果在编辑过程中更改了组件,则为否则,为 false.
适用于
EditComponent(Object, IWin32Window)
创建一个编辑器窗口,该窗口允许用户使用拥有组件的指定窗口编辑指定的组件。
public:
bool EditComponent(System::Object ^ component, System::Windows::Forms::IWin32Window ^ owner);
public bool EditComponent(object component, System.Windows.Forms.IWin32Window owner);
public bool EditComponent(object component, System.Windows.Forms.IWin32Window? owner);
override this.EditComponent : obj * System.Windows.Forms.IWin32Window -> bool
Public Function EditComponent (component As Object, owner As IWin32Window) As Boolean
参数
- component
- Object
要编辑的组件。
- owner
- IWin32Window
组件所属的组件 IWin32Window 。
返回
true 如果在编辑过程中更改了组件,则为否则,为 false.
适用于
EditComponent(ITypeDescriptorContext, Object, IWin32Window)
创建一个编辑器窗口,允许用户编辑指定的组件。
public:
virtual bool EditComponent(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ component, System::Windows::Forms::IWin32Window ^ owner);
public virtual bool EditComponent(System.ComponentModel.ITypeDescriptorContext context, object component, System.Windows.Forms.IWin32Window owner);
public virtual bool EditComponent(System.ComponentModel.ITypeDescriptorContext? context, object component, System.Windows.Forms.IWin32Window? owner);
override this.EditComponent : System.ComponentModel.ITypeDescriptorContext * obj * System.Windows.Forms.IWin32Window -> bool
Public Overridable Function EditComponent (context As ITypeDescriptorContext, component As Object, owner As IWin32Window) As Boolean
参数
- context
- ITypeDescriptorContext
ITypeDescriptorContext可用于获取其他上下文信息。
- component
- Object
要编辑的组件。
- owner
- IWin32Window
组件所属的组件 IWin32Window 。
返回
true 如果在编辑过程中更改了组件,则为否则,为 false.