IUIService.ShowComponentEditor(Object, IWin32Window) 方法

定义

尝试显示 ComponentEditorForm 组件。

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

参数

component
Object

要为其显示 . 的 ComponentEditorForm组件。

parent
IWin32Window

IWin32Window 父级的任何对话框。

返回

true 如果尝试成功,则为否则,为 false.

例外

该组件不支持组件编辑器。

注解

A ComponentEditorForm 类似于组件对象模型(COM)中的属性页。

如果组件不支持组件编辑器,则会引发一个 ArgumentException 。 若要避免这种情况,请务必先调用 CanShowComponentEditor

适用于

另请参阅