Editar

Partilhar via


TableRowGroupCollection.Insert(Int32, TableRowGroup) Method

Definition

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

public:
 virtual void Insert(int index, System::Windows::Documents::TableRowGroup ^ item);
public void Insert (int index, System.Windows.Documents.TableRowGroup item);
abstract member Insert : int * System.Windows.Documents.TableRowGroup -> unit
override this.Insert : int * System.Windows.Documents.TableRowGroup -> unit
Public Sub Insert (index As Integer, item As TableRowGroup)

Parameters

index
Int32

A zero-based index that specifies the position in the collection at which to insert item.

item
TableRowGroup

An item to insert into the collection.

Implements

Exceptions

Raised when index is less than 0.

Raised when item is null.

Remarks

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.

Applies to