[]
Gets the locale name of the text at the specified position.
public string GetLocaleName(int currentPosition)
Type | Name | Description |
---|---|---|
int | currentPosition | The position of the text to inspect. |
Type | Description |
---|---|
string | the locale name of the text at the specified position. |
Gets the locale name of the text at the specified position.
public string GetLocaleName(int currentPosition, out TextRange textRange)
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. |
Type | Description |
---|---|
string | the locale name of the text at the specified position. |
HRESULT IDWriteTextLayout::GetLocaleName([In] unsigned int currentPosition,[Out, Buffer] wchar_t* localeName,[In] unsigned int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange)
public void GetLocaleName(int currentPosition, IntPtr localeName, int nameSize, out TextRange textRange)
Type | Name | Description |
---|---|---|
int | currentPosition | |
IntPtr | localeName | |
int | nameSize | |
TextRange | textRange |