SmartTextBoxAdapter
Wisej.AI.Adapters.SmartTextBoxAdapter
Last updated
Wisej.AI.Adapters.SmartTextBoxAdapter
Last updated
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Enhances a TextBox control with several AI features, including suggestions, translation, and auto-correction.
This class extends the functionality of a standard TextBox by providing AI-driven features such as text suggestions, automatic translation between specified languages, and auto-correction of text input. It uses SmartPrompt sessions to interact with AI services.
Initializes a new instanced of .
: Gets or sets the source of the icon displayed when a suggestion is accepted. (Default: null
)
Determines whether the auto-correction feature is enabled for the specified control.
control
The control to check.
Throws:
Determines whether the suggestions feature is enabled for the specified control.
control
The control to check.
Throws:
Determines whether the translation feature is enabled for the specified control.
control
The control to check.
Throws:
Gets the source language for the translation feature associated with the specified control.
control
The control from which to retrieve the source language.
Throws:
Gets the target language for the translation feature associated with the specified control.
control
The control from which to retrieve the target language.
Throws:
Gets the user-provided phrases associated with the specified control.
control
The control from which to retrieve the user phrases.
Throws:
Gets the user role associated with the specified control.
control
The control from which to retrieve the user role.
Throws:
control
control
control
control
value
control
value
control
value
Sets the source language for the translation feature associated with the specified control.
control
The control to associate with the source language.
value
The source language as a string.
Throws:
Sets the target language for the translation feature associated with the specified control.
control
The control to associate with the target language.
value
The target language as a string.
Throws:
control
phrases
control
value
Represents a provider that supplies tools.
: Gets or sets the source of the icon displayed during processing. (Default: "resource.wx/Wisej.AI/Icons/processing.svg"
)
: Gets or sets the delay in milliseconds before suggestions are shown. (Default: 250
)
: Gets or sets the CSS style applied to suggestions. (Default: "opacity:0.4"
)
Returns: . True if auto-correction is enabled; otherwise, false.
Thrown when the control is null.
Returns: . True if suggestions are enabled; otherwise, false.
Thrown when the control is null.
Returns: . True if translation is enabled; otherwise, false.
Thrown when the control is null.
Returns: . The source language as a string.
Thrown when the control is null.
Returns: . The target language as a string.
Thrown when the control is null.
Returns: . An array of user phrases.
Thrown when the control is null.
Returns: . The user role as a string.
Thrown when the control is null.
Returns: .
Thrown when the control is null.
Thrown when the control is null.