[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextLayout.GetFontCollection

GetFontCollection Method

GetFontCollection(int)

Gets the font collection associated with the text at the specified position.

Declaration
public FontCollection GetFontCollection(int currentPosition)
Parameters
Type Name Description
int currentPosition

The position of the text to inspect.

Returns
Type Description
FontCollection

a reference to the current font collection.

GetFontCollection(int, out TextRange)

HRESULT IDWriteTextLayout::GetFontCollection([In] unsigned int currentPosition,[Out] IDWriteFontCollection** fontCollection,[Out, Optional] DWRITE_TEXT_RANGE* textRange)

Declaration
public FontCollection GetFontCollection(int currentPosition, out TextRange textRange)
Parameters
Type Name Description
int currentPosition
TextRange textRange
Returns
Type Description
FontCollection