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

傳回

元件編輯器最初會顯示的元件編輯器頁面索引。

範例

以下程式碼範例展示了方法覆寫的範例實作 GetInitialComponentEditorPageIndex

// This method override returns the index of the page to display when the
// component editor is first displayed.
protected override int GetInitialComponentEditorPageIndex() => 1;

適用於