Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TranslateAIContextMenuItem.TextFieldName Property

Specifies the field that contains text for Translate context menu items.

Namespace: DevExpress.AIIntegration.Blazor.RichEdit

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

NuGet Package: DevExpress.AIIntegration.Blazor.RichEdit

#Declaration

C#
[Parameter]
public string TextFieldName { get; set; }

#Property Value

Type Description
String

The field name.

#Remarks

The Languages property allows you to specify a list of languages displayed in the Translate context menu item. If you assign an array of objects to the Languages property, use the ValueFieldName and TextFieldName properties to specify fields that contain language key values and display texts.

razor
<DxRichEdit>
    <AdditionalItems>
        ...
        <TranslateAIContextMenuItem Languages="@languages" ValueFieldName="id" TextFieldName="text" />
    </AdditionalItems>
</DxRichEdit>

@code {
    public class Language {
        public string id { get; set; }
        public string text { get; set; }
    }

    Language[] languages = {
        new() { id = "English", text = "English"},
        new() { id = "German", text = "Deutsch"},
        new() { id = "Chinese", text = "中國人"},
        new() { id = "Greek", text = "Ελληνικά"}
    };
}

RichEdit Translate Menu Item

See Also