# BarcodeFrame Object

> A BarcodeFrame object represents a barcode and its layout in a Text Control document. A barcode can be positioned in the document like an image or a text frame, either geometrically or as a single character. Geometrically its position can either be relative to a paragraph to which it is anchored or relative to the complete document. Additionally the BarcodeFrame object handles the positioning of the barcode in the document.

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

---

### Description

A BarcodeFrame object represents a barcode and its layout in a Text Control document. A barcode can be positioned in the document like an image or a text frame, either geometrically or as a single character. Geometrically its position can either be relative to a paragraph to which it is anchored or relative to the complete document. Additionally the BarcodeFrame object handles the positioning of the barcode in the document.

### Syntax

```javascript
BarcodeFrame
```

### Examples

The following example demonstrates `BarcodeFrame` in a practical document-editing workflow. A BarcodeFrame object represents a barcode and its layout in a Text Control document. A barcode can be positioned in the document like an image or a text frame, either geometrically or as a single character. Geometrically its position can either be relative to a paragraph to which it is anchored or relative to the complete document. Additionally the BarcodeFrame object handles the positioning of the barcode in the document.

```javascript
function inspectBarcodeFrame(barcodeFrame) {
    console.log("BarcodeFrame object:", barcodeFrame);
}
```

---

## In This Section

- [Javascript: BarcodeFrame.barcode Property](https://docs.textcontrol.com/ds-server/reference/javascript/barcodeframe/barcode-property/llms-full.txt): The barcode control associated with the barcode frame.
- [Javascript: BarcodeFrame.refresh Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcodeframe/refresh-method/llms-full.txt): Refreshes the barcode.

---

## Nearby

- **Previous:** [Javascript: BarcodeEventArgs.barcodeFrame Property](https://docs.textcontrol.com/ds-server/reference/javascript/barcodeeventargs/barcodeframe-property/llms-full.txt)
- **Next:** [Javascript: BarcodeFrame.barcode Property](https://docs.textcontrol.com/ds-server/reference/javascript/barcodeframe/barcode-property/llms-full.txt)
