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

[Integration guide](https://docs.lumencharts.com/charting-library/drawings/) · [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.

## isSelectionEnabled {#isselectionenabled}

```ts
isSelectionEnabled(): boolean;
```

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

## setSelectionEnabled {#setselectionenabled}

```ts
setSelectionEnabled(enable: boolean): void;
```

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

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

## isSavingEnabled {#issavingenabled}

```ts
isSavingEnabled(): boolean;
```

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

## setSavingEnabled {#setsavingenabled}

```ts
setSavingEnabled(enable: boolean): void;
```

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

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

## isShowInObjectsTreeEnabled {#isshowinobjectstreeenabled}

```ts
isShowInObjectsTreeEnabled(): boolean;
```

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

## setShowInObjectsTreeEnabled {#setshowinobjectstreeenabled}

```ts
setShowInObjectsTreeEnabled(enabled: boolean): void;
```

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

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

## isUserEditEnabled {#isusereditenabled}

```ts
isUserEditEnabled(): boolean;
```

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

## setUserEditEnabled {#setusereditenabled}

```ts
setUserEditEnabled(enabled: boolean): void;
```

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

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

## bringToFront {#bringtofront}

```ts
bringToFront(): void;
```

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

## sendToBack {#sendtoback}

```ts
sendToBack(): void;
```

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

## getProperties {#getproperties}

```ts
getProperties(): Record<string, any>;
```

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

## setProperties {#setproperties}

```ts
setProperties(newProperties: object): void;
```

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

| Parameter | Type | Required |
| --- | --- | --- |
| `newProperties` | `object` | Yes |

## getPoints {#getpoints}

```ts
getPoints(): PricedPoint[];
```

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

## setPoints {#setpoints}

```ts
setPoints(points: ShapePoint[]): void;
```

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

| Parameter | Type | Required |
| --- | --- | --- |
| `points` | `ShapePoint[]` | Yes |

## getAnchoredPosition {#getanchoredposition}

```ts
getAnchoredPosition(): PositionPercents | undefined;
```

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

## setAnchoredPosition {#setanchoredposition}

```ts
setAnchoredPosition(positionPercents: PositionPercents): void;
```

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

| Parameter | Type | Required |
| --- | --- | --- |
| `positionPercents` | `PositionPercents` | Yes |

## Related types

- [PricedPoint](https://docs.lumencharts.com/charting-library/api/PricedPoint)
- [ShapePoint](https://docs.lumencharts.com/charting-library/api/ShapePoint)
- [PositionPercents](https://docs.lumencharts.com/charting-library/api/PositionPercents)

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