[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextLayout.GetFontStyle

GetFontStyle Method

GetFontStyle(int)

Gets the font style (also known as slope) of the text at the specified position.

Declaration
public FontStyle GetFontStyle(int currentPosition)
Parameters
Type Name Description
int currentPosition

The position of the text to inspect.

Returns
Type Description
FontStyle

a value which indicates the type of font style (also known as slope or incline) being applied at the specified position.

GetFontStyle(int, out TextRange)

HRESULT IDWriteTextLayout::GetFontStyle([In] unsigned int currentPosition,[Out] DWRITE_FONT_STYLE* fontStyle,[Out, Optional] DWRITE_TEXT_RANGE* textRange)

Declaration
public FontStyle GetFontStyle(int currentPosition, out TextRange textRange)
Parameters
Type Name Description
int currentPosition
TextRange textRange
Returns
Type Description
FontStyle