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 VersionInfo
Public Class VersionInfo

Introduced: X11.

Examples

The following code snippet displays how to use the TXTextControl.VersionInfo class to get the version info of the current TXTextControl.

TXTextControl.VersionInfo currentVersionInfo = textControl1.GetVersionInfo(); // the TXTextControl.VersionInfo class is used right here

int currentVersionInfo_Major = currentVersionInfo.Major;
int currentVersionInfo_Minor = currentVersionInfo.Minor;
TXTextControl.VersionInfo.ProductLevel currentVersionInfo_ProductLevel = currentVersionInfo.Level;
int currentVersionInfo_ServicePack = currentVersionInfo.ServicePack;

System.Windows.Forms.MessageBox.Show( "The current TX TextControl Major Version is: " + currentVersionInfo_Major.ToString() + "\r\n"
                                    + "The current TX TextControl Minor Version is: " + currentVersionInfo_Minor.ToString() + "\r\n"
                                    + "The current TX TextControl Product Level is: " + currentVersionInfo_ProductLevel.ToString() + "\r\n"
                                    + "The current TX TextControl Service Pack is: " + currentVersionInfo_ServicePack.ToString());
Dim currentVersionInfo As TXTextControl.VersionInfo = textControl1.GetVersionInfo() ' the TXTextControl.VersionInfo class is used right here
Dim currentVersionInfo_Major As Integer = currentVersionInfo.Major
Dim currentVersionInfo_Minor As Integer = currentVersionInfo.Minor
Dim currentVersionInfo_ProductLevel As TXTextControl.VersionInfo.ProductLevel = currentVersionInfo.Level
Dim currentVersionInfo_ServicePack As Integer = currentVersionInfo.ServicePack
System.Windows.Forms.MessageBox.Show("The current TX TextControl Major Version is: " & currentVersionInfo_Major.ToString() & vbCrLf & "The current TX TextControl Minor Version is: " & currentVersionInfo_Minor.ToString() & vbCrLf & "The current TX TextControl Product Level is: " & currentVersionInfo_ProductLevel.ToString() & vbCrLf & "The current TX TextControl Service Pack is: " & currentVersionInfo_ServicePack.ToString())

Properties

Property Description
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.