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

Represents a provider for the mentions functionality.

Definition

Namespace:Telerik.Windows.Documents.UI.Mentions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Type Parameters:

T

Syntax:

C#
public abstract class MentionProviderBase<T> : MentionProviderBase

Inheritance: objectMentionProviderBaseMentionProviderBase<T>

Derived Classes: PersonMentionProvider

Inherited Members MentionProviderBase.MentionCharacterPropertyMentionProviderBase.ItemsSourcePropertyMentionProviderBase.MentionCharacterMentionProviderBase.ItemsSource

Constructors

Constructor for the MentionProviderBase<T> class.

C#
protected MentionProviderBase()

Methods

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

C#
public abstract bool DetermineItemVisibility(T item, string currentMentionText)
Parameters:itemT

The item which will be checked.

currentMentionTextstring

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

Returns:

bool

True if the item should be visible, false otherwise.

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

C#
public abstract void InsertItem(RadDocument document, T item)
Parameters:documentRadDocument

The current RadDocument.

itemT

The item to be inserted.