WindowsFormsComponentEditor.EditComponent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個編輯器視窗,讓使用者可以編輯指定的元件。
多載
| 名稱 | Description |
|---|---|
| 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