# VersionInfo.ServicePack Property

> Gets the number of the installed service pack. The original version has the service pack number 0.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > VersionInfo.ServicePack Property
- **329 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/versioninfo/servicepack-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/versioninfo/servicepack-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/versioninfo/servicepack-property/llms-full.txt

---

### Description

Gets the number of the installed service pack. The original version has the service pack number 0.

### Syntax

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

```vbnet
Public ReadOnly Property ServicePack As Integer
```

### Examples

The following example records the installed product version including its service-pack level.

```csharp
VersionInfo versionInfo = textControl.GetVersionInfo();
Console.WriteLine($"TX Text Control {versionInfo.Major}.{versionInfo.Minor} SP{versionInfo.ServicePack}");
```

```vbnet
Dim versionInfo As VersionInfo = textControl.GetVersionInfo()
Console.WriteLine($"TX Text Control {versionInfo.Major}.{versionInfo.Minor} SP{versionInfo.ServicePack}")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [VersionInfo.ProductLevel Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/versioninfo/productlevel-property/llms-full.txt)
- **Next:** [XmlElement Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/xmlelement/llms-full.txt)
