IDWriteTextAnalysisSource::GetLocaleName Method

Gets the locale name on the range affected by the text analysis.

Syntax

virtual HRESULT GetLocaleName(
  UINT32 textPosition,
  [out]  UINT32 *textLength,
  [out]  const WCHAR **localeName
) = 0;

Parameter

  • textPosition
    The text position to examine.

  • textLength [out]
    Contains the length of the text being affected by the text analysis up to the next differing locale.

  • localeName [out]
    Contains an address of a pointer to an array of characters which receives the locale name from the text affected by the text analysis. The array of characters is null-terminated.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Hinweise

The localeName pointer must remain valid until the next call or until the analysis returns.

Anforderungen

Mindestens unterstützter Client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Mindestens unterstützter Server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteTextAnalysisSource