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 As GcGraphics, _
ByVal As System.Drawing.RectangleF, _
ByVal As System.String, _
ByVal As System.Object, _
ByVal As TextFormat, _
ByVal As System.Drawing.Color, _
ByVal As ImageScaleMode, _
ByVal As System.Boolean, _
ByVal As System.Drawing.PointF, _
ByVal As System.Boolean, _
ByVal As CaptionImageRelation, _
ByVal As Border, _
ByVal As System.Single _
)
public static void DrawPushButton(
GcGraphics ,
System.Drawing.RectangleF ,
System.string ,
System.object ,
TextFormat ,
System.Drawing.Color ,
ImageScaleMode ,
System.bool ,
System.Drawing.PointF ,
System.bool ,
CaptionImageRelation ,
Border ,
System.float
)
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