This documentation is archived and is not being maintained.

WindowsFormsComponentEditor.GetInitialComponentEditorPageIndex Method

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

[Visual Basic]
Protected Overridable Function GetInitialComponentEditorPageIndex() _
   _
   As Integer
[C#]
protected virtual int GetInitialComponentEditorPageIndex();
[C++]
protected: virtual int GetInitialComponentEditorPageIndex();
[JScript]
protected function GetInitialComponentEditorPageIndex() : int;

Return Value

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

Example

[Visual Basic, C#, C++] The following code example demonstrates an example implementation of a GetInitialComponentEditorPageIndex method override.

[Visual Basic] 
' 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

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

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

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

WindowsFormsComponentEditor Class | WindowsFormsComponentEditor Members | System.Windows.Forms.Design Namespace

Show: