DrawPushButton(GcGraphics,RectangleF,String,Object,Font,Single,Color,Color,ImageScale,CaptionImageRelation,Border) 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 Font, _
ByVal As System.Single, _
ByVal As System.Drawing.Color, _
ByVal As System.Drawing.Color, _
ByVal As ImageScale, _
ByVal As CaptionImageRelation, _
ByVal As Border _
)
public static void DrawPushButton(
GcGraphics ,
System.Drawing.RectangleF ,
System.string ,
System.object ,
Font ,
System.float ,
System.Drawing.Color ,
System.Drawing.Color ,
ImageScale ,
CaptionImageRelation ,
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.
- font
- The font.
- fontSize
- The font size.
- foreColor
- The fore color.
- 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