共用方式為


TextPredictionGenerator 類別

定義

根據注音符號字元前置詞預測日文文字。

public ref class TextPredictionGenerator sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ITextPredictionGeneratorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TextPredictionGenerator final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ITextPredictionGeneratorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class TextPredictionGenerator final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ITextPredictionGeneratorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TextPredictionGenerator
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ITextPredictionGeneratorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class TextPredictionGenerator
function TextPredictionGenerator(languageTag)
Public NotInheritable Class TextPredictionGenerator
繼承
Object Platform::Object IInspectable TextPredictionGenerator
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 新增值
1809 17763 GetCandidatesAsync (String,UInt32,TextPredictionOptions,IEnumerable < String >)
1809 17763 GetNextWordCandidatesAsync
1809 17763 InputScope

建構函式

TextPredictionGenerator(String)

根據特定的BCP-47語言標記,建構TextPredictionGenerator物件。

屬性

InputScope

取得或設定文字預測的輸入範圍。

LanguageAvailableButNotInstalled

判斷指定的語言標記是否可用於產生預測,但未安裝在使用者的裝置上。

ResolvedLanguage

取得成功建立 TextPredictionGenerator 物件的語言標記。

方法

GetCandidatesAsync(String)

根據提供的注音字元前置詞,以非同步方式擷取候選字清單。

GetCandidatesAsync(String, UInt32)

根據提供的注音字元前置詞,以非同步方式擷取候選字清單,最多擷取計數上限。

GetCandidatesAsync(String, UInt32, TextPredictionOptions, IIterable<String>)

根據提供的注音字元前置詞和選項,以非同步方式擷取候選字清單,最多擷取計數上限。

GetNextWordCandidatesAsync(UInt32, IIterable<String>)

以非同步方式擷取包含下一個字組預測候選項目的字串集合。

適用於

另請參閱