Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcGraphicsExt Class / DrawPushButton Method / DrawPushButton(GcGraphics,RectangleF,String,Object,TextFormat,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 text format to use.
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,TextFormat,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 textFormat As TextFormat, _
       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,
       TextFormat textFormat,
       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.
    textFormat
    The text format to use.
    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