次の方法で共有


IUIService.ShowComponentEditor メソッド

コンポーネントの ComponentEditorForm を表示しようとします。

Function ShowComponentEditor( _
   ByVal component As Object, _   ByVal parent As IWin32Window _) As Boolean
[C#]
bool ShowComponentEditor(
   objectcomponent,IWin32Windowparent);
[C++]
bool ShowComponentEditor(
   Object* component,IWin32Window* parent);
[JScript]
function ShowComponentEditor(
   component : Object,parent : IWin32Window) : Boolean;

パラメータ

戻り値

表示の試みが成功した場合は true 。それ以外の場合は false

例外

例外の種類 条件
ArgumentException コンポーネントがコンポーネント エディタをサポートしていません。

解説

ComponentEditorForm は、COM のプロパティ ページに似ています。

コンポーネントがコンポーネント エディタをサポートしていない場合は ArgumentException がスローされます。これを回避するには、まず CanShowComponentEditor を呼び出すようにします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

IUIService インターフェイス | IUIService メンバ | System.Windows.Forms.Design 名前空間 | CanShowComponentEditor