IUIService.ShowComponentEditor(Object, IWin32Window) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试显示 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 。