Awaited authoring API overview

    The Avalonia edition exposes native framework controls and awaited document services. Use the operation suited to the currently visible content and await its actual result.

    Avalonia application using the delivered HTML editor with native commands, document modes, a formatted table and a business message.
    Avalonia application using the delivered HTML editor with native commands, document modes, a formatted table and a business message.
    MemberUse
    ContentLoad/export HTML, inspect elements and edit authored body style.
    SelectionRead/set the visible Source draft or rendered selection using UTF-16 positions.
    FormattingFormat editable Design content or use the six supported Source tag wrappers.
    StateQueryRead formatting and command availability.
    EditorUse current-view clipboard, history, deletion, scrolling, search, print and focus operations.
    CaretRead actual offsets and available geometry; navigate the visible editing surface.
    DialogOpen native authoring workflows and customize ten typed fresh-window factories.
    MailMergeInsert, discover and merge template fields.
    TableAuthoringServiceCreate/revise tables and cells.
    SearchFind/replace in rendered content or the visible source draft.

    BodyHtml and DocumentHtml support binding. The native Border uses Child for its visual layout. Content is the replaceable awaited authoring service.

    var found = await editor.Search.FindNextAsync("renewal", wholeWord: true);
    var replacements = await editor.Search.ReplaceAllAsync("renewal", "extension", wholeWord: true);
    string bodyCss = await editor.Content.GetBodyStyleAsync();

    Next/previous search does not wrap automatically. Replace current requires the current selected match; replace all precomputes a bounded plan and reports the actual count. Read-only and preview allow search while rejecting replacement. Source replacements stay in the visible draft and source undo history.

    Mode, editing entitlement, document identity and selection identity determine whether a mutation can apply. A null/blank SetAttributeValueOfAnElementAsync value removes that supported attribute; a missing element leaves the document unchanged.

    Hyperlink and property APIs

    SetHyperlinkAsync accepts the shared HyperLinkDialogInputs model; RemoveHyperlinkAsync removes the selected anchor while retaining its child content. HrefUrl, Bookmark, Title, InnerHtml and optional Target describe the authored hyperlink. Native file-link browsing requires an actual picker grant. ShowCtrlClickTooltipOnHyperlinks controls the shared hint when an accepted link has no title. TableAuthoringService.SetTablePropertiesAsync and SetCellPropertiesAsync apply the shared complete property models as guarded undoable changes.

    Replaceable services and notifications

    Content, Editor, Caret, Formatting, Selection, StateQuery and Dialog are non-null replaceable native interfaces. MailMerge, TableAuthoringService and Search are additional services. Mode, file and spelling events follow acknowledged work; Pasting performs synchronous bounded inspection before insertion. Passive element-click/mousedown notifications contain copied data, never executable DOM objects.

    Content also exposes XHTML/XML export, one-undo local-image embedding and unsent email construction. Native APIs are awaited adaptations; MSHTML COM objects and arbitrary Internet Explorer commands are not part of this edition.

    Last updated on Oct 18, 2026

    Put this into practice.

    Start with the C# Avalonia sample. Restore this edition's package and install the native browser prerequisites before running it.

    Prefer a guided look? Book a free live demo with our engineers - live on Zoom or Teams, never a chatbot.