VersionInfo Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
Description
The VersionInfo class provides information about the running TX Text Control version, such as the version number, the installed service pack number and the product level.
Syntax
public class VersionInfoPublic Class VersionInfoExamples
The following example verifies that the installed TX Text Control runtime has the required major version.
VersionInfo versionInfo = textControl.GetVersionInfo();
if (versionInfo.Major < 34)
{
throw new NotSupportedException("TX Text Control 34 or later is required.");
}Dim versionInfo As VersionInfo = textControl.GetVersionInfo()
If versionInfo.Major < 34 Then
Throw New NotSupportedException("TX Text Control 34 or later is required.")
End IfMembers
Properties
| Property | Description |
|---|---|
| Level | Not described in the reference. public VersionInfo.ProductLevel Level { get; } |
| Major | Gets the major version number. |
| Minor | Gets the minor version number. |
| ProductLevel | Gets the installed product level. |
| ServicePack | Gets the number of the installed service pack. The original version has the service pack number 0. |