menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfSmartTextArea - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfSmartTextArea

    The SfSmartTextArea component provides an intelligent text editing experience with features like auto-completion and context-aware suggestions. Inherits all functionalities and properties from Syncfusion SfTextArea component.

    Inheritance
    System.Object
    SfSmartTextArea
    Namespace: Syncfusion.Blazor.SmartComponents
    Assembly: Syncfusion.Blazor.SmartComponents.dll
    Syntax
    public class SfSmartTextArea : SfTextArea

    Constructors

    SfSmartTextArea()

    Declaration
    public SfSmartTextArea()

    Properties

    ShowSuggestionOnPopup

    Specifies whether suggestions should appear in a popup or inline within the text area.

    Declaration
    public Nullable<bool> ShowSuggestionOnPopup { get; set; }
    Property Value
    Type
    System.Nullable<System.Boolean>
    Remarks

    Set to true to show suggestions in a popup. If false, suggestions will appear inline within the text area.

    UserPhrases

    Specifies a collection of phrases commonly used by the user, which can be leveraged for auto-completion and suggestions.

    Declaration
    public string[] UserPhrases { get; set; }
    Property Value
    Type
    System.String[]
    Remarks

    Provide an array of string phrases commonly used by the user to enhance auto-completion and suggestions. Include preferred tone, voice, and any relevant information such as policies, URLs, or keywords for improved suggestions.

    UserRole

    Represents the user's role or designation, which can be used to provide role-specific suggestions or content within the smart text area.

    Declaration
    public string UserRole { get; set; }
    Property Value
    Type
    System.String
    Remarks

    Provide a string that describes who is typing and for what reason, optionally giving other contextual information.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved