<!-- Public documentation export; not library implementation source. -->
# IOrderLineAdapter

[Integration guide](https://docs.lumencharts.com/charting-library/drawings#host-trading-overlays) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

## remove {#remove}

```ts
remove(): void;
```

Use the type signature above and the integration guide for the owning capability.

## onModify {#onmodify}

```ts
onModify(callback: () => void): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `callback` | `() => void` | Yes |

## onModify (overload 2) {#onmodify-1}

```ts
onModify<T>(data: T, callback: (data: T) => void): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `data` | `T` | Yes |
| `callback` | `(data: T) => void` | Yes |

## onMove {#onmove}

```ts
onMove(callback: () => void): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `callback` | `() => void` | Yes |

## onMove (overload 2) {#onmove-1}

```ts
onMove<T>(data: T, callback: (data: T) => void): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `data` | `T` | Yes |
| `callback` | `(data: T) => void` | Yes |

## onMoving {#onmoving}

```ts
onMoving(callback: () => void): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `callback` | `() => void` | Yes |

## onMoving (overload 2) {#onmoving-1}

```ts
onMoving<T>(data: T, callback: (data: T) => void): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `data` | `T` | Yes |
| `callback` | `(data: T) => void` | Yes |

## onCancel {#oncancel}

```ts
onCancel(callback: () => void): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `callback` | `() => void` | Yes |

## onCancel (overload 2) {#oncancel-1}

```ts
onCancel<T>(data: T, callback: (data: T) => void): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `data` | `T` | Yes |
| `callback` | `(data: T) => void` | Yes |

## getPrice {#getprice}

```ts
getPrice(): number;
```

Use the type signature above and the integration guide for the owning capability.

## setPrice {#setprice}

```ts
setPrice(value: number): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `number` | Yes |

## getText {#gettext}

```ts
getText(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setText {#settext}

```ts
setText(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getTooltip {#gettooltip}

```ts
getTooltip(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setTooltip {#settooltip}

```ts
setTooltip(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getModifyTooltip {#getmodifytooltip}

```ts
getModifyTooltip(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setModifyTooltip {#setmodifytooltip}

```ts
setModifyTooltip(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getCancelTooltip {#getcanceltooltip}

```ts
getCancelTooltip(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setCancelTooltip {#setcanceltooltip}

```ts
setCancelTooltip(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getQuantity {#getquantity}

```ts
getQuantity(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setQuantity {#setquantity}

```ts
setQuantity(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getEditable {#geteditable}

```ts
getEditable(): boolean;
```

Use the type signature above and the integration guide for the owning capability.

## setEditable {#seteditable}

```ts
setEditable(value: boolean): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `boolean` | Yes |

## getCancellable {#getcancellable}

```ts
getCancellable(): boolean;
```

Use the type signature above and the integration guide for the owning capability.

## setCancellable {#setcancellable}

```ts
setCancellable(value: boolean): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `boolean` | Yes |

## getExtendLeft {#getextendleft}

```ts
getExtendLeft(): boolean;
```

Use the type signature above and the integration guide for the owning capability.

## setExtendLeft {#setextendleft}

```ts
setExtendLeft(value: boolean): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `boolean` | Yes |

## getLineLength {#getlinelength}

```ts
getLineLength(): number;
```

Use the type signature above and the integration guide for the owning capability.

## getLineLengthUnit {#getlinelengthunit}

```ts
getLineLengthUnit(): OrderLineLengthUnit;
```

Use the type signature above and the integration guide for the owning capability.

## setLineLength {#setlinelength}

```ts
setLineLength(value: number, unit?: OrderLineLengthUnit): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `number` | Yes |
| `unit` | `OrderLineLengthUnit` | No |

## getLineStyle {#getlinestyle}

```ts
getLineStyle(): number;
```

Use the type signature above and the integration guide for the owning capability.

## setLineStyle {#setlinestyle}

```ts
setLineStyle(value: number): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `number` | Yes |

## getLineWidth {#getlinewidth}

```ts
getLineWidth(): number;
```

Use the type signature above and the integration guide for the owning capability.

## setLineWidth {#setlinewidth}

```ts
setLineWidth(value: number): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `number` | Yes |

## getBodyFont {#getbodyfont}

```ts
getBodyFont(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setBodyFont {#setbodyfont}

```ts
setBodyFont(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getQuantityFont {#getquantityfont}

```ts
getQuantityFont(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setQuantityFont {#setquantityfont}

```ts
setQuantityFont(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getLineColor {#getlinecolor}

```ts
getLineColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setLineColor {#setlinecolor}

```ts
setLineColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getBodyBorderColor {#getbodybordercolor}

```ts
getBodyBorderColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setBodyBorderColor {#setbodybordercolor}

```ts
setBodyBorderColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getBodyBackgroundColor {#getbodybackgroundcolor}

```ts
getBodyBackgroundColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setBodyBackgroundColor {#setbodybackgroundcolor}

```ts
setBodyBackgroundColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getBodyTextColor {#getbodytextcolor}

```ts
getBodyTextColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setBodyTextColor {#setbodytextcolor}

```ts
setBodyTextColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getQuantityBorderColor {#getquantitybordercolor}

```ts
getQuantityBorderColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setQuantityBorderColor {#setquantitybordercolor}

```ts
setQuantityBorderColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getQuantityBackgroundColor {#getquantitybackgroundcolor}

```ts
getQuantityBackgroundColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setQuantityBackgroundColor {#setquantitybackgroundcolor}

```ts
setQuantityBackgroundColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getQuantityTextColor {#getquantitytextcolor}

```ts
getQuantityTextColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setQuantityTextColor {#setquantitytextcolor}

```ts
setQuantityTextColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getCancelButtonBorderColor {#getcancelbuttonbordercolor}

```ts
getCancelButtonBorderColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setCancelButtonBorderColor {#setcancelbuttonbordercolor}

```ts
setCancelButtonBorderColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getCancelButtonBackgroundColor {#getcancelbuttonbackgroundcolor}

```ts
getCancelButtonBackgroundColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setCancelButtonBackgroundColor {#setcancelbuttonbackgroundcolor}

```ts
setCancelButtonBackgroundColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## getCancelButtonIconColor {#getcancelbuttoniconcolor}

```ts
getCancelButtonIconColor(): string;
```

Use the type signature above and the integration guide for the owning capability.

## setCancelButtonIconColor {#setcancelbuttoniconcolor}

```ts
setCancelButtonIconColor(value: string): this;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `string` | Yes |

## Related types

- [OrderLineLengthUnit](https://docs.lumencharts.com/charting-library/api/OrderLineLengthUnit)

---
Documentation page: https://docs.lumencharts.com/charting-library/api/IOrderLineAdapter
