WindowsFormsComponentEditor.GetInitialComponentEditorPageIndex Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’index de la page de l’éditeur de composant initial pour que l’éditeur de composant s’affiche.
protected:
virtual int GetInitialComponentEditorPageIndex();
protected virtual int GetInitialComponentEditorPageIndex();
abstract member GetInitialComponentEditorPageIndex : unit -> int
override this.GetInitialComponentEditorPageIndex : unit -> int
Protected Overridable Function GetInitialComponentEditorPageIndex () As Integer
Retours
Index de la page de l’éditeur de composant que l’éditeur de composant affiche initialement.
Exemples
L’exemple de code suivant illustre un exemple d’implémentation d’un GetInitialComponentEditorPageIndex remplacement de méthode.
// This method override returns the index of the page to display when the
// component editor is first displayed.
protected override int GetInitialComponentEditorPageIndex() => 1;