Back to Devexpress

MemoSmartAutoComplete Class

blazor-devexpress-dot-aiintegration-dot-blazor-dot-editors.md

latest2.8 KB
Original Source

MemoSmartAutoComplete Class

Implements AI-powered Smart Autocomplete functionality in the Blazor Memo component.

Namespace : DevExpress.AIIntegration.Blazor.Editors

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

NuGet Package : DevExpress.AIIntegration.Blazor.Editors

Declaration

csharp
public class MemoSmartAutoComplete :
    ComponentBase,
    IDisposable

Remarks

The Memo component includes an AI-powered Smart Autocomplete extension that helps users compose text. As users type, an AI service analyzes their input and context and generates relevant text suggestions.

Users can interact with suggestions in the following ways:

  • Press Tab to accept a suggestion.
  • Press Esc or Backspace, continue typing, or click outside the editor to dismiss a suggestion.

Run Demo

Follow the steps below to add the Smart Autocomplete extension to the Memo component:

  1. Register AI services.

  2. Register the DevExpress.AIIntegration.Blazor.Editors namespace in the Components/Imports.razor file or in your Razor file:

  3. Use the Extensions property to add the AI-powered Smart Autocomplete functionality to the Memo editor.

Note

The DevExpress Blazor Memo component is only responsible for displaying AI-generated text suggestions. The actual text analysis and suggestion generation are performed by the connected AI model. Since AI models may not always generate suggestions, we recommend that you handle the SuggestionReceived event and verify whether a suggestion is available.

Implements

IComponent

IHandleEvent

IHandleAfterRender

IDisposable

Inheritance

Object ComponentBase MemoSmartAutoComplete

See Also

MemoSmartAutoComplete Members

DevExpress.AIIntegration.Blazor.Editors Namespace