[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextLayout.GetFontStretch

GetFontStretch Method

GetFontStretch(int)

Gets the font stretch of the text at the specified position.

Declaration
public FontStretch GetFontStretch(int currentPosition)
Parameters
Type Name Description
int currentPosition

The position of the text to inspect.

Returns
Type Description
FontStretch

a value which indicates the type of font stretch (also known as width) being applied at the specified position.

GetFontStretch(int, out TextRange)

HRESULT IDWriteTextLayout::GetFontStretch([In] unsigned int currentPosition,[Out] DWRITE_FONT_STRETCH* fontStretch,[Out, Optional] DWRITE_TEXT_RANGE* textRange)

Declaration
public FontStretch GetFontStretch(int currentPosition, out TextRange textRange)
Parameters
Type Name Description
int currentPosition
TextRange textRange
Returns
Type Description
FontStretch