Редагувати

Поділитися через


IUIService.ShowComponentEditor(Object, IWin32Window) Method

Definition

Attempts to display a ComponentEditorForm for a component.

public:
 bool ShowComponentEditor(System::Object ^ component, System::Windows::Forms::IWin32Window ^ parent);
public bool ShowComponentEditor (object component, System.Windows.Forms.IWin32Window parent);
abstract member ShowComponentEditor : obj * System.Windows.Forms.IWin32Window -> bool
Public Function ShowComponentEditor (component As Object, parent As IWin32Window) As Boolean

Parameters

component
Object

The component for which to display a ComponentEditorForm.

parent
IWin32Window

The IWin32Window to parent any dialog boxes to.

Returns

true if the attempt is successful; otherwise, false.

Exceptions

The component does not support component editors.

Remarks

A ComponentEditorForm is similar to a property page from the Component Object Model (COM).

If the component does not support component editors, an ArgumentException is thrown. To avoid this, be sure to call CanShowComponentEditor first.

Applies to

See also