[]
        
(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)
Public Function GetFontCollection(currentPosition As Integer) As FontCollection
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)
Public Function GetFontCollection(currentPosition As Integer, ByRef textRange As TextRange) As FontCollection
Parameters
Type Name Description
int currentPosition
TextRange textRange
Returns
Type Description
FontCollection