Udostępnij przez


WindowsFormsComponentEditor.GetInitialComponentEditorPageIndex Metoda

Definicja

Pobiera indeks początkowej strony edytora składników, aby edytor składników był wyświetlany.

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

Zwraca

Indeks strony edytora składników, który początkowo będzie wyświetlany w edytorze składników.

Przykłady

W poniższym przykładzie kodu pokazano przykładową implementację GetInitialComponentEditorPageIndex zastąpienia metody.

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

Dotyczy