[]
Draws a pushbutton.
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)
| 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. |
Draws a pushbutton.
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)
| 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. |
Draws a pushbutton.
public static void DrawPushButton(this GcGraphics g, RectangleF bounds, string caption, object image, TextFormat textFormat, Color backColor, ImageScale imageScale, CaptionImageRelation captionImageRelation, Border border)
| 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. |
Draws a pushbutton.
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)
| 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. |
Draws a pushbutton.
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)
| 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. |
Draws a pushbutton.
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)
| 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. |