[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcGraphicsExt.DrawPushButton

DrawPushButton Method

DrawPushButton(GcGraphics, RectangleF, string, object, TextFormat, Color, ImageScaleMode, bool, PointF, bool, CaptionImageRelation, Border, float)

Draws a pushbutton.

Declaration
public static void DrawPushButton(this GcGraphics g, RectangleF bounds, string caption, object image, TextFormat textFormat, Color backColor, ImageScaleMode imageScaleMode, bool imageScaleProportional, PointF imageScalePosition, bool imageScaleIgnoreBorder, CaptionImageRelation captionImageRelation, Border border, float orientation)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string caption

The button text.

object image

The button image. If not null, can be an IImage or a FormXObject.

TextFormat textFormat

The text format to use.

Color backColor

The background color.

ImageScaleMode imageScaleMode

The image scale mode.

bool imageScaleProportional

Indicates whether the image should be scaled proportionally

PointF imageScalePosition

The image position, see Position for details.

bool 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 captionImageRelation

The relative position of caption and image in the button.

Border border

The border definition.

float orientation

The rotation angle, should be a multiple of 90.

DrawPushButton(GcGraphics, RectangleF, string, object, TextFormat, Color, ImageScale, CaptionImageRelation, Border, float)

Draws a pushbutton.

Declaration
public static void DrawPushButton(this GcGraphics g, RectangleF bounds, string caption, object image, TextFormat textFormat, Color backColor, ImageScale imageScale, CaptionImageRelation captionImageRelation, Border border, float orientation)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string caption

The button text.

object image

The button image. If not null, can be an IImage or a FormXObject.

TextFormat textFormat

The text format to use.

Color backColor

The background color.

ImageScale imageScale

The image alignment and scaling.

CaptionImageRelation captionImageRelation

The relative position of caption and image in the button.

Border border

The border definition.

float orientation

The rotation angle, should be a multiple of 90.

DrawPushButton(GcGraphics, RectangleF, string, object, TextFormat, Color, ImageScale, CaptionImageRelation, Border)

Draws a pushbutton.

Declaration
public static void DrawPushButton(this GcGraphics g, RectangleF bounds, string caption, object image, TextFormat textFormat, Color backColor, ImageScale imageScale, CaptionImageRelation captionImageRelation, Border border)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string caption

The button text.

object image

The button image. If not null, can be an IImage or a FormXObject.

TextFormat textFormat

The text format to use.

Color backColor

The background color.

ImageScale imageScale

The image alignment and scaling.

CaptionImageRelation captionImageRelation

The relative position of caption and image in the button.

Border border

The border definition.

DrawPushButton(GcGraphics, RectangleF, string, object, Font, float, Color, Color, ImageScaleMode, bool, PointF, bool, CaptionImageRelation, Border, float)

Draws a pushbutton.

Declaration
public static void DrawPushButton(this GcGraphics g, RectangleF bounds, string caption, object image, Font font, float fontSize, Color foreColor, Color backColor, ImageScaleMode imageScaleMode, bool imageScaleProportional, PointF imageScalePosition, bool imageScaleIgnoreBorder, CaptionImageRelation captionImageRelation, Border border, float orientation)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string caption

The button text.

object image

The button image. If not null, can be an IImage or a FormXObject.

Font font

The font.

float fontSize

The font size.

Color foreColor

The fore color.

Color backColor

The background color.

ImageScaleMode imageScaleMode

The image scale mode.

bool imageScaleProportional

Indicates whether the image should be scaled proportionally

PointF imageScalePosition

The image position, see Position for details.

bool 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 captionImageRelation

The relative position of caption and image in the button.

Border border

The border definition.

float orientation

The rotation angle, should be a multiple of 90.

DrawPushButton(GcGraphics, RectangleF, string, object, Font, float, Color, Color, ImageScale, CaptionImageRelation, Border, float)

Draws a pushbutton.

Declaration
public static void DrawPushButton(this GcGraphics g, RectangleF bounds, string caption, object image, Font font, float fontSize, Color foreColor, Color backColor, ImageScale imageScale, CaptionImageRelation captionImageRelation, Border border, float orientation)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string caption

The button text.

object image

The button image. If not null, can be an IImage or a FormXObject.

Font font

The font.

float fontSize

The font size.

Color foreColor

The fore color.

Color backColor

The background color.

ImageScale imageScale

The image alignment and scaling.

CaptionImageRelation captionImageRelation

The relative position of caption and image in the button.

Border border

The border definition.

float orientation

The rotation angle, should be a multiple of 90.

DrawPushButton(GcGraphics, RectangleF, string, object, Font, float, Color, Color, ImageScale, CaptionImageRelation, Border)

Draws a pushbutton.

Declaration
public static void DrawPushButton(this GcGraphics g, RectangleF bounds, string caption, object image, Font font, float fontSize, Color foreColor, Color backColor, ImageScale imageScale, CaptionImageRelation captionImageRelation, Border border)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string caption

The button text.

object image

The button image. If not null, can be an IImage or a FormXObject.

Font font

The font.

float fontSize

The font size.

Color foreColor

The fore color.

Color backColor

The background color.

ImageScale imageScale

The image alignment and scaling.

CaptionImageRelation captionImageRelation

The relative position of caption and image in the button.

Border border

The border definition.