TableRowGroupCollection.Insert Method (Int32, TableRowGroup)

 
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.

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.

Exception Condition
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
Available since 3.0
Return to top
Show: