# BarcodeCollection Object

> Contains all barcodes in a document represented through objects of the type BarcodeFrame.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > BarcodeCollection Object
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/#syntax)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/#examples)
- [Members](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/#members)

---

## In This Section

- [Javascript: BarcodeCollection.addAnchored Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/addanchored-method/llms.txt): Creates and inserts a new barcode which is anchored to the specified text position. It has the specified horizontal alignment and a textflow which is given through the insertionMode parameter. Anchored barcodes are moved with the text.
- [Javascript: BarcodeCollection.addAnchoredAtLocation Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/addanchoredatlocation-method/llms.txt): 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.
- [Javascript: BarcodeCollection.addAtFixedPositionInDocument Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/addatfixedpositionindocument-method/llms.txt): Creates and inserts a new barcode which has a fixed geometrical position in the document. This position is specified through a location relative to the top left corner of the complete document. All gaps between the pages must be included.
- [Javascript: BarcodeCollection.addAtFixedPositionOnPage Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/addatfixedpositiononpage-method/llms.txt): Inserts a new image which has a fixed geometrical position in the document. This position is specified through a page number and a location on this page.
- [Javascript: BarcodeCollection.addInline Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/addinline-method/llms.txt): Creates and inserts a new barcode inline, which means that it is treated in the text like a single character. The barcode is inserted at the specified text input position.
- [Javascript: BarcodeCollection.addWithMouse Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/addwithmouse-method/llms.txt): Inserts a barcode with the built-in mouse interface. The barcode's size is determined through the end-user. A cross cursor indicates where the barcode can be inserted. Changing the document aborts the insertion process.
- [Javascript: BarcodeCollection.getItem Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/getitem-method/llms.txt): Gets the barcode selected by the user or the barcode with the specified identifier.
- [Javascript: BarcodeCollection.getItemByName Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/getitembyname-method/llms.txt): Gets the barcode with the specified name.
- [Javascript: BarcodeCollection.remove Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/remove-method/llms.txt): Removes a barcode.

---

## Nearby

- **Previous:** [BarcodeCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecallback/llms.txt)
- **Next:** [Javascript: BarcodeCollection.addAnchored Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodecollection/addanchored-method/llms.txt)
