Rediger

Del via


BaseDataListComponentEditor.EditComponent Method

Definition

Edits the specified component by using the specified context descriptor and parent window.

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);
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

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext object that can be used to gain additional context information.

obj
Object

An Object implementing the IComponent, which represents the component to edit.

parent
IWin32Window

The IWin32Window that represents the parent window.

Returns

true the component was successfully edited; otherwise, false.

Remarks

The EditComponent method gets a Type array of page control types by using the GetComponentEditorPages method. It creates a ComponentEditorForm object, and then calls its ShowForm method to display the component editor.

Notes to Inheritors

The GetComponentEditorPages() method must have been overridden to return a Type array of page control types. This array must exist in order for the EditComponent method to succeed.

Applies to

See also