IUIService.ShowComponentEditor(Object, IWin32Window) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試顯示某個元件的 a 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)中的屬性頁。
若元件不支援元件編輯器,則會拋出 a ArgumentException 。 為避免這種情況,務必先打電話 CanShowComponentEditor 詢問。