次の方法で共有


WindowsFormsComponentEditor.GetInitialComponentEditorPageIndex メソッド

表示するコンポーネント エディタの初期コンポーネント エディタ ページのインデックスを取得します。

Protected Overridable Function GetInitialComponentEditorPageIndex() _
   _
   As Integer
[C#]
protected virtual int GetInitialComponentEditorPageIndex();
[C++]
protected: virtual int GetInitialComponentEditorPageIndex();
[JScript]
protected function GetInitialComponentEditorPageIndex() : int;

戻り値

コンポーネント エディタが最初に表示するコンポーネント エディタ ページのインデックス。

使用例

[Visual Basic, C#, C++] GetInitialComponentEditorPageIndex メソッド オーバーライドを実装するコード例を次に示します。

 
' This method override returns the index of the page to display when the 
' component editor is first displayed.
Protected Overrides Function GetInitialComponentEditorPageIndex() As Integer
    Return 1
End Function

[C#] 
// This method override returns the index of the page to display when the 
// component editor is first displayed.
protected override int GetInitialComponentEditorPageIndex()
{ 
    return 1; 
}

[C++] 
// This method override returns the index of the page to display when the 
// component editor is first displayed.
protected:
int GetInitialComponentEditorPageIndex()
{ 
   return 1; 
}

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

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

参照

WindowsFormsComponentEditor クラス | WindowsFormsComponentEditor メンバ | System.Windows.Forms.Design 名前空間