共用方式為


TextConversionGenerator 類別

定義

將輸入注音字元轉換成對應的表意字元集合, (中文字元) 。

支援日文和中文拼音的輸入。

public ref class TextConversionGenerator sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ITextConversionGeneratorFactory, 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 TextConversionGenerator 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.ITextConversionGeneratorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class TextConversionGenerator final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ITextConversionGeneratorFactory), 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 TextConversionGenerator
[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.ITextConversionGeneratorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class TextConversionGenerator
function TextConversionGenerator(languageTag)
Public NotInheritable Class TextConversionGenerator
繼承
Object Platform::Object IInspectable TextConversionGenerator
屬性

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 引進)

建構函式

TextConversionGenerator(String)

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

屬性

LanguageAvailableButNotInstalled

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

ResolvedLanguage

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

方法

GetCandidatesAsync(String)

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

GetCandidatesAsync(String, UInt32)

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

適用於

另請參閱