# TextControlSettings.Height Property

> Gets or sets the height of the control in the browser in percent, pixels or any other valid CSS length unit.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Web.MVC`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControlSettings.Height Property
- **414 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/height-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/height-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/height-property/llms-full.txt

---

### Description

Gets or sets the height of the control in the browser in percent, pixels or any other valid CSS length unit.

### Syntax

```csharp
public string Height { get; set; }
```

```vbnet
Public Property Height As String
```

### Examples

In the current ASP.NET Core integration, `Height` is configured through `TextControlSettings`. The following example sets it while creating the editor configuration.

```csharp
textControlSettings.Height = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControlSettings.Height))
{
    Console.WriteLine($"Height: {textControlSettings.Height}");
}
```

```vbnet
textControlSettings.Height = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControlSettings.Height) Then
    Console.WriteLine($"Height: {textControlSettings.Height}")
End If
```

---

## Nearby

- **Previous:** [TextControlSettings.FormattingPrinter Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/formattingprinter-property/llms-full.txt)
- **Next:** [TextControlSettings.ImageFileDirectory Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/imagefiledirectory-property/llms-full.txt)
