TX Sheet Control

LicenseInfo Class

Class
Namespace
TXTextControl.TXSheetControl.Server
Package
TXTextControl.TXSheetControl.Server from the private NuGet feed or the supplied NuGet folder
Assembly
TXTextControl.TXSheetControl.Api.dll
Install
dotnet add package TXTextControl.TXSheetControl.Server .NET 10 and later.
Also in
TXTextControl.TXSheetControl.Blazor as TXTextControl.TXSheetControl.Api.dll

Detached read-only signed entitlement metadata. Products cannot be mutated to grant authority.

Syntax

public class LicenseInfo

Members

Properties

PropertyDescription
CustomerNameThe company the license is issued to: the organization of the Text Control account's billing address, or the account's ID when it has none.
ExpiresAtFor a trial, the end of its 30-day period as an ISO 8601 UTC string; null for Developer and OEM licenses.
IssuedAtFor a trial, the start of its 30-day period as an ISO 8601 UTC string; null for Developer and OEM licenses.
IsValidWhether the signed trial time window includes the snapshot time; perpetual licenses are always valid.
LicenseIdThe license ID, TRIAL-V2- or LIC-V2- followed by a UUID; every license file of the same serial number has the same ID.
MajorVersionThe licensed major version, read from the product code of the license: SH-0200-XA-S is version 2.0, which covers every 2.x release.
ProductsThe covered components, SheetEditor and ServerSheetControl; every license from the Text Control Account covers both.
TrialSecondsRemainingRemaining seconds rounded up and clamped to zero; null for perpetual licenses.
TypeThe license type: trial, developer or oem. The declared eval is never issued.

Examples

Obtain LicenseInfo from a real document operation. Return the detached result to the calling report, API response or application.

using TXTextControl.TXSheetControl.Server;

async Task<LicenseInfo> ReadReportLicenseInfoAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");
    await sheet.Cell("A1").SetTextAsync("October invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    await sheet.Range("B8:B10").FormatAsync(new { numberFormatCode = "#,##0.00", fontFamily = "Liberation Sans", fontSize = 11 });

    var result = control.LicenseInfo;
    return result;
}

See Also