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 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 ImageScale, _
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 ,
ImageScale ,
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.
- 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