SearchPaneQueryLinguisticDetails 類別

定義

提供使用者透過輸入法編輯器輸入 (輸入法) 查詢文字的相關資訊。

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
繼承
Object Platform::Object IInspectable SearchPaneQueryLinguisticDetails
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

重要

若要在應用程式中實作Windows 10或更新版本的搜尋,請使用AutoSuggestBox。 如需詳細資訊 ,請參閱自動建議方塊

您不應該在 app 中使用Windows.ApplicationModel.Search API (SearchPaneSearchContract) 或SearchBox API,以供Windows 10或更新版本使用。

應用程式會透過 searchPaneQueryChangedEventArgs.LinguisticDetails 屬性擷取此物件,同時處理 QueryChanged 事件或透過 SearchPaneSuggestionsRequestedEventArgs.LinguisticDetails 屬性,同時處理 SuggestionsRequested 事件。

屬性

QueryTextAlternatives

取得目前查詢文字的文字替代專案清單。 這些替代專案會說明使用者正在輸入 IME 的未編譯文字。

QueryTextCompositionLength

取得使用者以輸入法編輯器 (輸入法) 撰寫之查詢文字部分的長度。

QueryTextCompositionStart

取得使用者以輸入法編輯器 (輸入法) 撰寫之文字的起始位置。

適用於

另請參閱