[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextLayout.GetFontWeight

GetFontWeight Method

GetFontWeight(int)

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

Declaration
public FontWeight GetFontWeight(int currentPosition)
Parameters
Type Name Description
int currentPosition

The position of the text to inspect.

Returns
Type Description
FontWeight

a value which indicates the type of font weight being applied at the specified position.

GetFontWeight(int, out TextRange)

HRESULT IDWriteTextLayout::GetFontWeight([In] unsigned int currentPosition,[Out] DWRITE_FONT_WEIGHT* fontWeight,[Out, Optional] DWRITE_TEXT_RANGE* textRange)

Declaration
public FontWeight GetFontWeight(int currentPosition, out TextRange textRange)
Parameters
Type Name Description
int currentPosition
TextRange textRange
Returns
Type Description
FontWeight