[]
Gets the font style (also known as slope) of the text at the specified position.
public FontStyle GetFontStyle(int currentPosition)
Type | Name | Description |
---|---|---|
int | currentPosition | The position of the text to inspect. |
Type | Description |
---|---|
FontStyle | a value which indicates the type of font style (also known as slope or incline) being applied at the specified position. |
HRESULT IDWriteTextLayout::GetFontStyle([In] unsigned int currentPosition,[Out] DWRITE_FONT_STYLE* fontStyle,[Out, Optional] DWRITE_TEXT_RANGE* textRange)
public FontStyle GetFontStyle(int currentPosition, out TextRange textRange)
Type | Name | Description |
---|---|---|
int | currentPosition | |
TextRange | textRange |
Type | Description |
---|---|
FontStyle |