Back to Devexpress

AutoSuggestEditQuerySubmittedEventArgs.Text Property

wpf-devexpress-dot-xpf-dot-editors-dot-autosuggesteditquerysubmittedeventargs.md

latest2.7 KB
Original Source

AutoSuggestEditQuerySubmittedEventArgs.Text Property

Gets the text entered by an end user.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public string Text { get; }
vb
Public ReadOnly Property Text As String

Property Value

TypeDescription
String

Text entered by an end user.

|

Remarks

Use the Text property to get the text currently entered by an end user.

Use the provided text to create a list of suggestions for the AutoSuggestEdit editor.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text 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.

wpf-data-grid-use-autosuggesteditsettings/CS/MainWindow.xaml.cs#L35

csharp
void QuerySubmitted(object sender, AutoSuggestEditQuerySubmittedEventArgs e) {
    ActiveEditor.ItemsSource = new List<string>(Enumerable.Range(0, 10).Select(c => e.Text + " item #" + c));
}

wpf-data-grid-use-autosuggesteditsettings/VB/MainWindow.xaml.vb#L38

vb
Private Sub QuerySubmitted(ByVal sender As Object, ByVal e As AutoSuggestEditQuerySubmittedEventArgs)
    ActiveEditor.ItemsSource = New List(Of String)(Enumerable.Range(0, 10).[Select](Function(c) e.Text & " item #" & c))
End Sub

See Also

AutoSuggestEditQuerySubmittedEventArgs Class

AutoSuggestEditQuerySubmittedEventArgs Members

DevExpress.Xpf.Editors Namespace