ComponentEditor::EditComponent Method (ITypeDescriptorContext^, Object^)

 

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

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
virtual bool EditComponent(
	ITypeDescriptorContext^ context,
	Object^ component
) abstract

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

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

component
Type: System::Object^

The component to be edited.

Return Value

Type: System::Boolean

true if the component was modified; otherwise, false.

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.

.NET Framework
Available since 1.1
Return to top
Show: