Back to Devexpress

ChangeToneAIContextMenuItem Class

blazor-devexpress-dot-aiintegration-dot-blazor-dot-richedit-0842ed18.md

latest2.7 KB
Original Source

ChangeToneAIContextMenuItem Class

A context menu item that rewrites the editor text using a specified tone.

Namespace : DevExpress.AIIntegration.Blazor.RichEdit

Assembly : DevExpress.AIIntegration.Blazor.RichEdit.v25.2.dll

NuGet Package : DevExpress.AIIntegration.Blazor.RichEdit

Declaration

csharp
public class ChangeToneAIContextMenuItem :
    BaseAIContextMenuItem

Remarks

Populate the DxRichEdit.Extensions collection with the ChangeToneAIContextMenuItem object to add the Change Tone item to the editor context menu. This item adjusts the tone of selected text to meet audience or context requirements.

Read Tutorial: Get Started with AI-powered Extension for Blazor Rich Text Editor

View Example: Rich Text Editor and HTML Editor for Blazor - How to integrate AI-powered extensions

razor
@using DevExpress.AIIntegration.Blazor.RichEdit
@using DevExpress.Blazor.RichEdit

<DxRichEdit>
    <Extensions>
        <SummarizeAIContextMenuItem />
        <ExplainAIContextMenuItem />
        <ProofreadAIContextMenuItem />
        <ExpandAIContextMenuItem />
        <ShortenAIContextMenuItem />
        <AskAssistantAIContextMenuItem />
        <ChangeStyleAIContextMenuItem />
        <ChangeToneAIContextMenuItem />
        <GenerateDescriptionAIContextMenuItem />
        <TranslateAIContextMenuItem Languages="@("English, German, French, Chinese")" />
    </Extensions>
</DxRichEdit>

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inheritance

Object ComponentBase DevExpress.AIIntegration.Blazor.Internal.BasePopupItem BaseAIContextMenuItem ChangeToneAIContextMenuItem

See Also

ChangeToneAIContextMenuItem Members

DevExpress.AIIntegration.Blazor.RichEdit Namespace