WindowsFormsComponentEditor.GetInitialComponentEditorPageIndex Méthode

Définition

Obtient l'index de la première page de l'éditeur de composant à afficher dans l'éditeur de composant.

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

Int32

L'index de la page d'éditeur de composant qui sera affichée initialement par l'éditeur de composant.

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:
   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

S’applique à