WindowsFormsComponentEditor::GetInitialComponentEditorPageIndex Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the index of the initial component editor page for the component editor to display.

Namespace:   System.Windows.Forms.Design
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

virtual int GetInitialComponentEditorPageIndex()

Return Value

Type: System::Int32

The index of the component editor page that the component editor will initially display.

The following code example demonstrates an example implementation of a GetInitialComponentEditorPageIndex method override.

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

.NET Framework
Available since 1.1
Return to top