This documentation is archived and is not being maintained.

TableRowGroupCollection.Insert Method

Inserts a specified item in the collection at a specified index position.

Namespace:  System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void Insert(
	int index,
	TableRowGroup item
)

Parameters

index
Type: System.Int32
A zero-based index that specifies the position in the collection at which to insert item.
item
Type: System.Windows.Documents.TableRowGroup
An item to insert into the collection.

Implements

IList<T>.Insert(Int32, T)

ExceptionCondition
ArgumentOutOfRangeException

Raised when index is less than 0.

ArgumentNullException

Raised when item is null.

If Count equals Capacity for this collection, the collection capacity automatically is increased before the new item is inserted. Set index equal to the value of Count, to append a new collection item to the collection.

Indices for existing collection items may be adjusted to accommodate the newly inserted collection item.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: