iText 5

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

Type

Name

Methods

BaseFont

RealFont

get

Public properties

Type

Name

Methods

int

Alignment

get, set

BaseColor

BackgroundColor

get, set

BaseColor

BorderColor

get, set

int

BorderStyle

get, set

float

BorderWidth

get, set

Rectangle

Box

get, set

string

FieldName

get, set

BaseFont

Font

get, set

float

FontSize

get, set

int

MaxCharacterLength

get, set

int

Options

get, set

int

Rotation

get, set

string

Text

get, set

BaseColor

TextColor

get, set

int

Visibility

get, set

PdfWriter

Writer

get, set

Methods

Protected methods
Public methods

Returns

Name

void

SetRotationFromPage

(

Rectangle

page)

Protected Static methods

Returns

Name

List<string>

BreakLines

(List<string> breaks,

BaseFont

font, float fontSize, float width)

List<string>

GetHardBreaks

(string text)

void

TrimRight

(StringBuilder buf)

Public Static methods

Returns

Name

void

MoveFields

(

PdfDictionary

from,

PdfDictionary

to)

Details

Constructors

BaseField

Source code

public BaseField(PdfWriter writer, Rectangle box, string fieldName)

Arguments

Type

Name

Description

PdfWriter

writer

Rectangle

box

string

fieldName

Methods

GetBorderAppearance

Source code

protected virtual PdfAppearance GetBorderAppearance()

GetHardBreaks

Source code

protected static List<string> GetHardBreaks(string text)

Arguments

Type

Name

Description

string

text

TrimRight

Source code

protected static void TrimRight(StringBuilder buf)

Arguments

Type

Name

Description

StringBuilder

buf

BreakLines

Source code

protected static List<string> BreakLines(List<string> breaks, BaseFont font, float fontSize, float width)

Arguments

Type

Name

Description

List<string>

breaks

BaseFont

font

float

fontSize

float

width

SetRotationFromPage

Source code

public virtual void SetRotationFromPage(Rectangle page)

Arguments

Type

Name

Description

Rectangle

page

MoveFields

Source code

public static void MoveFields(PdfDictionary from, PdfDictionary to)

Arguments

Type

Name

Description

PdfDictionary

from

PdfDictionary

to

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