WindowsFormsComponentEditor.GetInitialComponentEditorPageIndex 方法

定义

获取要显示的组件编辑器的初始组件编辑器页的索引。

protected:
 virtual int GetInitialComponentEditorPageIndex();
protected virtual int GetInitialComponentEditorPageIndex ();
abstract member GetInitialComponentEditorPageIndex : unit -> int
override this.GetInitialComponentEditorPageIndex : unit -> int
Protected Overridable Function GetInitialComponentEditorPageIndex () As Integer

返回

Int32

组件编辑器最初将显示的组件编辑器页的索引。

示例

下面的代码示例演示了方法重写的示例实现 GetInitialComponentEditorPageIndex

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

适用于