# Javascript: BarcodeCollection.addAnchored Method

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: BarcodeCollection.addAnchored Method
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/addanchored-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/addanchored-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/addanchored-method/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/addanchored-method/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/addanchored-method/#syntax)
- [Parameters](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/addanchored-method/#parameters)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/addanchored-method/#examples)

---

## Nearby

- **Previous:** [BarcodeCollection Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/llms.txt)
- **Next:** [Javascript: BarcodeCollection.addAnchoredAtLocation Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/addanchoredatlocation-method/llms.txt)
