# IfField.DataSourceCulture Property

> Specifies the culture which is used for the relational comparison of numerical values. The default value for this property is the current thread culture.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 31.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.WPF.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 for WPF > Reference > TXTextControl.DocumentServer.Fields > IfField.DataSourceCulture Property
- **437 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/datasourceculture-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/datasourceculture-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/datasourceculture-property/llms-full.txt

---

### Description

Specifies the culture which is used for the relational comparison of numerical values. The default value for this property is the current thread culture.

### Syntax

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

```vbnet
Public Property DataSourceCulture As CultureInfo
```

### Examples

The following example uses `IfField.DataSourceCulture` to configure data source culture as part of the if field workflow. The configured value is checked before the workflow continues.

```csharp
ifField.DataSourceCulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (ifField.DataSourceCulture != null)
{
    Console.WriteLine("If Field: Data Source Culture is available.");
}
```

```vbnet
ifField.DataSourceCulture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If ifField.DataSourceCulture IsNot Nothing Then
    Console.WriteLine("If Field: Data Source Culture is available.")
End If
```

---

## Nearby

- **Previous:** [IfField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/constructor/llms-full.txt)
- **Next:** [IfField.Expression1 Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/expression1-property/llms-full.txt)
