ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / FontFace Class / GetFiles Method / GetFiles() Method

In This Topic
    GetFiles() Method
    In This Topic
    Obtains the font files representing a font face.
    Syntax
    'Declaration
     
    Public Overloads Function GetFiles() As FontFile()
    public FontFile[] GetFiles()

    Return Value

    An array that stores references to font files representing the font face. This parameter can be NULL if the user wants only the number of files representing the font face. This API increments reference count of the font file references returned according to COM conventions, and the client should release them when finished.
    Remarks
    The IDWriteFontFace::GetFiles method should be called twice. The first time you call GetFilesfontFiles should be NULL. When the method returns, numberOfFiles receives the number of font files that represent the font face. Then, call the method a second time, passing the numberOfFiles value that was output the first call, and a non-null buffer of the correct size to store the FontFile references.
    See Also