Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / IDrawingSurface Interface / DrawIcon Method
The built-in icon to paint.
Rectangle structure that specifies the boundary of the icon.
Where the icon is placed.
true to paint the disabled icon.
true if paint this icon fit to rect, otherwise painting icon with the default size.


In This Topic
    DrawIcon Method
    In This Topic
    Draws the built-in icon.
    Syntax
    'Declaration
     
    
    Sub DrawIcon( _
       ByVal builtInIcon As BuiltInIcons, _
       ByVal rect As Rectangle, _
       ByVal alignment As RectAlignment, _
       ByVal disabled As Boolean, _
       ByVal scale As Boolean _
    ) 
    'Usage
     
    
    Dim instance As IDrawingSurface
    Dim builtInIcon As BuiltInIcons
    Dim rect As Rectangle
    Dim alignment As RectAlignment
    Dim disabled As Boolean
    Dim scale As Boolean
     
    instance.DrawIcon(builtInIcon, rect, alignment, disabled, scale)

    Parameters

    builtInIcon
    The built-in icon to paint.
    rect
    Rectangle structure that specifies the boundary of the icon.
    alignment
    Where the icon is placed.
    disabled
    true to paint the disabled icon.
    scale
    true if paint this icon fit to rect, otherwise painting icon with the default size.
    See Also