Table of Contents

Method MoveRepeatingItem

Namespace
DocWright.Dom.ContentControls
Assembly
DocWright.Dom.dll

MoveRepeatingItem(ContentControl, int)

Moves a repeating-section item to a new position among its siblings.

public void MoveRepeatingItem(ContentControl item, int newIndex)

Parameters

item ContentControl

The item to move.

newIndex int

The zero-based destination index among the section's items.

Exceptions

ArgumentNullException

item is null.

ArgumentOutOfRangeException

newIndex is outside the item range.

ContentControlEditException

The control is not a repeating section, or the item does not belong to it.