共用方式為


WindowsFormsComponentEditor.GetInitialComponentEditorPageIndex 方法

定義

取得元件編輯器要顯示的初始元件編輯器頁面的索引。

protected:
 virtual int GetInitialComponentEditorPageIndex();
protected virtual int GetInitialComponentEditorPageIndex ();
abstract member GetInitialComponentEditorPageIndex : unit -> int
override this.GetInitialComponentEditorPageIndex : unit -> int
Protected Overridable Function GetInitialComponentEditorPageIndex () As Integer

傳回

Int32

元件編輯器一開始要顯示的元件編輯器頁面索引。

範例

下列程式碼範例示範方法覆寫的範例實作 GetInitialComponentEditorPageIndex

   // This method override returns the index of the page to display when the 
   // component editor is first displayed.
protected:
   virtual int GetInitialComponentEditorPageIndex() override
   {
      return 1;
   }
// This method override returns the index of the page to display when the 
// component editor is first displayed.
protected override int GetInitialComponentEditorPageIndex()
{ 
    return 1; 
}
' 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

適用於