[]
Provides extension methods that draw certain PDF elements (such as AcroForm fields) on a GcGraphics.
public static class GcGraphicsExt
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe check mark bounds.
value
boolThe check mark value.
font
FontThe font to use, can be null in which case ZapfDingbats will be used.
fontSize
floatThe font size, can be 0 in which case it will be selected automatically to fit into the specified bounds.
foreColor
System.Drawing.ColorThe foreground color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
orientation
floatThe rotation angle, should be a multiple of 90.
checkMark
stringThe text to use for the check mark.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe check mark bounds.
value
boolThe check mark value.
font
FontThe font to use, can be null in which case ZapfDingbats will be used.
fontSize
floatThe font size, can be 0 in which case it will be selected automatically to fit into the specified bounds.
foreColor
System.Drawing.ColorThe foreground color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
checkMark
stringThe text to use for the check mark.
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)
g
GcGraphicsThe GcGraphics object.
bounds
System.Drawing.RectangleFThe ellipse bounds.
intensity
floatThe intensity of the "cloudy" effect, valid values are from 0 to 2.
pen
PenThe Pen to use.
fillColor
System.Drawing.ColorThe fill color.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
items
System.Collections.Generic.IList<T><ChoiceFieldItem>The control items.
selectedIndex
intThe index of an item in items
the text of which to draw.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
drawButton
boolIndicates whether to draw drop-down button.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
items
System.Collections.Generic.IList<T><ChoiceFieldItem>The control items.
selectedIndex
intThe index of an item in items
the text of which to draw.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
items
System.Collections.Generic.IList<T><ChoiceFieldItem>The control items.
selectedIndex
intThe index of an item in items
the text of which to draw.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
drawButton
boolIndicates whether to draw drop-down button.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
items
System.Collections.Generic.IList<T><ChoiceFieldItem>The control items.
selectedIndex
intThe index of an item in items
the text of which to draw.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
fieldText
stringThe control text.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
drawButton
boolIndicates whether to draw drop-down button.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
fieldText
stringThe control text.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
fieldText
stringThe control text.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
drawButton
boolIndicates whether to draw drop-down button.
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, TextFormat textFormat, Color backColor, Border border, bool required)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
fieldText
stringThe control text.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
text
stringThe control text.
maxLen
intThe maximum text length.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
justification
VariableTextJustificationThe text justification.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
text
stringThe control text.
maxLen
intThe maximum text length.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
justification
VariableTextJustificationThe text justification.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
text
stringThe control text.
maxLen
intThe maximum text length.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
justification
VariableTextJustificationThe text justification.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
text
stringThe control text.
maxLen
intThe maximum text length.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
justification
VariableTextJustificationThe text justification.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
Draws a combo box drop-down button.
public static void DrawDropDownButton(this GcGraphics g, RectangleF bounds)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
Draws an image represented by an IImage or a FormXObject.
public static void DrawImage(this GcGraphics g, object image, RectangleF bounds, ImageScale imageScale)
g
GcGraphicsThe graphics to draw on.
image
objectThe image object (an IImage or a FormXObject).
bounds
System.Drawing.RectangleFThe image bounds.
imageScale
ImageScaleThe image alignment and scaling.
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)
g
GcGraphicsThe graphics to draw on.
image
objectThe image object (an IImage or a FormXObject).
bounds
System.Drawing.RectangleFThe image bounds.
imageScaleMode
ImageScaleModeThe image scale mode.
imageScaleProportional
boolIndicates whether the image should be scaled proportionally
imageScalePosition
System.Drawing.PointFThe image position, see Position for details.
imageScaleIgnoreBorder
boolIndicates 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.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
items
System.Collections.Generic.IList<T><ChoiceFieldItem>The control items.
si
int[]The list of selected indexes.
topIndex
intThe index of the top visible item.
font
FontThe font to use.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
items
System.Collections.Generic.IList<T><ChoiceFieldItem>The control items.
si
int[]The list of selected indexes.
topIndex
intThe index of the top visible item.
font
FontThe font to use.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
items
System.Collections.Generic.IList<T><ChoiceFieldItem>The control items.
si
int[]The list of selected indexes.
topIndex
intThe index of the top visible item.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
items
System.Collections.Generic.IList<T><ChoiceFieldItem>The control items.
si
int[]The list of selected indexes.
topIndex
intThe index of the top visible item.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
points
System.Collections.Generic.IReadOnlyList<T><System.Drawing.PointF>An array of points defining the line.
lineWidth
floatThe line width.
lineColor
System.Drawing.ColorThe line color.
lineDashPattern
float[]The dash pattern, null indicates a solid line.
lineStartStyle
LineEndingStyleThe style of the start marker.
lineEndStyle
LineEndingStyleThe style of the end marker.
lineEndingsFillColor
System.Drawing.ColorThe fill color used to render the markers.
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)
g
GcGraphicsThe graphics to draw on.
page
PageThe page to draw.
bounds
System.Drawing.RectangleFThe draw bounds.
drawAnnotations
boolIndicates whether to draw annotations.
drawFormFields
boolIndicates whether to draw form fields.
renderingCache
RenderingCacheA RenderingCache object that is used to cache objects created during rendering.
print
boolIndicates whether the image is generated for printing.
ignoreErrors
boolIndicates whether to ignore errors in the PDF content stream during rendering.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
caption
stringThe button text.
image
objectThe button image. If not null, can be an IImage or a FormXObject.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
imageScale
ImageScaleThe image alignment and scaling.
captionImageRelation
CaptionImageRelationThe relative position of caption and image in the button.
border
BorderThe border definition.
orientation
floatThe 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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
caption
stringThe button text.
image
objectThe button image. If not null, can be an IImage or a FormXObject.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
imageScale
ImageScaleThe image alignment and scaling.
captionImageRelation
CaptionImageRelationThe relative position of caption and image in the button.
border
BorderThe 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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
caption
stringThe button text.
image
objectThe button image. If not null, can be an IImage or a FormXObject.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
imageScaleMode
ImageScaleModeThe image scale mode.
imageScaleProportional
boolIndicates whether the image should be scaled proportionally
imageScalePosition
System.Drawing.PointFThe image position, see Position for details.
imageScaleIgnoreBorder
boolIndicates 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
CaptionImageRelationThe relative position of caption and image in the button.
border
BorderThe border definition.
orientation
floatThe 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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
caption
stringThe button text.
image
objectThe button image. If not null, can be an IImage or a FormXObject.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
imageScale
ImageScaleThe image alignment and scaling.
captionImageRelation
CaptionImageRelationThe relative position of caption and image in the button.
border
BorderThe border definition.
orientation
floatThe 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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
caption
stringThe button text.
image
objectThe button image. If not null, can be an IImage or a FormXObject.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
imageScale
ImageScaleThe image alignment and scaling.
captionImageRelation
CaptionImageRelationThe relative position of caption and image in the button.
border
BorderThe border definition.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
caption
stringThe button text.
image
objectThe button image. If not null, can be an IImage or a FormXObject.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
imageScaleMode
ImageScaleModeThe image scale mode.
imageScaleProportional
boolIndicates whether the image should be scaled proportionally
imageScalePosition
System.Drawing.PointFThe image position, see Position for details.
imageScaleIgnoreBorder
boolIndicates 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
CaptionImageRelationThe relative position of caption and image in the button.
border
BorderThe border definition.
orientation
floatThe rotation angle, should be a multiple of 90.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
text
stringThe control text.
multiLine
boolIndicates whether the control is multi-line.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
justification
VariableTextJustificationThe text justification.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
text
stringThe control text.
multiLine
boolIndicates whether the control is multi-line.
font
FontThe font.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
justification
VariableTextJustificationThe text justification.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
text
stringThe control text.
multiLine
boolIndicates whether the control is multi-line.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
justification
VariableTextJustificationThe text justification.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
orientation
floatThe rotation angle, should be a multiple of 90.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
text
stringThe control text.
multiLine
boolIndicates whether the control is multi-line.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
justification
VariableTextJustificationThe text justification.
required
boolIndicates whether to draw the border in red, ignoring the color specified in border
.
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)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
font
FontThe font to use.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
orientation
floatThe rotation angle, should be a multiple of 90.
Draws an unsigned signature.
public static void DrawUnsignedSignature(this GcGraphics g, RectangleF bounds, Font font, float fontSize, Color foreColor, Color backColor, Border border)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
font
FontThe font to use.
fontSize
floatThe font size.
foreColor
System.Drawing.ColorThe fore color.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
Draws an unsigned signature.
public static void DrawUnsignedSignature(this GcGraphics g, RectangleF bounds, TextFormat textFormat, Color backColor, Border border, float orientation)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.
orientation
floatThe rotation angle, should be a multiple of 90.
Draws an unsigned signature.
public static void DrawUnsignedSignature(this GcGraphics g, RectangleF bounds, TextFormat textFormat, Color backColor, Border border)
g
GcGraphicsThe graphics to draw on.
bounds
System.Drawing.RectangleFThe control bounds.
textFormat
TextFormatThe text format to use.
backColor
System.Drawing.ColorThe background color.
border
BorderThe border definition.