TextConversionGenerator Klasse

Definition

Konvertiert phonetische Eingabezeichen in eine Sammlung entsprechender ideografischer Zeichen (chinesische Zeichen).

Die Eingabe von japanischem und chinesischem Pinyin wird unterstützt.

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
Vererbung
Object Platform::Object IInspectable TextConversionGenerator
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Konstruktoren

TextConversionGenerator(String)

Erstellt ein TextConversionGenerator-Objekt basierend auf einem bestimmten BCP-47-Sprachtag .

Eigenschaften

LanguageAvailableButNotInstalled

Bestimmt, ob das angegebene Sprachtag für Konvertierungen verfügbar, aber nicht auf dem Gerät des Benutzers installiert ist.

ResolvedLanguage

Ruft das Sprachtag des erfolgreich erstellten TextConversionGenerator-Objekts ab.

Methoden

GetCandidatesAsync(String)

Ruft asynchron eine Liste von Kandidatenwörtern ab, die auf den angegebenen phonetischen Zeichen basieren.

GetCandidatesAsync(String, UInt32)

Ruft asynchron eine Liste von Kandidatenwörtern ab, bis zu einer maximalen Anzahl, basierend auf den bereitgestellten phonetischen Zeichen.

Gilt für:

Weitere Informationen