Class PdfStyledField
Represents form's field with style parameters.
Implements
Inherited Members
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public abstract class PdfStyledField : PdfField, IPdfWrapper, INotifyPropertyChanged
Constructors
PdfStyledField(PdfPageBase, String)
Initializes a new instance of the PdfStyledField class with the specific page and name.
Declaration
public PdfStyledField(PdfPageBase page, string name)
Parameters
Type | Name | Description |
---|---|---|
PdfPageBase | page | The page where the field should be placed. |
System.String | name | The name. |
Properties
Actions
Gets the actions of the field.[Read-Only]
Declaration
public PdfFieldActions Actions { get; }
Property Value
Type | Description |
---|---|
PdfFieldActions | The actions. |
BackColor
Gets or sets the color of the background.
Declaration
public PdfColor BackColor { get; set; }
Property Value
Type | Description |
---|---|
PdfColor | The color of the background. |
BorderColor
Gets or sets the color of the border.
Declaration
public PdfColor BorderColor { get; set; }
Property Value
Type | Description |
---|---|
PdfColor | The color of the border. |
BorderStyle
Gets or sets the border style.
Declaration
public PdfBorderStyle BorderStyle { get; set; }
Property Value
Type | Description |
---|---|
PdfBorderStyle | The border style. |
BorderWidth
Gets or sets the width of the border.
Declaration
public float BorderWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The width of the border. |
Bounds
Gets or sets the bounds.
Declaration
public virtual RectangleF Bounds { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.RectangleF | The bounds. |
Font
Gets or sets the font.
Declaration
public PdfFont Font { get; set; }
Property Value
Type | Description |
---|---|
PdfFont | The font. |
ForeColor
Gets or sets the color of the text.
Declaration
public PdfColor ForeColor { get; set; }
Property Value
Type | Description |
---|---|
PdfColor | The color of the text. |
HighlightMode
Gets or sets the highlighting mode.
Declaration
public PdfHighlightMode HighlightMode { get; set; }
Property Value
Type | Description |
---|---|
PdfHighlightMode | The highlighting mode. |
Location
Gets or sets the location of the field.
Declaration
public PointF Location { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.PointF | The location. |
RotationAngle
Gets and sets the Rotation angle in the form fields
Declaration
public int RotationAngle { get; set; }
Property Value
Type |
---|
System.Int32 |
Size
Gets or sets the size of the field.
Declaration
public SizeF Size { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.SizeF | The size. |
TextAlignment
Gets or sets the text alignment.
Declaration
public PdfTextAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
PdfTextAlignment | The text alignment. |
Remarks
This property is meaningful for fields containing variable text only. (i.e. PdfTextBoxField, PdfListBoxField and PdfComboBoxField).
Visibility
Gets or sets the form field visibility
Declaration
public PdfFormFieldVisibility Visibility { get; set; }
Property Value
Type |
---|
PdfFormFieldVisibility |
Visible
Gets or sets a value indicating whether this PdfStyledField is visible.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
DefineDefaultAppearance()
Defines the default appearance.
Declaration
protected override void DefineDefaultAppearance()
Overrides
Initialize()
Initializes an instance.
Declaration
protected override void Initialize()
Overrides
ObtainFont()
Gets the font. If font is undefined default font will be used.
Declaration
protected PdfFont ObtainFont()
Returns
Type | Description |
---|---|
PdfFont | font |