TX Sheet Control

TabularLoadOptions.MaxColumns Property

Property
Namespace
TXTextControl.TXSheetControl.Server
Package
TXTextControl.TXSheetControl.Server as TXTextControl.TXSheetControl.Api.dll from the private NuGet feed or the supplied NuGet folder
Also in
TXTextControl.TXSheetControl.Blazor as TXTextControl.TXSheetControl.Api.dll

Maximum columns; defaults to 16,384.

Syntax

public int? MaxColumns { get; init; }

Property Value

int?.

Examples

Import customer orders, configure bounded tabular exchange and export the processed values or a formatted workbook.

using TXTextControl.TXSheetControl.Server;

async Task<byte[]> ExchangeOrderDataAsync(ServerSheetControl control)
{
    await control.LoadTextAsync("<rows><row><Customer>Müller</Customer><Amount>125.5</Amount></row></rows>", StreamType.XML, new TabularLoadOptions { SheetName = "Orders", InferTypes = true, MaxFileBytes = 1048576, MaxRows = 1000, MaxColumns = 20, MaxCells = 20000 });

    var sheet=await control.Workbook.Sheets.AtAsync(0);
    await sheet.Range("A1:B1").FormatAsync(new { bold=true });
    return await control.SaveAsync(StreamType.SpreadsheetML);
}

Remarks

Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.

See Also