Base class for row and column header components. Manages selection state tracking, event subscription lifecycle, and CSS class generation. Subclasses provide the axis-specific index, address creation, and CSS class name.
Object
ComponentBase
IComponent
IHandleEvent
IHandleAfterRender
Spreadsheet.CellBase.AppendStyle
Spreadsheet.CellBase.FrozenState
ComponentBase.BuildRenderTree
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.OnAfterRenderAsync
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public abstract class HeaderBase : Spreadsheet.CellBase, IComponent, IHandleEvent, IHandleAfterRenderInitializes a new instance of the HeaderBase class.
protected HeaderBase()Gets whether the header is in the active selection range.
protected bool Active { get; }
| Type | Description |
|---|---|
| bool | Gets whether the header is in the active selection range. |
Gets the axis index (row or column) for this header.
protected int Index { get; }
| Type | Description |
|---|---|
| int | Gets the axis index (row or column) for this header. |
Gets the parameter name to watch for changes (e.g. "Row" or "Column").
protected string IndexParameterName { get; }
| Type | Description |
|---|---|
| string | Gets the parameter name to watch for changes (e.g. "Row" or "Column"). |
Gets whether the header's entire row/column is selected.
protected bool Selected { get; }
| Type | Description |
|---|---|
| bool | Gets whether the header's entire row/column is selected. |
Gets or sets the worksheet that contains this header.
public Documents.Spreadsheet.Worksheet Worksheet { get; set; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.Worksheet | Gets or sets the worksheet that contains this header. |
Returns whether the selection is active for this header's axis position. Called only after validating that selection is non-null.
protected abstract bool CheckIsActive(Documents.Spreadsheet.Selection selection)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Selection | selection |
| Type | Description |
|---|---|
| bool |
Returns whether the selection covers this header's entire row/column. Called only after validating that selection is non-null.
protected abstract bool CheckIsSelected(Documents.Spreadsheet.Selection selection)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Selection | selection |
| Type | Description |
|---|---|
| bool |
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |