Back to Devexpress

ItemsView.SelectedText Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-items-dot-itemsview-acc3de23.md

latest2.2 KB
Original Source

ItemsView.SelectedText Property

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

Declaration

csharp
[Browsable(false)]
public string SelectedText { get; }
vb
<Browsable(False)>
Public ReadOnly Property SelectedText As String

Property Value

TypeDescription
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

csharp
{
    if (!string.IsNullOrEmpty(messagesItemsView.SelectedText))
        ShowContextMenu(e);

See Also

ItemsView Class

ItemsView Members

DevExpress.XtraGrid.Views.Items Namespace