IUIService.ShowComponentEditor(Object, IWin32Window) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈