Axis Class

Represents an axis in a spreadsheet, which can be used to manage the layout of rows or columns.

Inheritance

Object

Documents.Spreadsheet.Axis

Namespace: Radzen.Documents.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class Axis

Constructors

Axislink

Represents an axis in a spreadsheet, which can be used to manage the layout of rows or columns.

Declaration
public Axis(double size, int count)
Parameters
Type Name Description
double size
int count

Properties

Countlink

Gets or sets the total number of items along this axis. Setting this property triggers a change event.

Declaration
public int Count { get; set; }
Property Value
Type Description
intGets or sets the total number of items along this axis. Setting this property triggers a change event.

Frozenlink

Gets or sets the number of frozen items in the axis.

Declaration
public int Frozen { get; set; }
Property Value
Type Description
intGets or sets the number of frozen items in the axis.

Itemlink

Gets or sets the size of the axis at the specified index.

Declaration
public double Item { get; set; }
Property Value
Type Description
doubleGets or sets the size of the axis at the specified index.

Sizelink

The default size of an item of the axis.

Declaration
public double Size { get; }
Property Value
Type Description
doubleThe default size of an item of the axis.

Totallink

Gets the total size of the axis, including all visible items, default values for hidden items, and the offset.

Declaration
public double Total { get; }
Property Value
Type Description
doubleGets the total size of the axis, including all visible items, default values for hidden items, and the offset.

Methods

BeginUpdatelink

Suspend updates to the axis. This is useful when making multiple changes at once to prevent unnecessary updates.

Declaration
public void BeginUpdate()

EndUpdatelink

Resume updates to the axis and trigger a change event.

Declaration
public void EndUpdate()

Hidelink

Hides the specified index.

Declaration
public void Hide(int index)
Parameters
Type Name Description
int index

IsHiddenlink

Checks if the specified index is hidden.

Declaration
public bool IsHidden(int index)
Parameters
Type Name Description
int index
Returns
Type Description
bool

Showlink

Shows the specified index if it is hidden.

Declaration
public void Show(int index)
Parameters
Type Name Description
int index

ShowAlllink

Shows all hidden indices in the axis.

Declaration
public void ShowAll()

Events

Changedlink

Fires when an axis property changes (row/column hidden, shown, resized) or when an update batch completes via EndUpdate. Fires unconditionally on EndUpdate even if no state changed during the batch.

Declaration
public event Action Changed
An error has occurred. This app may no longer respond until reloaded. Reload 🗙