Inserts a new barcode which is anchored to the specified text position. It has the specified location relative to the paragraph it is anchored to and a textflow which is given through the insertionMode parameter. Anchored barcode are moved with the text.

<void> BarcodeCollection.addAnchoredAtLocation(<RequestBarcodeFrameCallback> callback, [<ErrorCallback> errorCallback], <BarcodeType> barcodeType, <string> text, <Point> location, <number> textPosition, <FrameInsertionMode> insertionMode)


Parameter Description
callback The newly created barcode object is returned via this callback function.
errorCallback Optional. Is called when the operation failed with an error.
barcodeType The barcode type.
text The text the barcode should encrypt.
location Specifies the location, in twips, at which the barcode is to be inserted. This is a location relative to the top left corner either of a page or of a paragraph.
textPosition Specifies the text position at which the barcode is to be inserted. If -1 is specified, the barcode is inserted at the current input position.
insertionMode Specifies how the text flow is handled.