Share via


TextConversionGenerator Class

Definition

Converts input phonetic characters into a collection of corresponding ideographic characters (Chinese characters).

Input of Japanese and Chinese Pinyin is supported.

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
Inheritance
Object Platform::Object IInspectable TextConversionGenerator
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

TextConversionGenerator(String)

Constructs a TextConversionGenerator object based on a specific BCP-47 language tag.

Properties

LanguageAvailableButNotInstalled

Determines if the language tag specified is available for conversions, but is not installed on the user's device.

ResolvedLanguage

Gets the language tag of the successfully created TextConversionGenerator object.

Methods

GetCandidatesAsync(String, UInt32)

Asynchronously gets a list of candidate words, up to a maximum count, based on the provided phonetic characters.

GetCandidatesAsync(String)

Asynchronously gets a list of candidate words based on the provided phonetic characters.

Applies to

See also