Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcGraphicsExt Class / DrawPushButton Method / DrawPushButton(GcGraphics,RectangleF,String,Object,Font,Single,Color,Color,ImageScale,CaptionImageRelation,Border,Single) Method
The graphics to draw on.
The control bounds.
The button text.
The button image. If not null, can be an GrapeCity.Documents.Drawing.IImage or a GrapeCity.Documents.Pdf.Graphics.FormXObject.
The font.
The font size.
The fore color.
The background color.
The image alignment and scaling.
The relative position of caption and image in the button.
The border definition.
The rotation angle, should be a multiple of 90.

In This Topic
    DrawPushButton(GcGraphics,RectangleF,String,Object,Font,Single,Color,Color,ImageScale,CaptionImageRelation,Border,Single) Method
    In This Topic
    Draws a pushbutton.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub DrawPushButton( _
       ByVal g As GcGraphics, _
       ByVal bounds As System.Drawing.RectangleF, _
       ByVal caption As System.String, _
       ByVal image As System.Object, _
       ByVal font As Font, _
       ByVal fontSize As System.Single, _
       ByVal foreColor As System.Drawing.Color, _
       ByVal backColor As System.Drawing.Color, _
       ByVal imageScale As ImageScale, _
       ByVal captionImageRelation As CaptionImageRelation, _
       ByVal border As Border, _
       ByVal orientation As System.Single _
    ) 
    public static void DrawPushButton( 
       GcGraphics g,
       System.Drawing.RectangleF bounds,
       System.string caption,
       System.object image,
       Font font,
       System.float fontSize,
       System.Drawing.Color foreColor,
       System.Drawing.Color backColor,
       ImageScale imageScale,
       CaptionImageRelation captionImageRelation,
       Border border,
       System.float orientation
    )

    Parameters

    g
    The graphics to draw on.
    bounds
    The control bounds.
    caption
    The button text.
    image
    The button image. If not null, can be an GrapeCity.Documents.Drawing.IImage or a GrapeCity.Documents.Pdf.Graphics.FormXObject.
    font
    The font.
    fontSize
    The font size.
    foreColor
    The fore color.
    backColor
    The background color.
    imageScale
    The image alignment and scaling.
    captionImageRelation
    The relative position of caption and image in the button.
    border
    The border definition.
    orientation
    The rotation angle, should be a multiple of 90.
    See Also