# Javascript: TXTextControl.FrameInsertionMode Enumeration

> Determines how the frame of an image, text frame, chart, barcode or drawing can be inserted in the text.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.FrameInsertionMode Enumeration
- **415 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/frameinsertionmode-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/frameinsertionmode-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/frameinsertionmode-enumeration/llms-full.txt

---

### Description

Determines how the frame of an image, text frame, chart, barcode or drawing can be inserted in the text.

### Members

| Member | Description |
|---|---|
| AboveTheText | The frame is inserted at a certain geometrical location above the text. This means that the frame overwrites the text. |
| AsCharacter | The frame is inserted in the text as a single character. |
| BelowTheText | The frame is inserted at a certain geometrical location below the text. This means that the text overwrites the frame. |
| DisplaceCompleteLines | The frame is inserted at a certain geometrical location. |
| DisplaceText | The frame is inserted at a certain geometrical location. |

### Examples

The following example uses `TXTextControl.FrameInsertionMode.AsCharacter` (the frame is inserted in the text as a single character.) in a document-editing workflow.

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

function applyFrameInsertionMode(frameBase) {
    frameBase.setInsertionMode(
        TXTextControl.FrameInsertionMode.AsCharacter,
        function() {
            console.log("set insertion mode completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.Frame Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/frame-enumeration/llms-full.txt)
- **Next:** [Javascript: TXTextControl.FrameStyle Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/framestyle-enumeration/llms-full.txt)
