[]
Gets the font stretch of the text at the specified position.
public FontStretch GetFontStretch(int currentPosition)
Type | Name | Description |
---|---|---|
int | currentPosition | The position of the text to inspect. |
Type | Description |
---|---|
FontStretch | a value which indicates the type of font stretch (also known as width) being applied at the specified position. |
HRESULT IDWriteTextLayout::GetFontStretch([In] unsigned int currentPosition,[Out] DWRITE_FONT_STRETCH* fontStretch,[Out, Optional] DWRITE_TEXT_RANGE* textRange)
public FontStretch GetFontStretch(int currentPosition, out TextRange textRange)
Type | Name | Description |
---|---|---|
int | currentPosition | |
TextRange | textRange |
Type | Description |
---|---|
FontStretch |