Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / IPaintingContext Interface / ToGdiFont Method
The font data.
true if the default font returned for an empty font data; otherwise, false.


In This Topic
    ToGdiFont Method
    In This Topic
    Gets the corresponding GDI+ font.
    Syntax
    'Declaration
     
    
    Function ToGdiFont( _
       ByVal font As Font, _
       Optional ByVal useDefault As Boolean _
    ) As Font
    'Usage
     
    
    Dim instance As IPaintingContext
    Dim font As Font
    Dim useDefault As Boolean
    Dim value As Font
     
    value = instance.ToGdiFont(font, useDefault)
    Font ToGdiFont( 
       Font font,
       bool useDefault
    )

    Parameters

    font
    The font data.
    useDefault
    true if the default font returned for an empty font data; otherwise, false.

    Return Value

    A System.Drawing.Font object represents the corresponding GDI+ font.
    See Also