Represents an axis in a spreadsheet, which can be used to manage the layout of rows or columns.
Object
Namespace: Radzen.Documents.Spreadsheet
Assembly: Radzen.Blazor.dll
public class AxisRepresents an axis in a spreadsheet, which can be used to manage the layout of rows or columns.
public Axis(double size, int count)
| Type | Name | Description |
|---|---|---|
| double | size | |
| int | count |
Gets or sets the total number of items along this axis. Setting this property triggers a change event.
public int Count { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the total number of items along this axis. Setting this property triggers a change event. |
Gets or sets the number of frozen items in the axis.
public int Frozen { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the number of frozen items in the axis. |
Gets or sets the size of the axis at the specified index.
public double Item { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the size of the axis at the specified index. |
The default size of an item of the axis.
public double Size { get; }
| Type | Description |
|---|---|
| double | The default size of an item of the axis. |
Gets the total size of the axis, including all visible items, default values for hidden items, and the offset.
public double Total { get; }
| Type | Description |
|---|---|
| double | Gets the total size of the axis, including all visible items, default values for hidden items, and the offset. |
Suspend updates to the axis. This is useful when making multiple changes at once to prevent unnecessary updates.
public void BeginUpdate()Resume updates to the axis and trigger a change event.
public void EndUpdate()Hides the specified index.
public void Hide(int index)
| Type | Name | Description |
|---|---|---|
| int | index |
Checks if the specified index is hidden.
public bool IsHidden(int index)
| Type | Name | Description |
|---|---|---|
| int | index |
| Type | Description |
|---|---|
| bool |
Shows the specified index if it is hidden.
public void Show(int index)
| Type | Name | Description |
|---|---|---|
| int | index |
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.
public event Action Changed