ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / FontFileLoader Interface / CreateStreamFromKey Method
A reference to a font file reference key that uniquely identifies the font file resource within the scope of the font loader being used. The buffer allocated for this key must at least be the size, in bytes, specified by fontFileReferenceKeySize.

In This Topic
    CreateStreamFromKey Method (FontFileLoader)
    In This Topic
    Creates a font file stream object that encapsulates an open file resource.
    Syntax
    'Declaration
     
    Function CreateStreamFromKey( _
       ByVal fontFileReferenceKey As DataPointer _
    ) As FontFileStream
    FontFileStream CreateStreamFromKey( 
       DataPointer fontFileReferenceKey
    )

    Parameters

    fontFileReferenceKey
    A reference to a font file reference key that uniquely identifies the font file resource within the scope of the font loader being used. The buffer allocated for this key must at least be the size, in bytes, specified by fontFileReferenceKeySize.

    Return Value

    a reference to the newly created FontFileStream object.
    Remarks
    The resource is closed when the last reference to fontFileStream is released.
    See Also