[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextLayout.GetLocaleName

GetLocaleName Method

GetLocaleName(int)

Gets the locale name of the text at the specified position.

Declaration
public string GetLocaleName(int currentPosition)
Parameters
Type Name Description
int currentPosition

The position of the text to inspect.

Returns
Type Description
string

the locale name of the text at the specified position.

GetLocaleName(int, out TextRange)

Gets the locale name of the text at the specified position.

Declaration
public string GetLocaleName(int currentPosition, out TextRange textRange)
Parameters
Type Name Description
int currentPosition

The position of the text to inspect.

TextRange textRange

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the locale name.

Returns
Type Description
string

the locale name of the text at the specified position.

GetLocaleName(int, IntPtr, int, out TextRange)

HRESULT IDWriteTextLayout::GetLocaleName([In] unsigned int currentPosition,[Out, Buffer] wchar_t* localeName,[In] unsigned int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange)

Declaration
public void GetLocaleName(int currentPosition, IntPtr localeName, int nameSize, out TextRange textRange)
Parameters
Type Name Description
int currentPosition
IntPtr localeName
int nameSize
TextRange textRange