WindowsFormsComponentEditor::GetInitialComponentEditorPageIndex Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

protected:
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.
protected:
   virtual int GetInitialComponentEditorPageIndex() override
   {
      return 1;
   }

.NET Framework
Available since 1.1
Return to top
Show: