DicomObjects Reference
DicomObjects Reference / DicomImages Collection / Move Method

A reference to the image or dataset to be moved, either:
a) An integer referencing the object by its current position in the collection, starting at 1.

or

b) A String referencing the Instance UID of the Image.

The new index for the object within the collection
In This Topic
    Move Method
    In This Topic
    Description
    Moves a DicomImage within a DicomImages Collection
    Syntax
    Visual Basic
    Public Sub Move( _
       ByVal Index As Variant, _
       ByVal Destination As Integer _
    ) 
    Parameters
    Index

    A reference to the image or dataset to be moved, either:
    a) An integer referencing the object by its current position in the collection, starting at 1.

    or

    b) A String referencing the Instance UID of the Image.

    Destination
    The new index for the object within the collection
    Remarks
    By using Move, objects may be re-ordered within the collection.  The object referred to by the index is placed at the position given by "destination", other objects being kept in sequence but moved as necessary to accommodate the moved item. 
    The index is a variant as images may be referred to either by numerical sequence (as used for CurrentIndex), but also by their unique instance UID.  An exception is generated if either a numerical argument is out of bounds, or if reference is made to a non-existent instance UID.
    See Also