Class
MentionProviderBase<T>

Represents a provider for the mentions functionality.

Definition

Namespace:Telerik.Windows.Documents.UI.Mentions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Type Parameters:

T

Syntax:

cs-api-definition
public abstract class MentionProviderBase<T> : MentionProviderBase

Inheritance: objectMentionProviderBaseMentionProviderBase<T>

Derived Classes: PersonMentionProvider

Inherited Members MentionProviderBase.MentionCharacterPropertyMentionProviderBase.ItemsSourcePropertyMentionProviderBase.MentionCharacterMentionProviderBase.ItemsSource

Constructors

MentionProviderBase()

Constructor for the MentionProviderBase<T> class.

Declaration

cs-api-definition
protected MentionProviderBase()

Methods

DetermineItemVisibility(T, string)

Determines if the passed item should be visible in the list of mention items.

Declaration

cs-api-definition
public abstract bool DetermineItemVisibility(T item, string currentMentionText)

Parameters

item

T

The item which will be checked.

currentMentionText

string

The searched text that should define whether the item should be visible.

Returns

bool

True if the item should be visible, false otherwise.

InsertItem(RadDocument, T)

Defines the action executed after selecting an item from the list of mention items.

Declaration

cs-api-definition
public abstract void InsertItem(RadDocument document, T item)

Parameters

document

RadDocument

The current RadDocument.

item

T

The item to be inserted.