IUIService.ShowComponentEditor(Object, IWin32Window) Method

Definition

Attempts to display a ComponentEditorForm for a component.

C#
public bool ShowComponentEditor(object component, System.Windows.Forms.IWin32Window parent);

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

Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also