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)

根据提供的拼音字符异步获取最大计数的候选单词列表。

适用于

另请参阅