# TextFrameSelect Method

> Selects a text frame by identifier or the main text (-1) for the following property and method calls, or returns to automatic selection with zero.

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

---

This method determines whether a certain Text Control property or method manipulates a text frame or the main text. This method selects a text frame for programming. It does not set the input focus to a text frame and does not show the selection frame with the resize handles.

Introduced: 12.0.

### Syntax

```vbscript
TXTextControl.TextFrameSelect TextFrameId
```

### Parameters

| Parameter | Description |
|---|---|
| TextFrameId | Is the identifier of the text frame to select. It must be an identifier returned through the [TextFrameInsert](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsert-method/llms-full.txt), [TextFrameInsertAsChar](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsertaschar-method/llms-full.txt) or [TextFrameInsertFixed](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeinsertfixed-method/llms-full.txt) method. If this parameter is zero, which is the default mode, a Text Control performs automatic selection, which means that a certain property or method manipulates the text part with the current input position. If this parameter is -1, the method selects the main text, which means that a property or method manipulates the main text, independent of which text part has the current input focus. |

### Return Value

The method returns True, if the selection could be performed, otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| TextFrameId | Integer |
| Return value | Boolean |

### Remarks

The TX Text Control button bar, ruler and status bar need the default automatic mode for correct working. Therefore, when a selection is no longer needed, it should be reset to the default mode.

### See Also

- [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:** [TextFrameMarkerLines Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframemarkerlines-property/llms-full.txt)
- **Next:** [TrackedChangeChanged Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/trackedchangechanged-event/llms-full.txt)
