Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Util Namespace / GcGraphicsExt Class / DrawPushButton 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 text format.
The background color.
The image alignment and scaling.
The relative position of caption and image in the button.
The border definition.

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

    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.
    tf
    The text format.
    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.
    See Also