MentionBox
Displays the active mention provider's suggestions in a popup anchored to the editor's caret.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class MentionBox : IMentionBox
Inheritance: objectMentionBox
Implements:
Constructors
Initializes the popup and the list picker used to display mention suggestions.
public MentionBox()
Properties
Gets or sets the index of the focused suggestion.
public int FocusedItemIndex { get; set; }
Implements:
The setter wraps indices past either end of the available items and does nothing when the list is empty.
Gets a value indicating whether the suggestion popup is open.
public bool IsOpen { get; }
Implements:
Gets the popup host that contains the mention picker.
public RadPopupControlBase Popup { get; }
Methods
When the popup is open, hides it, clears the picker data context, and hides the editor's mention context.
public void Hide()
Implements:
Opens the popup using its current editor and picker state.
public void Show()
Use Show(RadRichTextBox) to bind the popup to an editor and position it at the caret.
Loads the editor's active mention suggestions and displays the popup at its caret when the popup is closed.
public void Show(RadRichTextBox richTextBox)
The editor whose mention suggestions are displayed.
Implements:
If the editor or its active presenter is null, this method leaves the popup unchanged. When the popup is already open, the picker data is refreshed but its existing editor owner is retained.