windowsforms-devexpress-dot-xtragrid-dot-views-dot-items-dot-itemsview-acc3de23.md
Returns the text content of currently selected HTML elements. See this article for more information: AllowContentSelection.
Namespace : DevExpress.XtraGrid.Views.Items
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[Browsable(false)]
public string SelectedText { get; }
<Browsable(False)>
Public ReadOnly Property SelectedText As String
| Type | Description |
|---|---|
| String |
The text content of currently selected HTML elements.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedText property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-chat-for-net-framework/CS/DevExpress.AI.WinForms.HtmlChat/ChatControl.cs#L78
{
if (!string.IsNullOrEmpty(messagesItemsView.SelectedText))
ShowContextMenu(e);
See Also