[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextLayout.GetFontSize

GetFontSize Method

GetFontSize(int)

Gets the font em height of the text at the specified position.

Declaration
public float GetFontSize(int currentPosition)
Public Function GetFontSize(currentPosition As Integer) As Single
Parameters
Type Name Description
int currentPosition

The position of the text to inspect.

Returns
Type Description
float

the size of the font in ems of the text at the specified position.

GetFontSize(int, out TextRange)

HRESULT IDWriteTextLayout::GetFontSize([In] unsigned int currentPosition,[Out] float* fontSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange)

Declaration
public float GetFontSize(int currentPosition, out TextRange textRange)
Public Function GetFontSize(currentPosition As Integer, ByRef textRange As TextRange) As Single
Parameters
Type Name Description
int currentPosition
TextRange textRange
Returns
Type Description
float