insertDocument()

Description

Inserts document into DcsBuffer at the index.

Syntax

func insertImage (image:DcsImage, index:Int)

Parameters

image:DcsDocument The document data to be inserted.
index:Int The index to insert the image.

Return value

Int

Remarks

If index=0, the document object will be added in the head of DcsBuffer.
If index=count, the document object will be added in the end of DcsBuffer.

Exceptions

Circumstance Exception thrown
Index is not a positive value smaller than count. DcsValueOutOfRangeException
Document is not DcsDocument. DcsTypeNotValidException
Document is nil. DcsValueNotValidException