C# Class iTextSharp.text.Chunk

This is the smallest significant part of text that can be added to a document.
Most elements can be divided in one or more Chunks. A chunk is a string with a certain Font. all other layoutparameters should be defined in the object to which this chunk of text is added.
Inheritance: IElement, IAccessibleElement
Afficher le fichier Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Méthodes publiques

Свойство Type Description
LINEHEIGHT String
NEWLINE Chunk
NEXTPAGE Chunk

Protected Properties

Свойство Type Description
attributes object>.Dictionary
content StringBuilder
font Font

Méthodes publiques

Méthode Description
Append ( string str ) : StringBuilder

appends some text to this Chunk.

Chunk ( Chunk ck ) : System
Chunk ( IDrawInterface separator ) : System
Chunk ( IDrawInterface separator, bool vertical ) : System
Chunk ( IDrawInterface separator, float tabPosition ) : System
Chunk ( IDrawInterface separator, float tabPosition, bool newline ) : System
Chunk ( Image image, float offsetX, float offsetY ) : System

Constructs a chunk containing an Image.

Chunk ( Image image, float offsetX, float offsetY, bool changeLeading ) : System

Constructs a chunk containing an Image.

Chunk ( char c ) : System
Chunk ( char c, Font font ) : System
Chunk ( string content ) : System

Constructs a chunk of text with a certain content, without specifying a Font.

Chunk ( string content, Font font ) : System

Constructs a chunk of text with a certain content and a certain Font.

GetCharacterSpacing ( ) : float
GetHyphenation ( ) : IHyphenationEvent
GetImage ( ) : Image

Returns the image.

GetTextRise ( ) : float
GetWidthPoint ( ) : float
HasAttributes ( ) : bool

Checks the attributes of this Chunk.

IsContent ( ) : bool
IsEmpty ( ) : bool

Checks is this Chunk is empty.

IsNestable ( ) : bool
Process ( IElementListener listener ) : bool

Processes the element by adding it (or the different parts) to an IElementListener.

SetAction ( PdfAction action ) : Chunk

Sets an action for this Chunk.

SetAnchor ( Uri url ) : Chunk

Sets an anchor for this Chunk.

SetAnchor ( string url ) : Chunk

Sets an anchor for this Chunk.

SetAnnotation ( PdfAnnotation annotation ) : Chunk

Sets a generic annotation to this Chunk.

SetBackground ( BaseColor color ) : Chunk

Sets the color of the background Chunk.

SetBackground ( BaseColor color, float extraLeft, float extraBottom, float extraRight, float extraTop ) : Chunk
SetCharacterSpacing ( float charSpace ) : Chunk
SetGenericTag ( string text ) : Chunk

Sets the generic tag Chunk.

The text for this tag can be retrieved with PdfPageEvent.

SetHorizontalScaling ( float scale ) : Chunk
SetHyphenation ( IHyphenationEvent hyphenation ) : Chunk

sets the hyphenation engine to this Chunk.

SetLocalDestination ( string name ) : Chunk

Sets a local destination for this Chunk.

SetLocalGoto ( string name ) : Chunk

Sets a local goto for this Chunk.

There must be a local destination matching the name.

SetNewPage ( ) : Chunk

Sets a new page tag.

SetRemoteGoto ( string filename, int page ) : Chunk

Sets a goto for a remote destination for this Chunk.

SetRemoteGoto ( string filename, string name ) : Chunk

Sets a goto for a remote destination for this Chunk.

SetSkew ( float alpha, float beta ) : Chunk
SetSplitCharacter ( ISplitCharacter splitCharacter ) : Chunk

Sets the split characters.

SetTextRenderMode ( int mode, float strokeWidth, BaseColor strokeColor ) : Chunk
SetTextRise ( float rise ) : Chunk

Sets the text displacement relative to the baseline. Positive values rise the text, negative values lower the text.

It can be used to implement sub/basescript.

SetUnderline ( BaseColor color, float thickness, float thicknessMul, float yPosition, float yPositionMul, int cap ) : Chunk
SetUnderline ( float thickness, float yPosition ) : Chunk
ToString ( ) : string
createTabspace ( ) : Chunk
createTabspace ( float spacing ) : Chunk
createWhitespace ( String content ) : Chunk
createWhitespace ( String content, bool preserve ) : Chunk
isTabspace ( ) : bool
isWhitespace ( ) : bool
setLineHeight ( float lineheight ) : Chunk

Private Methods

Méthode Description
Chunk ( ) : System
SetAttribute ( string name, Object obj ) : Chunk

Sets an arbitrary attribute.

Method Details

Append() public méthode

appends some text to this Chunk.
public Append ( string str ) : StringBuilder
str string a string
Résultat StringBuilder

Chunk() public méthode

public Chunk ( Chunk ck ) : System
ck Chunk
Résultat System

Chunk() public méthode

public Chunk ( IDrawInterface separator ) : System
separator IDrawInterface
Résultat System

Chunk() public méthode

public Chunk ( IDrawInterface separator, bool vertical ) : System
separator IDrawInterface
vertical bool
Résultat System

Chunk() public méthode

public Chunk ( IDrawInterface separator, float tabPosition ) : System
separator IDrawInterface
tabPosition float
Résultat System

Chunk() public méthode

public Chunk ( IDrawInterface separator, float tabPosition, bool newline ) : System
separator IDrawInterface
tabPosition float
newline bool
Résultat System

Chunk() public méthode

Constructs a chunk containing an Image.
public Chunk ( Image image, float offsetX, float offsetY ) : System
image Image the image
offsetX float the image offset in the x direction
offsetY float the image offset in the y direction
Résultat System

Chunk() public méthode

Constructs a chunk containing an Image.
public Chunk ( Image image, float offsetX, float offsetY, bool changeLeading ) : System
image Image the image
offsetX float the image offset in the x direction
offsetY float the image offset in the y direction
changeLeading bool true if the leading has to be adapted to the image
Résultat System

Chunk() public méthode

public Chunk ( char c ) : System
c char
Résultat System

Chunk() public méthode

public Chunk ( char c, Font font ) : System
c char
font Font
Résultat System

Chunk() public méthode

Constructs a chunk of text with a certain content, without specifying a Font.
public Chunk ( string content ) : System
content string the content
Résultat System

Chunk() public méthode

Constructs a chunk of text with a certain content and a certain Font.
public Chunk ( string content, Font font ) : System
content string the content
font Font the font
Résultat System

GetCharacterSpacing() public méthode

public GetCharacterSpacing ( ) : float
Résultat float

GetHyphenation() public méthode

public GetHyphenation ( ) : IHyphenationEvent
Résultat IHyphenationEvent

GetImage() public méthode

Returns the image.
public GetImage ( ) : Image
Résultat Image

GetTextRise() public méthode

public GetTextRise ( ) : float
Résultat float

GetWidthPoint() public méthode

public GetWidthPoint ( ) : float
Résultat float

HasAttributes() public méthode

Checks the attributes of this Chunk.
public HasAttributes ( ) : bool
Résultat bool

IsContent() public méthode

public IsContent ( ) : bool
Résultat bool

IsEmpty() public méthode

Checks is this Chunk is empty.
public IsEmpty ( ) : bool
Résultat bool

IsNestable() public méthode

public IsNestable ( ) : bool
Résultat bool

Process() public méthode

Processes the element by adding it (or the different parts) to an IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener an IElementListener
Résultat bool

SetAction() public méthode

Sets an action for this Chunk.
public SetAction ( PdfAction action ) : Chunk
action iTextSharp.text.pdf.PdfAction the action
Résultat Chunk

SetAnchor() public méthode

Sets an anchor for this Chunk.
public SetAnchor ( Uri url ) : Chunk
url System.Uri the Uri to link to
Résultat Chunk

SetAnchor() public méthode

Sets an anchor for this Chunk.
public SetAnchor ( string url ) : Chunk
url string the url to link to
Résultat Chunk

SetAnnotation() public méthode

Sets a generic annotation to this Chunk.
public SetAnnotation ( PdfAnnotation annotation ) : Chunk
annotation iTextSharp.text.pdf.PdfAnnotation the annotation
Résultat Chunk

SetBackground() public méthode

Sets the color of the background Chunk.
public SetBackground ( BaseColor color ) : Chunk
color BaseColor the color of the background
Résultat Chunk

SetBackground() public méthode

public SetBackground ( BaseColor color, float extraLeft, float extraBottom, float extraRight, float extraTop ) : Chunk
color BaseColor
extraLeft float
extraBottom float
extraRight float
extraTop float
Résultat Chunk

SetCharacterSpacing() public méthode

public SetCharacterSpacing ( float charSpace ) : Chunk
charSpace float
Résultat Chunk

SetGenericTag() public méthode

Sets the generic tag Chunk.
The text for this tag can be retrieved with PdfPageEvent.
public SetGenericTag ( string text ) : Chunk
text string the text for the tag
Résultat Chunk

SetHorizontalScaling() public méthode

public SetHorizontalScaling ( float scale ) : Chunk
scale float
Résultat Chunk

SetHyphenation() public méthode

sets the hyphenation engine to this Chunk.
public SetHyphenation ( IHyphenationEvent hyphenation ) : Chunk
hyphenation IHyphenationEvent the hyphenation engine
Résultat Chunk

SetLocalDestination() public méthode

Sets a local destination for this Chunk.
public SetLocalDestination ( string name ) : Chunk
name string the name for this destination
Résultat Chunk

SetLocalGoto() public méthode

Sets a local goto for this Chunk.
There must be a local destination matching the name.
public SetLocalGoto ( string name ) : Chunk
name string the name of the destination to go to
Résultat Chunk

SetNewPage() public méthode

Sets a new page tag.
public SetNewPage ( ) : Chunk
Résultat Chunk

SetRemoteGoto() public méthode

Sets a goto for a remote destination for this Chunk.
public SetRemoteGoto ( string filename, int page ) : Chunk
filename string the file name of the destination document
page int the page of the destination to go to. First page is 1
Résultat Chunk

SetRemoteGoto() public méthode

Sets a goto for a remote destination for this Chunk.
public SetRemoteGoto ( string filename, string name ) : Chunk
filename string the file name of the destination document
name string the name of the destination to go to
Résultat Chunk

SetSkew() public méthode

public SetSkew ( float alpha, float beta ) : Chunk
alpha float
beta float
Résultat Chunk

SetSplitCharacter() public méthode

Sets the split characters.
public SetSplitCharacter ( ISplitCharacter splitCharacter ) : Chunk
splitCharacter ISplitCharacter the SplitCharacter interface
Résultat Chunk

SetTextRenderMode() public méthode

public SetTextRenderMode ( int mode, float strokeWidth, BaseColor strokeColor ) : Chunk
mode int
strokeWidth float
strokeColor BaseColor
Résultat Chunk

SetTextRise() public méthode

Sets the text displacement relative to the baseline. Positive values rise the text, negative values lower the text.
It can be used to implement sub/basescript.
public SetTextRise ( float rise ) : Chunk
rise float the displacement in points
Résultat Chunk

SetUnderline() public méthode

public SetUnderline ( BaseColor color, float thickness, float thicknessMul, float yPosition, float yPositionMul, int cap ) : Chunk
color BaseColor
thickness float
thicknessMul float
yPosition float
yPositionMul float
cap int
Résultat Chunk

SetUnderline() public méthode

public SetUnderline ( float thickness, float yPosition ) : Chunk
thickness float
yPosition float
Résultat Chunk

ToString() public méthode

public ToString ( ) : string
Résultat string

createTabspace() public static méthode

public static createTabspace ( ) : Chunk
Résultat Chunk

createTabspace() public static méthode

public static createTabspace ( float spacing ) : Chunk
spacing float
Résultat Chunk

createWhitespace() public static méthode

public static createWhitespace ( String content ) : Chunk
content String
Résultat Chunk

createWhitespace() public static méthode

public static createWhitespace ( String content, bool preserve ) : Chunk
content String
preserve bool
Résultat Chunk

isTabspace() public méthode

public isTabspace ( ) : bool
Résultat bool

isWhitespace() public méthode

public isWhitespace ( ) : bool
Résultat bool

setLineHeight() public méthode

public setLineHeight ( float lineheight ) : Chunk
lineheight float
Résultat Chunk

Property Details

LINEHEIGHT public_oe static_oe property

public static String LINEHEIGHT
Résultat String

NEWLINE public_oe static_oe property

This is a Chunk containing a newline.
public static Chunk,iTextSharp.text NEWLINE
Résultat Chunk

NEXTPAGE public_oe static_oe property

public static Chunk,iTextSharp.text NEXTPAGE
Résultat Chunk

attributes protected_oe property

Contains some of the attributes for this Chunk.
protected Dictionary attributes
Résultat object>.Dictionary

content protected_oe property

This is the content of this chunk of text.
protected StringBuilder content
Résultat StringBuilder

font protected_oe property

This is the Font of this chunk of text.
protected Font,iTextSharp.text font
Résultat Font