Click or drag to resize

IContentItemVersionAddElementAfter Method


Adds one or more elements to the Elements collection after the specified anchor element.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
void AddElementAfter(
	IElement anchor,
	params IElement[] element
)

Parameters

anchor
Type: Ingeniux.CMSIElement
The anchor element after which the element(s) are inserted
element
Type: Ingeniux.CMSIElement
Elements to be added to the collection
Exceptions
ExceptionCondition
ArgumentExceptionWhen any element to add has the same unique ID as an existing element.
Remarks

The elements added to the collection become direct children of the version.

The new child elements are added the elements collection, behind the the anchor element.

Any null items in the collection are ignored.

If any element to add has the same unique ID as an existing element, an error is thrown.

See Also