# Javascript: Barcode.getAngle Method

> Gets the angle of the barcode image inside the control.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: Barcode.getAngle Method
- **316 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getangle-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getangle-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getangle-method/llms-full.txt

---

### Description

Gets the angle of the barcode image inside the control.

### Syntax

```javascript
<void> Barcode.getAngle(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the angle. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `Barcode.getAngle` in a practical document-editing workflow. It gets the angle of the barcode image inside the control.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectAngle(barcode) {
    barcode.getAngle(
        function(result) {
            console.log("get angle result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: Barcode.getAlignment Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getalignment-method/llms-full.txt)
- **Next:** [Javascript: Barcode.getBackColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getbackcolor-method/llms-full.txt)
