Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TextConversionGenerator Class

Definition

Namespace:
Windows.Data.Text

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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

Name Description
TextConversionGenerator(String)

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

Properties

Name Description
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

Name Description
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


Feedback

Was this page helpful?