WindowsFormsComponentEditor.GetInitialComponentEditorPageIndex 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得元件編輯器初始頁面的索引,供元件編輯器顯示。
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;