Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcGraphicsExt Class / DrawPushButton Method / DrawPushButton(GcGraphics,RectangleF,String,Object,TextFormat,Color,ImageScaleMode,Boolean,PointF,Boolean,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 scale mode.
Indicates whether the image should be scaled proportionally
The image position, see GrapeCity.Documents.Pdf.Annotations.ImageScale.Position for details.
Indicates whether a button's appearance should be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.
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,ImageScaleMode,Boolean,PointF,Boolean,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 imageScaleMode As ImageScaleMode, _
       ByVal imageScaleProportional As System.Boolean, _
       ByVal imageScalePosition As System.Drawing.PointF, _
       ByVal imageScaleIgnoreBorder As System.Boolean, _
       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,
       ImageScaleMode imageScaleMode,
       System.bool imageScaleProportional,
       System.Drawing.PointF imageScalePosition,
       System.bool imageScaleIgnoreBorder,
       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.
    imageScaleMode
    The image scale mode.
    imageScaleProportional
    Indicates whether the image should be scaled proportionally
    imageScalePosition
    The image position, see GrapeCity.Documents.Pdf.Annotations.ImageScale.Position for details.
    imageScaleIgnoreBorder
    Indicates whether a button's appearance should be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.
    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