New to Telerik UI for WPFStart a free 30-day trial

Defines an interface for providing interaction with an inline assistant in a WPF application.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public interface IInlineAssistantInteractionProvider

Derived Classes: InlineAIAssistantRadRichTextBoxProviderInlineAIAssistantTextBoxProvider

Properties

Gets the full text of the target element that the inline assistant interacts with.

C#
string FullText { get; }

Gets the currently selected text in the target element that the inline assistant interacts with.

C#
string SelectedText { get; }

TargetElement

FrameworkElement

Gets the target FrameworkElement that the inline assistant interacts with.

C#
FrameworkElement TargetElement { get; }

Methods

Determines whether text can be inserted at the current caret position in the target element that the inline assistant interacts with.

C#
bool CanInsertText(string text)
Parameters:textstring

The text to insert.

Returns:

bool

true if text can be inserted; otherwise, false.

Determines whether the selected text in the target element that the inline assistant interacts with can be replaced.

C#
bool CanReplaceSelectedText(string text)
Parameters:textstring

The text to replace with.

Returns:

bool

true if the selected text can be replaced; otherwise, false.

Gets the position where the inline assistant should be opened.

C#
Point? GetPosition()
Returns:

Point?

The point where the inline assistant should be opened, or null if the assistant should not be shown.

Inserts the specified text at the current caret position in the target element that the inline assistant interacts with.

C#
void InsertText(string text)
Parameters:textstring

The text to insert.

Replaces the currently selected text in the target element that the inline assistant interacts with.

C#
void ReplaceSelectedText(string text)
Parameters:textstring

The text to replace with.