# TextFrameInsertFixed Method

> Inserts a text frame at a fixed position on a page given in twips: page number, X and Y position, width, height, text flow and distances to the text.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TextFrameInsertFixed Method
- **746 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsertfixed-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsertfixed-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsertfixed-method/llms-full.txt

---

This method inserts a new text frame at a fixed geometrical position. The text flows around the text frame.

Introduced: 12.0.

### Syntax

```vbscript
TXTextControl.TextFrameInsertFixed PageNo, PosX, PosY, Width, Height, TextFlow, DistanceL, DistanceT, DistanceR, DistanceB
```

### Parameters

| Parameter | Description |
|---|---|
| PageNo | Specifies the number of the page where the text frame is inserted, beginning with number 1. If the [ViewMode](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/viewmode-property/llms-full.txt) property has not been set to **Page View**, this parameter must be set to zero. In this case, the PosY parameter specifies the position relative to the top of the control. |
| PosX | Specifies the text frame's horizontal position in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips) relative to the left border of the page. |
| PosY | Specifies the text frame's vertical position in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips) relative to the top border of the page or control. |
| Width | Specifies the width of the text frame in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips). If this parameter is set to zero, a built-in mouse interface is started which enables the end-user to define the size of the text frame through a rectangle, drawn with the mouse. |
| Height | Specifies the height of the text frame in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips). If this parameter is set to zero, a built-in mouse interface is started which enables the end-user to define the size of the text frame through a rectangle, drawn with the mouse. |
| TextFlow | Specifies how text flows around the text frame. It can be one of the following values: |
| DistanceL, DistanceT, DistanceR, DistanceB | Specifies distances, in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips), between the text frame and the document's text. |

#### TextFlow

| Value | Description |
|---|---|
| 2 | The text stops at the top and continues at the bottom of the text frame. |
| 3 | The text flows around the text frame. Empty areas at the left and right side are filled. |

### Return Value

The method returns the text frame's identifier, if a new text frame could be inserted. Otherwise, it returns zero. The text frame's identifier can also be obtained with the [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property.

### Data Types

| Name | Data type |
|---|---|
| PageNo | Long |
| PosX | Long |
| PosY | Long |
| Width | Integer |
| Height | Integer |
| TextFlow | Integer |
| DistanceL | Integer |
| DistanceT | Integer |
| DistanceR | Integer |
| DistanceB | Integer |
| Return value | Integer |

### See Also

- [TextFrameInsertAsChar Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsertaschar-method/llms-full.txt)
- [TextFrameInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsert-method/llms-full.txt)
- [Text frame and object attribute properties](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)
- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [TextFrameInsertAsChar Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsertaschar-method/llms-full.txt)
- **Next:** [TextFrameInternalMargin Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinternalmargin-property/llms-full.txt)
