C# 클래스 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.
상속: IElement, IAccessibleElement
파일 보기 프로젝트 열기: mapo80/iTextSharp-Monotouch 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LINEHEIGHT String
NEWLINE Chunk
NEXTPAGE Chunk

보호된 프로퍼티들

프로퍼티 타입 설명
attributes object>.Dictionary
content StringBuilder
font Font

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Chunk ( ) : System
SetAttribute ( string name, Object obj ) : Chunk

Sets an arbitrary attribute.

메소드 상세

Append() 공개 메소드

appends some text to this Chunk.
public Append ( string str ) : StringBuilder
str string a string
리턴 StringBuilder

Chunk() 공개 메소드

public Chunk ( Chunk ck ) : System
ck Chunk
리턴 System

Chunk() 공개 메소드

public Chunk ( IDrawInterface separator ) : System
separator IDrawInterface
리턴 System

Chunk() 공개 메소드

public Chunk ( IDrawInterface separator, bool vertical ) : System
separator IDrawInterface
vertical bool
리턴 System

Chunk() 공개 메소드

public Chunk ( IDrawInterface separator, float tabPosition ) : System
separator IDrawInterface
tabPosition float
리턴 System

Chunk() 공개 메소드

public Chunk ( IDrawInterface separator, float tabPosition, bool newline ) : System
separator IDrawInterface
tabPosition float
newline bool
리턴 System

Chunk() 공개 메소드

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
리턴 System

Chunk() 공개 메소드

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
리턴 System

Chunk() 공개 메소드

public Chunk ( char c ) : System
c char
리턴 System

Chunk() 공개 메소드

public Chunk ( char c, Font font ) : System
c char
font Font
리턴 System

Chunk() 공개 메소드

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

Chunk() 공개 메소드

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
리턴 System

GetCharacterSpacing() 공개 메소드

public GetCharacterSpacing ( ) : float
리턴 float

GetHyphenation() 공개 메소드

public GetHyphenation ( ) : IHyphenationEvent
리턴 IHyphenationEvent

GetImage() 공개 메소드

Returns the image.
public GetImage ( ) : Image
리턴 Image

GetTextRise() 공개 메소드

public GetTextRise ( ) : float
리턴 float

GetWidthPoint() 공개 메소드

public GetWidthPoint ( ) : float
리턴 float

HasAttributes() 공개 메소드

Checks the attributes of this Chunk.
public HasAttributes ( ) : bool
리턴 bool

IsContent() 공개 메소드

public IsContent ( ) : bool
리턴 bool

IsEmpty() 공개 메소드

Checks is this Chunk is empty.
public IsEmpty ( ) : bool
리턴 bool

IsNestable() 공개 메소드

public IsNestable ( ) : bool
리턴 bool

Process() 공개 메소드

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

SetAction() 공개 메소드

Sets an action for this Chunk.
public SetAction ( PdfAction action ) : Chunk
action iTextSharp.text.pdf.PdfAction the action
리턴 Chunk

SetAnchor() 공개 메소드

Sets an anchor for this Chunk.
public SetAnchor ( Uri url ) : Chunk
url System.Uri the Uri to link to
리턴 Chunk

SetAnchor() 공개 메소드

Sets an anchor for this Chunk.
public SetAnchor ( string url ) : Chunk
url string the url to link to
리턴 Chunk

SetAnnotation() 공개 메소드

Sets a generic annotation to this Chunk.
public SetAnnotation ( PdfAnnotation annotation ) : Chunk
annotation iTextSharp.text.pdf.PdfAnnotation the annotation
리턴 Chunk

SetBackground() 공개 메소드

Sets the color of the background Chunk.
public SetBackground ( BaseColor color ) : Chunk
color BaseColor the color of the background
리턴 Chunk

SetBackground() 공개 메소드

public SetBackground ( BaseColor color, float extraLeft, float extraBottom, float extraRight, float extraTop ) : Chunk
color BaseColor
extraLeft float
extraBottom float
extraRight float
extraTop float
리턴 Chunk

SetCharacterSpacing() 공개 메소드

public SetCharacterSpacing ( float charSpace ) : Chunk
charSpace float
리턴 Chunk

SetGenericTag() 공개 메소드

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
리턴 Chunk

SetHorizontalScaling() 공개 메소드

public SetHorizontalScaling ( float scale ) : Chunk
scale float
리턴 Chunk

SetHyphenation() 공개 메소드

sets the hyphenation engine to this Chunk.
public SetHyphenation ( IHyphenationEvent hyphenation ) : Chunk
hyphenation IHyphenationEvent the hyphenation engine
리턴 Chunk

SetLocalDestination() 공개 메소드

Sets a local destination for this Chunk.
public SetLocalDestination ( string name ) : Chunk
name string the name for this destination
리턴 Chunk

SetLocalGoto() 공개 메소드

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
리턴 Chunk

SetNewPage() 공개 메소드

Sets a new page tag.
public SetNewPage ( ) : Chunk
리턴 Chunk

SetRemoteGoto() 공개 메소드

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
리턴 Chunk

SetRemoteGoto() 공개 메소드

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
리턴 Chunk

SetSkew() 공개 메소드

public SetSkew ( float alpha, float beta ) : Chunk
alpha float
beta float
리턴 Chunk

SetSplitCharacter() 공개 메소드

Sets the split characters.
public SetSplitCharacter ( ISplitCharacter splitCharacter ) : Chunk
splitCharacter ISplitCharacter the SplitCharacter interface
리턴 Chunk

SetTextRenderMode() 공개 메소드

public SetTextRenderMode ( int mode, float strokeWidth, BaseColor strokeColor ) : Chunk
mode int
strokeWidth float
strokeColor BaseColor
리턴 Chunk

SetTextRise() 공개 메소드

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
리턴 Chunk

SetUnderline() 공개 메소드

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
리턴 Chunk

SetUnderline() 공개 메소드

public SetUnderline ( float thickness, float yPosition ) : Chunk
thickness float
yPosition float
리턴 Chunk

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

createTabspace() 공개 정적인 메소드

public static createTabspace ( ) : Chunk
리턴 Chunk

createTabspace() 공개 정적인 메소드

public static createTabspace ( float spacing ) : Chunk
spacing float
리턴 Chunk

createWhitespace() 공개 정적인 메소드

public static createWhitespace ( String content ) : Chunk
content String
리턴 Chunk

createWhitespace() 공개 정적인 메소드

public static createWhitespace ( String content, bool preserve ) : Chunk
content String
preserve bool
리턴 Chunk

isTabspace() 공개 메소드

public isTabspace ( ) : bool
리턴 bool

isWhitespace() 공개 메소드

public isWhitespace ( ) : bool
리턴 bool

setLineHeight() 공개 메소드

public setLineHeight ( float lineheight ) : Chunk
lineheight float
리턴 Chunk

프로퍼티 상세

LINEHEIGHT 공개적으로 정적으로 프로퍼티

public static String LINEHEIGHT
리턴 String

NEWLINE 공개적으로 정적으로 프로퍼티

This is a Chunk containing a newline.
public static Chunk,iTextSharp.text NEWLINE
리턴 Chunk

NEXTPAGE 공개적으로 정적으로 프로퍼티

public static Chunk,iTextSharp.text NEXTPAGE
리턴 Chunk

attributes 보호되어 있는 프로퍼티

Contains some of the attributes for this Chunk.
protected Dictionary attributes
리턴 object>.Dictionary

content 보호되어 있는 프로퍼티

This is the content of this chunk of text.
protected StringBuilder content
리턴 StringBuilder

font 보호되어 있는 프로퍼티

This is the Font of this chunk of text.
protected Font,iTextSharp.text font
리턴 Font