Skip to main content
Skip table of contents

BaseField

BaseField Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.BaseField[[BaseField]]
  class iTextSharp.text.pdf.BaseField abstractStyle;
  end

Members

Properties

Protected properties
TypeNameMethods
BaseFontRealFontget
Public properties
TypeNameMethods
intAlignmentget, set
BaseColorBackgroundColorget, set
BaseColorBorderColorget, set
intBorderStyleget, set
floatBorderWidthget, set
RectangleBoxget, set
stringFieldNameget, set
BaseFontFontget, set
floatFontSizeget, set
intMaxCharacterLengthget, set
intOptionsget, set
intRotationget, set
stringTextget, set
BaseColorTextColorget, set
intVisibilityget, set
PdfWriterWriterget, set

Methods

Protected methods
Public methods
ReturnsName
voidSetRotationFromPage(Rectangle page)
Protected Static methods
ReturnsName
List<string>BreakLines(List<string> breaks, BaseFont font, float fontSize, float width)
List<string>GetHardBreaks(string text)
voidTrimRight(StringBuilder buf)
Public Static methods
ReturnsName
voidMoveFields(PdfDictionary from, PdfDictionary to)

Details

Constructors

BaseField

Source code

public BaseField(PdfWriter writer, Rectangle box, string fieldName)
Arguments
TypeNameDescription
PdfWriterwriter
Rectanglebox
stringfieldName

Methods

GetBorderAppearance

Source code

protected virtual PdfAppearance GetBorderAppearance()
GetHardBreaks

Source code

protected static List<string> GetHardBreaks(string text)
Arguments
TypeNameDescription
stringtext
TrimRight

Source code

protected static void TrimRight(StringBuilder buf)
Arguments
TypeNameDescription
StringBuilderbuf
BreakLines

Source code

protected static List<string> BreakLines(List<string> breaks, BaseFont font, float fontSize, float width)
Arguments
TypeNameDescription
List<string>breaks
BaseFontfont
floatfontSize
floatwidth
SetRotationFromPage

Source code

public virtual void SetRotationFromPage(Rectangle page)
Arguments
TypeNameDescription
Rectanglepage
MoveFields

Source code

public static void MoveFields(PdfDictionary from, PdfDictionary to)
Arguments
TypeNameDescription
PdfDictionaryfrom
PdfDictionaryto

Properties

RealFont
protected virtual BaseFont RealFont { get; }
BorderWidth
public virtual float BorderWidth { get; set; }
BorderStyle
public virtual int BorderStyle { get; set; }
BorderColor
public virtual BaseColor BorderColor { get; set; }
BackgroundColor
public virtual BaseColor BackgroundColor { get; set; }
TextColor
public virtual BaseColor TextColor { get; set; }
Font
public virtual BaseFont Font { get; set; }
FontSize
public virtual float FontSize { get; set; }
Alignment
public virtual int Alignment { get; set; }
Text
public virtual string Text { get; set; }
Box
public virtual Rectangle Box { get; set; }
Rotation
public virtual int Rotation { get; set; }
Visibility
public virtual int Visibility { get; set; }
FieldName
public virtual string FieldName { get; set; }
Options
public virtual int Options { get; set; }
MaxCharacterLength
public virtual int MaxCharacterLength { get; set; }
Writer
public virtual PdfWriter Writer { get; set; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.