SetPosition(IDataObject, IDataObject, PositioningMode):Void

Re-sorts a data object in the collection.

This method sorts a data object in front of or after another data object in the collection.

Both data objects must be part of the collection. If this is not the case, a ChildNotExistsException is triggered.

Unlike SetIndex, the data object is not placed in an indicated position, but relatively to the indicated data object

Return type: System.Void

Parameter

objectToPosition

Type: Onion.Client.IDataObject

This parameter is the data object to be re-sorted.

reference

Type: Onion.Client.IDataObject

This parameter is the data object to be used as a reference position for the re-sorting.

mode

Type: PositioningMode

This parameter indicates whether the date object objectToPosition is to be positioned before or after the data object reference.