Skip to content
OFFICE · COMPLETE

ProofingPanel

Spelling, grammar and logic checks in one panel.

Spelling, grammar and logic checks in one panel, shared by the PDF viewer, the document editor and the spreadsheet.

Why it helps

  • English and Bulgarian
  • Spelling, grammar and logic
  • One panel

Where it fits

  • Documents
  • Spreadsheets
  • Presentations

Example

<TextField Label="Text" Lines="4" @bind-Value="_text" />
<ProofingPanel Entries="Entries()" ReadOnly="true" Style="height:22rem" OnRecheck="Recheck" />

@code {
    private string _text = "This are a sample with with a repeated word and a missspelled one. Това е примерен текст с грешка в изречението  и двоен интервал.";
    private IReadOnlyList<ProofingEntry> _entries = [];

    protected override void OnInitialized() => Recheck();

    private IReadOnlyList<ProofingEntry> Entries() => _entries;

    private void Recheck() =>
        _entries = Proofreader.Shared.Check(_text ?? string.Empty, ProofOptions.Default)
            .Select((issue, index) => new ProofingEntry($"{index}", $"{issue.Start + 1}", issue))
            .ToList();
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Part of RayCraft Complete.

All controls ยท Documentation