# VersionInfo.Major Property

> Gets the major version number.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > VersionInfo.Major Property
- **380 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/versioninfo/major-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/versioninfo/major-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/versioninfo/major-property/llms-full.txt

---

### Description

Gets the major version number.

### Syntax

```csharp
public int Major { get; }
```

```vbnet
Public ReadOnly Property Major As Integer
```

### Examples

The following example verifies that the installed TX Text Control runtime has the required major version.

```csharp
VersionInfo versionInfo = textControl.GetVersionInfo();
if (versionInfo.Major < 34)
{
    throw new NotSupportedException("TX Text Control 34 or later is required.");
}
```

```vbnet
Dim versionInfo As VersionInfo = textControl.GetVersionInfo()
If versionInfo.Major < 34 Then
    Throw New NotSupportedException("TX Text Control 34 or later is required.")
End If
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [VersionInfo Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/versioninfo/llms-full.txt)
- **Next:** [VersionInfo.Minor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/versioninfo/minor-property/llms-full.txt)
