Spread Windows Forms 17
GrapeCity.Spreadsheet.WinForms.Ribbon Assembly / GrapeCity.Spreadsheet.WinForms.Ribbon Namespace / Icon Class / FromFont Method
The icon size.
Indicates the icon color.
The text to show.
The icon font.


In This Topic
    FromFont Method
    In This Topic
    Creates a new instance of Icon with with specified key, size, color and image.
    Syntax
    'Declaration
     
    
    Public Shared Function FromFont( _
       ByVal size As Size, _
       ByVal color As Color, _
       ByVal text As String, _
       ByVal font As Font _
    ) As Icon
    'Usage
     
    
    Dim size As Size
    Dim color As Color
    Dim text As String
    Dim font As Font
    Dim value As Icon
     
    value = Icon.FromFont(size, color, text, font)
    public static Icon FromFont( 
       Size size,
       Color color,
       string text,
       Font font
    )

    Parameters

    size
    The icon size.
    color
    Indicates the icon color.
    text
    The text to show.
    font
    The icon font.
    See Also