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。