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
itemContentControlThe item to move.
newIndexintThe zero-based destination index among the section's items.
Exceptions
- ArgumentNullException
itemis null.- ArgumentOutOfRangeException
newIndexis outside the item range.- ContentControlEditException
The control is not a repeating section, or the item does not belong to it.