Muokkaa

Jaa


ComponentEditor.EditComponent Method

Definition

Edits the component and determines whether the given component was modified.

Overloads

EditComponent(Object)

Edits the component and returns a value indicating whether the component was modified.

EditComponent(ITypeDescriptorContext, Object)

Edits the component and returns a value indicating whether the component was modified based upon a given context.

EditComponent(Object)

Source:
BaseComponentEditor.cs
Source:
BaseComponentEditor.cs
Source:
BaseComponentEditor.cs

Edits the component and returns a value indicating whether the component was modified.

public:
 bool EditComponent(System::Object ^ component);
public bool EditComponent (object component);
member this.EditComponent : obj -> bool
Public Function EditComponent (component As Object) As Boolean

Parameters

component
Object

The component to be edited.

Returns

true if the component was modified; otherwise, false.

Remarks

This method opens an advanced user interface that you can use to edit the component. The default implementation opens a dialog box with a collection of component editor control objects and a user interface.

Applies to

EditComponent(ITypeDescriptorContext, Object)

Source:
BaseComponentEditor.cs
Source:
BaseComponentEditor.cs
Source:
BaseComponentEditor.cs

Edits the component and returns a value indicating whether the component was modified based upon a given context.

public:
 abstract bool EditComponent(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ component);
public abstract bool EditComponent (System.ComponentModel.ITypeDescriptorContext context, object component);
public abstract bool EditComponent (System.ComponentModel.ITypeDescriptorContext? context, object component);
abstract member EditComponent : System.ComponentModel.ITypeDescriptorContext * obj -> bool
Public MustOverride Function EditComponent (context As ITypeDescriptorContext, component As Object) As Boolean

Parameters

context
ITypeDescriptorContext

An optional context object that can be used to obtain further information about the edit.

component
Object

The component to be edited.

Returns

true if the component was modified; otherwise, false.

Remarks

You can override this method to provide a custom editing user interface for a component. From within this method you can display a dialog box or other type of user interface.

Applies to