Class PdfFormAutoFieldStyle
- Namespace
- EvoPdf
- Assembly
- evohtmltopdf.dll
This class offers the necessary properties and methods to control the style of the automatically generated PDF form fields
[ClassInterface(ClassInterfaceType.AutoDual)]
public class PdfFormAutoFieldStyle
- Inheritance
-
PdfFormAutoFieldStyle
- Inherited Members
Constructors
PdfFormAutoFieldStyle()
public PdfFormAutoFieldStyle()
Properties
BackColor
Gets or sets the form field background color in an automatically generated PDF form
public PdfColor BackColor { get; set; }
Property Value
BorderColor
Gets or sets the PDF form field border color in an automatically generated PDF form
public PdfColor BorderColor { get; set; }
Property Value
BorderStyle
Gets or sets the form field border style in an automatically generated PDF form
public PdfBorderStyle BorderStyle { get; set; }
Property Value
Export
Gets or sets a flag indicating if the field is exported by a submit form action. The default value of the property is true
public bool Export { get; set; }
Property Value
Flatten
Gets or sets a flag indicating if the form field is flattened. The default value of the property is false
public bool Flatten { get; set; }
Property Value
ForeColor
Gets or sets the form field fore color in an automatically generated PDF form
public PdfColor ForeColor { get; set; }
Property Value
ReadOnly
Gets or sets a flag indicating if the field is read only. The default value of the property is false
public bool ReadOnly { get; set; }
Property Value
Required
Gets or sets a flag indicating if the field should have a value at the time it is exported by a submit form action. The default value of the property is false
public bool Required { get; set; }
Property Value
Methods
SetFont(PdfFont)
Use the given previously created PDF font when the automatically generated PDF form field needs a font
public void SetFont(PdfFont pdfFont)
Parameters
pdfFont
PdfFontThe PDF font
SetFont(StdFontBaseFamily)
Use the given standard PDF font when the automatically generated PDF form field needs a font
public void SetFont(StdFontBaseFamily standardFont)
Parameters
standardFont
StdFontBaseFamilyThe standard font
SetFont(byte[], FontStyle)
Use a font given by its binary data and style
public void SetFont(byte[] fontData, FontStyle fontStyle)
Parameters
fontData
byte[]The font data
fontStyle
FontStyleThe font style
SetFont(Font, bool)
Use the given system font when the automatically generated PDF form field needs a font
public void SetFont(Font systemFont, bool embedSystemFont)
Parameters
systemFont
FontThe system font
embedSystemFont
boolA flag indicating if the system font will be embedded in PDF. Only the PDF form submit buttons support embedded system fonts.
SetFont(string, FontStyle, bool)
Use a font given by its family name and style
public void SetFont(string familyName, FontStyle fontStyle, bool embedSystemFont)