TX Sheet Control

Dimension 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
Inherits
  1. DocumentObject
  2. Dimension

Worksheet-scoped server API contract; requests retain document identity and cancellation semantics.

Syntax

public class Dimension

Members

Properties

PropertyDescription
Index

Methods

MethodDescription
GetHiddenAsyncReads explicit row/column hiding independently of AutoFilter.
GetSizeAsyncPerforms an operation on this document without activating another worksheet.
ResetAsyncRemoves the dimension size override without changing visibility.
SetHeightAsyncPerforms an operation on this document without activating another worksheet.
SetHiddenAsyncHides or reveals this dimension, retaining its stored size. Undoable; worksheet protection applies.
SetWidthAsyncPerforms an operation on this document without activating another worksheet.

Examples

Build a small report using this document API and return its PDF bytes. Pass a live control with a fresh workbook; the caller owns its lifetime.

using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateDimensionReportAsync(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)");

    var dimension = sheet.Rows.At(0);
    await dimension.SetHeightAsync(new { points = 28 });
    return await control.SaveAsync(StreamType.PDF);
}

See Also