Udostępnij za pośrednictwem


SearchPaneQueryLinguisticDetails Class

Definition

Provides information about query text that the user enters through an Input Method Editor (IME).

public ref class SearchPaneQueryLinguisticDetails sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SearchPaneQueryLinguisticDetails final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SearchPaneQueryLinguisticDetails
Public NotInheritable Class SearchPaneQueryLinguisticDetails
Inheritance
Object Platform::Object IInspectable SearchPaneQueryLinguisticDetails
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Important

To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.

You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract) or SearchBox APIs in apps for Windows 10 or later.

An app retrieves this object through the searchPaneQueryChangedEventArgs.LinguisticDetails property while handling a QueryChanged event or through the SearchPaneSuggestionsRequestedEventArgs.LinguisticDetails property while handling a SuggestionsRequested event.

Properties

QueryTextAlternatives

Gets a list of the text alternatives for the current query text. These alternatives account for uncomposed text the user is entering in an IME.

QueryTextCompositionLength

Gets the length of the portion of the query text that the user is composing with an Input Method Editor (IME).

QueryTextCompositionStart

Gets the starting location of the text that the user is composing with an Input Method Editor (IME).

Applies to

See also