Version

Insert(Int32,String) Method

Inserts a new RibbonTab with the specified key in the collection at the specified index.
Syntax
'Declaration
 
Public Overloads Function Insert( _
   ByVal index As Integer, _
   ByVal key As String _
) As RibbonTab
public RibbonTab Insert( 
   int index,
   string key
)

Parameters

index
Index at which the group should be inserted
key
The key of the tab to create

Return Value

The newly created RibbonTab which has the key specified.
Exceptions
ExceptionDescription
System.ArgumentExceptionkey is null or empty.
System.ArgumentExceptionAnother tab exists in the collection with a key of key.
System.ArgumentOutOfRangeExceptionindex is less than 0 or greater than the Count.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also