# Javascript: InputFormat.getTopFrameLine Method

> Gets a value specifying whether there is a frame line at the top of the text.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: InputFormat.getTopFrameLine Method
- **371 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/gettopframeline-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/gettopframeline-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/gettopframeline-method/llms-full.txt

---

### Description

Gets a value specifying whether there is a frame line at the top of the text.

### Syntax

```javascript
<void> InputFormat.getTopFrameLine(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives whether there is a frame line at the top of the text as parameter. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `InputFormat.getTopFrameLine` in a practical document-editing workflow. It gets a value specifying whether there is a frame line at the top of the text.

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

TXTextControl.inputFormat.getTopFrameLine(
    function(result) {
        if (result) {
            console.log("get top frame line is available.");
        } else {
            console.warn("get top frame line is not available in the current document state.");
        }
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: InputFormat.getTopDistance Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/gettopdistance-method/llms-full.txt)
- **Next:** [Javascript: InputFormat.getUnderline Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getunderline-method/llms-full.txt)
