# TextControl.Culture Property

> Gets or sets the control's culture. Affects date and time string formats, for example.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Web`
- **Assembly:** `TXTextControl.Web.dll`, which the TX Text Control .NET Server setup installs, for .NET Framework; in no NuGet package
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextControl.Culture Property
- **453 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/culture-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/culture-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/culture-property/llms-full.txt

---

### Description

Gets or sets the control's culture. Affects date and time string formats, for example.

### Syntax

```csharp
public System.Globalization.CultureInfo Culture { get; set; }
```

```vbnet
Public Property Culture() As System.Globalization.CultureInfo
```

### Examples

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

```csharp
textControlSettings.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (textControlSettings.Culture != null)
{
    Console.WriteLine("Culture is available for Text Control Settings.");
}
```

```vbnet
textControlSettings.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If textControlSettings.Culture IsNot Nothing Then
    Console.WriteLine("Culture is available for Text Control Settings.")
End If
```

---

## Nearby

- **Previous:** [TextControl.ControlChars Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/controlchars-property/llms-full.txt)
- **Next:** [TextControl.Dock Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/dock-property/llms-full.txt)
