Isolated, perf-safe screen-reader announcer for RadzenSpreadsheet. It binds to the worksheet Selection and, on selection change, re-renders ONLY itself (three visually hidden aria-live regions) - the virtualized cell grid is never touched, so navigation stays on the existing perf-neutral hot path.
Object
ComponentBase
IComponent
IHandleEvent
IHandleAfterRender
ComponentBase.OnInitialized
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.OnAfterRenderAsync
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.SetParametersAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public class SpreadsheetAccessibility : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderInitializes a new instance of the SpreadsheetAccessibility class.
public SpreadsheetAccessibility()The host spreadsheet, used to localize announcement templates.
public ISpreadsheet Spreadsheet { get; set; }
| Type | Description |
|---|---|
| ISpreadsheet | The host spreadsheet, used to localize announcement templates. |
The worksheet whose selection is announced.
public Documents.Spreadsheet.Worksheet Worksheet { get; set; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.Worksheet | The worksheet whose selection is announced. |
Announces a transient action result (sort, filter, insert, undo) in a polite region, keeping the active cell named so context is not lost.
public void AnnounceAction(string message)
| Type | Name | Description |
|---|---|---|
| string | message |
Announces an assertive alert (for example a validation rejection).
public void AnnounceAlert(string message)
| Type | Name | Description |
|---|---|---|
| string | message |
Composes the spoken description of a cell - address, content (or "blank"), header, position, merged span and state - from the model. Pure and deterministic for unit testing.
public static string BuildAnnouncement(Documents.Spreadsheet.Worksheet worksheet, Documents.Spreadsheet.CellRef cell, Func<string, string> localize)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | worksheet | The worksheet that owns the cell. |
| Documents.Spreadsheet.CellRef | cell | The active cell reference. |
| Func<string, string> | localize | Resolves a RadzenStrings key to localized text. |
| Type | Description |
|---|---|
| string |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |