# SortingInstruction.Culture Property

> Gets or sets the format provider for numerical value comparison. The default value for this property is the invariant culture.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 31.0
- **Namespace:** `TXTextControl.DocumentServer.DataShaping`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DocumentServer.DataShaping > SortingInstruction.Culture Property
- **429 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/culture-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/culture-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/culture-property/llms-full.txt

---

### Description

Gets or sets the format provider for numerical value comparison. The default value for this property is the invariant culture.

### Syntax

```csharp
public CultureInfo Culture { get; set; }
```

```vbnet
Public Property Culture As CultureInfo
```

### Examples

The following example uses `SortingInstruction.Culture` to configure culture as part of the sorting instruction workflow. The configured value is checked before the workflow continues.

```csharp
sortingInstruction.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (sortingInstruction.Culture != null)
{
    Console.WriteLine("Sorting Instruction: Culture is available.");
}
```

```vbnet
sortingInstruction.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If sortingInstruction.Culture IsNot Nothing Then
    Console.WriteLine("Sorting Instruction: Culture is available.")
End If
```

---

## Nearby

- **Previous:** [SortingInstruction Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/constructor/llms-full.txt)
- **Next:** [SortingInstruction.OrderBy Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/orderby-property/llms-full.txt)
