iText 5

PdfChunk

PdfChunk Public class

Diagram

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

Members

Properties

Internal properties

Type

Name

Methods

BaseColor

Color

get

string

Encoding

get

PdfFont

Font

get

Image

Image

get

float

ImageHeight

get

float

ImageOffsetX

get, set

float

ImageOffsetY

get, set

float

ImageWidth

get

int

Length

get

int

LengthUtf32

get

TabStop

TabStop

get, set

string

Value

set

Public properties

Type

Name

Methods

bool

ChangeLeading

get

float

ImageScalePercentage

get, set

float

Leading

get

float

TextRise

get

Methods

Public methods

Returns

Name

int

GetUnicodeEquivalent

(int c)

float

GetWidthCorrected

(float charSpacing, float wordSpacing)

bool

IsNewlineSplit

()

string

ToString

()

float

TrimFirstSpace

()

float

TrimLastSpace

()

Protected methods

Returns

Name

int

GetWord

(string text, int start)

Internal methods

Returns

Name

void

AdjustLeft

(float newValue)

object

GetAttribute

(string name)

float

GetCharWidth

(int c)

float

Height

()

bool

IsAttribute

(string name)

bool

IsExtSplitCharacter

(int start, int current, int end, char``[] cc,

PdfChunk

[] ck)

bool

IsHorizontalSeparator

()

bool

IsImage

()

bool

IsSeparator

()

bool

IsSpecialEncoding

()

bool

IsStroked

()

bool

IsTab

()

PdfChunk

Split

(float width)

string

Trim

(string str)

PdfChunk

Truncate

(float width)

float

Width

(...)

Internal Static methods

Returns

Name

TabStop

GetTabStop

(

PdfChunk

tab, float tabPosition)

Public Static methods

Returns

Name

bool

NoPrint

(int c)

Details

Constructors

PdfChunk [1/3]

Source code

internal PdfChunk(string str, PdfChunk other)

Arguments

Type

Name

Description

string

str

PdfChunk

other

PdfChunk [2/3]

Source code

internal PdfChunk(Chunk chunk, PdfAction action)

Arguments

Type

Name

Description

Chunk

chunk

PdfAction

action

PdfChunk [3/3]

Source code

internal PdfChunk(Chunk chunk, PdfAction action, TabSettings tabSettings)

Arguments

Type

Name

Description

Chunk

chunk

PdfAction

action

TabSettings

tabSettings

Methods

GetUnicodeEquivalent

Source code

public virtual int GetUnicodeEquivalent(int c)

Arguments

Type

Name

Description

int

c

GetWord

Source code

protected virtual int GetWord(string text, int start)

Arguments

Type

Name

Description

string

text

int

start

Split

Source code

internal PdfChunk Split(float width)

Arguments

Type

Name

Description

float

width

Truncate

Source code

internal PdfChunk Truncate(float width)

Arguments

Type

Name

Description

float

width

Width [1/2]

Source code

internal float Width()

Width [2/2]

Source code

internal float Width(string str)

Arguments

Type

Name

Description

string

str

Height

Source code

internal float Height()

IsNewlineSplit

Source code

public virtual bool IsNewlineSplit()

GetWidthCorrected

Source code

public virtual float GetWidthCorrected(float charSpacing, float wordSpacing)

Arguments

Type

Name

Description

float

charSpacing

float

wordSpacing

TrimLastSpace

Source code

public virtual float TrimLastSpace()

TrimFirstSpace

Source code

public virtual float TrimFirstSpace()

GetAttribute

Source code

internal object GetAttribute(string name)

Arguments

Type

Name

Description

string

name

IsAttribute

Source code

internal bool IsAttribute(string name)

Arguments

Type

Name

Description

string

name

IsStroked

Source code

internal bool IsStroked()

IsSeparator

Source code

internal bool IsSeparator()

IsHorizontalSeparator

Source code

internal bool IsHorizontalSeparator()

IsTab

Source code

internal bool IsTab()

AdjustLeft

Source code

internal void AdjustLeft(float newValue)

Arguments

Type

Name

Description

float

newValue

GetTabStop

Source code

internal static TabStop GetTabStop(PdfChunk tab, float tabPosition)

Arguments

Type

Name

Description

PdfChunk

tab

float

tabPosition

IsImage

Source code

internal bool IsImage()

ToString

Source code

public override string ToString()

IsSpecialEncoding

Source code

internal bool IsSpecialEncoding()

IsExtSplitCharacter

Source code

internal bool IsExtSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck)

Arguments

Type

Name

Description

int

start

int

current

int

end

char``[]

cc

PdfChunk

[]

ck

Trim

Source code

internal string Trim(string str)

Arguments

Type

Name

Description

string

str

GetCharWidth

Source code

internal float GetCharWidth(int c)

Arguments

Type

Name

Description

int

c

NoPrint

Source code

public static bool NoPrint(int c)

Arguments

Type

Name

Description

int

c

Properties

Font

internal PdfFont Font { get; }

Color

internal BaseColor Color { get; }

TextRise

public virtual float TextRise { get; }

TabStop

internal TabStop TabStop { get; set; }

Image

internal Image Image { get; }

ImageHeight

internal float ImageHeight { get; }

ImageWidth

internal float ImageWidth { get; }

ImageScalePercentage

public virtual float ImageScalePercentage { get; set; }

ImageOffsetX

internal float ImageOffsetX { get; set; }

ImageOffsetY

internal float ImageOffsetY { get; set; }

Value

internal string Value { set; }

Encoding

internal string Encoding { get; }

Length

internal int Length { get; }

LengthUtf32

internal int LengthUtf32 { get; }

ChangeLeading

public virtual bool ChangeLeading { get; }

Leading

public virtual float Leading { get; }

Generated with ModularDoc