AxHost.AxComponentEditor.EditComponent 方法

定义

创建允许用户编辑指定组件的编辑器窗口。

public:
 override bool EditComponent(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ obj, System::Windows::Forms::IWin32Window ^ parent);
public override bool EditComponent (System.ComponentModel.ITypeDescriptorContext context, object obj, System.Windows.Forms.IWin32Window parent);
public override bool EditComponent (System.ComponentModel.ITypeDescriptorContext? context, object obj, System.Windows.Forms.IWin32Window? parent);
override this.EditComponent : System.ComponentModel.ITypeDescriptorContext * obj * System.Windows.Forms.IWin32Window -> bool
Public Overrides Function EditComponent (context As ITypeDescriptorContext, obj As Object, parent As IWin32Window) As Boolean

参数

context
ITypeDescriptorContext

可用于获取附加上下文信息的 ITypeDescriptorContext

obj
Object

要编辑的组件。

parent
IWin32Window

组件所属的 IWin32Window

返回

如果在编辑时更改了组件,则为 true;否则为 false

适用于

另请参阅