[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcGraphicsExt

Class GcGraphicsExt

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

Provides extension methods that draw certain PDF elements (such as AcroForm fields) on a GcGraphics.

public static class GcGraphicsExt
Inheritance
object
GcGraphicsExt
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

DrawCheckBox(GcGraphics, RectangleF, bool, Font, float, Color, Color, Border, float, string)

Draws a PDF check mark.

public static void DrawCheckBox(this GcGraphics g, RectangleF bounds, bool value, Font font, float fontSize, Color foreColor, Color backColor, Border border, float orientation, string checkMark = null)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The check mark bounds.

value bool

The check mark value.

font Font

The font to use, can be null in which case ZapfDingbats will be used.

fontSize float

The font size, can be 0 in which case it will be selected automatically to fit into the specified bounds.

foreColor System.Drawing.Color

The foreground color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

orientation float

The rotation angle, should be a multiple of 90.

checkMark string

The text to use for the check mark.

DrawCheckBox(GcGraphics, RectangleF, bool, Font, float, Color, Color, Border, string)

Draws a PDF check mark.

public static void DrawCheckBox(this GcGraphics g, RectangleF bounds, bool value, Font font, float fontSize, Color foreColor, Color backColor, Border border, string checkMark = null)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The check mark bounds.

value bool

The check mark value.

font Font

The font to use, can be null in which case ZapfDingbats will be used.

fontSize float

The font size, can be 0 in which case it will be selected automatically to fit into the specified bounds.

foreColor System.Drawing.Color

The foreground color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

checkMark string

The text to use for the check mark.

DrawCloudy(GcGraphics, RectangleF, float, Pen, Color)

Draws an ellipse with a "cloudy" border. (As per the PDF spec, the border should be drawn as a series of convex curved line segments in a manner that simulates the appearance of a cloud.)

public static bool DrawCloudy(this GcGraphics g, RectangleF bounds, float intensity, Pen pen, Color fillColor)

Parameters

g GcGraphics

The GcGraphics object.

bounds System.Drawing.RectangleF

The ellipse bounds.

intensity float

The intensity of the "cloudy" effect, valid values are from 0 to 2.

pen Pen

The Pen to use.

fillColor System.Drawing.Color

The fill color.

Returns

bool

DrawComboBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int, Font, float, Color, Color, Border, bool, float, bool)

Draws a combo box.

public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required, float orientation, bool drawButton)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

items System.Collections.Generic.IList<T><ChoiceFieldItem>

The control items.

selectedIndex int

The index of an item in items the text of which to draw.

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

drawButton bool

Indicates whether to draw drop-down button.

DrawComboBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int, Font, float, Color, Color, Border, bool)

Draws a combo box.

public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

items System.Collections.Generic.IList<T><ChoiceFieldItem>

The control items.

selectedIndex int

The index of an item in items the text of which to draw.

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawComboBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int, TextFormat, Color, Border, bool, float, bool)

Draws a combo box.

public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, TextFormat textFormat, Color backColor, Border border, bool required, float orientation, bool drawButton)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

items System.Collections.Generic.IList<T><ChoiceFieldItem>

The control items.

selectedIndex int

The index of an item in items the text of which to draw.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

drawButton bool

Indicates whether to draw drop-down button.

DrawComboBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int, TextFormat, Color, Border, bool)

Draws a combo box.

public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, TextFormat textFormat, Color backColor, Border border, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

items System.Collections.Generic.IList<T><ChoiceFieldItem>

The control items.

selectedIndex int

The index of an item in items the text of which to draw.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawComboBox(GcGraphics, RectangleF, string, Font, float, Color, Color, Border, bool, float, bool)

Draws a combo box.

public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required, float orientation, bool drawButton)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

fieldText string

The control text.

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

drawButton bool

Indicates whether to draw drop-down button.

DrawComboBox(GcGraphics, RectangleF, string, Font, float, Color, Color, Border, bool)

Draws a combo box.

public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

fieldText string

The control text.

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawComboBox(GcGraphics, RectangleF, string, TextFormat, Color, Border, bool, float, bool)

Draws a combo box.

public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, TextFormat textFormat, Color backColor, Border border, bool required, float orientation, bool drawButton)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

fieldText string

The control text.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

drawButton bool

Indicates whether to draw drop-down button.

DrawComboBox(GcGraphics, RectangleF, string, TextFormat, Color, Border, bool)

Draws a combo box.

public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, TextFormat textFormat, Color backColor, Border border, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

fieldText string

The control text.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawCombTextBox(GcGraphics, RectangleF, string, int, Font, float, Color, Color, Border, VariableTextJustification, bool, float)

Draws a CombTextBox.

public static void DrawCombTextBox(this GcGraphics g, RectangleF bounds, string text, int maxLen, Font font, float fontSize, Color foreColor, Color backColor, Border border, VariableTextJustification justification, bool required, float orientation)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

text string

The control text.

maxLen int

The maximum text length.

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

justification VariableTextJustification

The text justification.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

DrawCombTextBox(GcGraphics, RectangleF, string, int, Font, float, Color, Color, Border, VariableTextJustification, bool)

Draws a CombTextBox.

public static void DrawCombTextBox(this GcGraphics g, RectangleF bounds, string text, int maxLen, Font font, float fontSize, Color foreColor, Color backColor, Border border, VariableTextJustification justification, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

text string

The control text.

maxLen int

The maximum text length.

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

justification VariableTextJustification

The text justification.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawCombTextBox(GcGraphics, RectangleF, string, int, TextFormat, Color, Border, VariableTextJustification, bool, float)

Draws a CombTextBox.

public static void DrawCombTextBox(this GcGraphics g, RectangleF bounds, string text, int maxLen, TextFormat textFormat, Color backColor, Border border, VariableTextJustification justification, bool required, float orientation)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

text string

The control text.

maxLen int

The maximum text length.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

justification VariableTextJustification

The text justification.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

DrawCombTextBox(GcGraphics, RectangleF, string, int, TextFormat, Color, Border, VariableTextJustification, bool)

Draws a CombTextBox.

public static void DrawCombTextBox(this GcGraphics g, RectangleF bounds, string text, int maxLen, TextFormat textFormat, Color backColor, Border border, VariableTextJustification justification, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

text string

The control text.

maxLen int

The maximum text length.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

justification VariableTextJustification

The text justification.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawDropDownButton(GcGraphics, RectangleF)

Draws a combo box drop-down button.

public static void DrawDropDownButton(this GcGraphics g, RectangleF bounds)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

DrawImage(GcGraphics, object, RectangleF, ImageScale)

Draws an image represented by an IImage or a FormXObject.

public static void DrawImage(this GcGraphics g, object image, RectangleF bounds, ImageScale imageScale)

Parameters

g GcGraphics

The graphics to draw on.

image object

The image object (an IImage or a FormXObject).

bounds System.Drawing.RectangleF

The image bounds.

imageScale ImageScale

The image alignment and scaling.

DrawImage(GcGraphics, object, RectangleF, ImageScaleMode, bool, PointF, bool)

Draws an image represented by an IImage or a FormXObject.

public static void DrawImage(this GcGraphics g, object image, RectangleF bounds, ImageScaleMode imageScaleMode, bool imageScaleProportional, PointF imageScalePosition, bool imageScaleIgnoreBorder)

Parameters

g GcGraphics

The graphics to draw on.

image object

The image object (an IImage or a FormXObject).

bounds System.Drawing.RectangleF

The image bounds.

imageScaleMode ImageScaleMode

The image scale mode.

imageScaleProportional bool

Indicates whether the image should be scaled proportionally

imageScalePosition System.Drawing.PointF

The image position, see Position for details.

imageScaleIgnoreBorder bool

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.

DrawListBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int[], int, Font, float, Color, Color, Border, bool, float)

Draws a list box.

public static void DrawListBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int[] si, int topIndex, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required, float orientation)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

items System.Collections.Generic.IList<T><ChoiceFieldItem>

The control items.

si int[]

The list of selected indexes.

topIndex int

The index of the top visible item.

font Font

The font to use.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

DrawListBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int[], int, Font, float, Color, Color, Border, bool)

Draws a list box.

public static void DrawListBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int[] si, int topIndex, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

items System.Collections.Generic.IList<T><ChoiceFieldItem>

The control items.

si int[]

The list of selected indexes.

topIndex int

The index of the top visible item.

font Font

The font to use.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawListBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int[], int, TextFormat, Color, Border, bool, float)

Draws a list box.

public static void DrawListBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int[] si, int topIndex, TextFormat textFormat, Color backColor, Border border, bool required, float orientation)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

items System.Collections.Generic.IList<T><ChoiceFieldItem>

The control items.

si int[]

The list of selected indexes.

topIndex int

The index of the top visible item.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

DrawListBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int[], int, TextFormat, Color, Border, bool)

Draws a list box.

public static void DrawListBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int[] si, int topIndex, TextFormat textFormat, Color backColor, Border border, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

items System.Collections.Generic.IList<T><ChoiceFieldItem>

The control items.

si int[]

The list of selected indexes.

topIndex int

The index of the top visible item.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawPdfLine(GcGraphics, IReadOnlyList<PointF>, float, Color, float[], LineEndingStyle, LineEndingStyle, Color)

Draws a line composed of several segments, with start and end markers.

public static void DrawPdfLine(this GcGraphics g, IReadOnlyList<PointF> points, float lineWidth, Color lineColor, float[] lineDashPattern, LineEndingStyle lineStartStyle, LineEndingStyle lineEndStyle, Color lineEndingsFillColor)

Parameters

g GcGraphics

The graphics to draw on.

points System.Collections.Generic.IReadOnlyList<T><System.Drawing.PointF>

An array of points defining the line.

lineWidth float

The line width.

lineColor System.Drawing.Color

The line color.

lineDashPattern float[]

The dash pattern, null indicates a solid line.

lineStartStyle LineEndingStyle

The style of the start marker.

lineEndStyle LineEndingStyle

The style of the end marker.

lineEndingsFillColor System.Drawing.Color

The fill color used to render the markers.

DrawPdfPage(GcGraphics, Page, RectangleF, bool, bool, RenderingCache, bool, bool)

Draws a PDF page.

public static void DrawPdfPage(this GcGraphics g, Page page, RectangleF bounds, bool drawAnnotations = true, bool drawFormFields = true, RenderingCache renderingCache = null, bool print = false, bool ignoreErrors = true)

Parameters

g GcGraphics

The graphics to draw on.

page Page

The page to draw.

bounds System.Drawing.RectangleF

The draw bounds.

drawAnnotations bool

Indicates whether to draw annotations.

drawFormFields bool

Indicates whether to draw form fields.

renderingCache RenderingCache

A RenderingCache object that is used to cache objects created during rendering.

print bool

Indicates whether the image is generated for printing.

ignoreErrors bool

Indicates whether to ignore errors in the PDF content stream during rendering.

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

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)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

caption string

The button text.

image object

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

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

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.

orientation float

The rotation angle, should be a multiple of 90.

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

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)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

caption string

The button text.

image object

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

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

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.

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

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

caption string

The button text.

image object

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

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

imageScaleMode ImageScaleMode

The image scale mode.

imageScaleProportional bool

Indicates whether the image should be scaled proportionally

imageScalePosition System.Drawing.PointF

The image position, see Position for details.

imageScaleIgnoreBorder bool

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.

orientation float

The rotation angle, should be a multiple of 90.

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

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)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

caption string

The button text.

image object

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

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

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.

orientation float

The rotation angle, should be a multiple of 90.

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

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)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

caption string

The button text.

image object

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

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

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, TextFormat, Color, ImageScaleMode, bool, PointF, bool, CaptionImageRelation, Border, float)

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)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

caption string

The button text.

image object

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

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

imageScaleMode ImageScaleMode

The image scale mode.

imageScaleProportional bool

Indicates whether the image should be scaled proportionally

imageScalePosition System.Drawing.PointF

The image position, see Position for details.

imageScaleIgnoreBorder bool

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.

orientation float

The rotation angle, should be a multiple of 90.

DrawTextBox(GcGraphics, RectangleF, string, bool, Font, float, Color, Color, Border, VariableTextJustification, bool, float)

Draws a text box.

public static void DrawTextBox(this GcGraphics g, RectangleF bounds, string text, bool multiLine, Font font, float fontSize, Color foreColor, Color backColor, Border border, VariableTextJustification justification, bool required, float orientation)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

text string

The control text.

multiLine bool

Indicates whether the control is multi-line.

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

justification VariableTextJustification

The text justification.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

DrawTextBox(GcGraphics, RectangleF, string, bool, Font, float, Color, Color, Border, VariableTextJustification, bool)

Draws a text box.

public static void DrawTextBox(this GcGraphics g, RectangleF bounds, string text, bool multiLine, Font font, float fontSize, Color foreColor, Color backColor, Border border, VariableTextJustification justification, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

text string

The control text.

multiLine bool

Indicates whether the control is multi-line.

font Font

The font.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

justification VariableTextJustification

The text justification.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawTextBox(GcGraphics, RectangleF, string, bool, TextFormat, Color, Border, VariableTextJustification, bool, float)

Draws a text box.

public static void DrawTextBox(this GcGraphics g, RectangleF bounds, string text, bool multiLine, TextFormat textFormat, Color backColor, Border border, VariableTextJustification justification, bool required, float orientation)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

text string

The control text.

multiLine bool

Indicates whether the control is multi-line.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

justification VariableTextJustification

The text justification.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

orientation float

The rotation angle, should be a multiple of 90.

DrawTextBox(GcGraphics, RectangleF, string, bool, TextFormat, Color, Border, VariableTextJustification, bool)

Draws a text box.

public static void DrawTextBox(this GcGraphics g, RectangleF bounds, string text, bool multiLine, TextFormat textFormat, Color backColor, Border border, VariableTextJustification justification, bool required)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

text string

The control text.

multiLine bool

Indicates whether the control is multi-line.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

justification VariableTextJustification

The text justification.

required bool

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawUnsignedSignature(GcGraphics, RectangleF, Font, float, Color, Color, Border, float)

Draws an unsigned signature.

public static void DrawUnsignedSignature(this GcGraphics g, RectangleF bounds, Font font, float fontSize, Color foreColor, Color backColor, Border border, float orientation)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

font Font

The font to use.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

orientation float

The rotation angle, should be a multiple of 90.

DrawUnsignedSignature(GcGraphics, RectangleF, Font, float, Color, Color, Border)

Draws an unsigned signature.

public static void DrawUnsignedSignature(this GcGraphics g, RectangleF bounds, Font font, float fontSize, Color foreColor, Color backColor, Border border)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

font Font

The font to use.

fontSize float

The font size.

foreColor System.Drawing.Color

The fore color.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

DrawUnsignedSignature(GcGraphics, RectangleF, TextFormat, Color, Border, float)

Draws an unsigned signature.

public static void DrawUnsignedSignature(this GcGraphics g, RectangleF bounds, TextFormat textFormat, Color backColor, Border border, float orientation)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.

orientation float

The rotation angle, should be a multiple of 90.

DrawUnsignedSignature(GcGraphics, RectangleF, TextFormat, Color, Border)

Draws an unsigned signature.

public static void DrawUnsignedSignature(this GcGraphics g, RectangleF bounds, TextFormat textFormat, Color backColor, Border border)

Parameters

g GcGraphics

The graphics to draw on.

bounds System.Drawing.RectangleF

The control bounds.

textFormat TextFormat

The text format to use.

backColor System.Drawing.Color

The background color.

border Border

The border definition.