C# 클래스 iTextSharp.text.xml.ITextHandler

The iTextHandler-class maps several XHTML-tags to iText-objects.
상속: ParserBase
파일 보기 프로젝트 열기: red-gate/iTextSharp-4.1.6 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
chapters int
controlOpenClose bool
currentChunk iTextSharp.text.Chunk
document IDocListener
ignore bool
myTags System.Collections.Hashtable
stack System.Collections.Stack

공개 메소드들

메소드 설명
Characters ( string content, int start, int length ) : void

This method gets called when characters are encountered.

EndElement ( String uri, String lname, String name ) : void

This method gets called when an end tag is encountered.

HandleEndingTags ( String name ) : void

This method deals with the starting tags.

HandleStartingTags ( String name, Properties attributes ) : void

This method deals with the starting tags.

ITextHandler ( IDocListener document ) : System

Constructs a new iTextHandler that will translate all the events triggered by the parser to actions on the Document-object.

ITextHandler ( IDocListener document, Hashtable myTags ) : System
ITextHandler ( IDocListener document, HtmlTagMap myTags ) : System
ITextHandler ( IDocListener document, HtmlTagMap myTags, BaseFont bf ) : System
IgnorableWhitespace ( char ch, int start, int length ) : void

This method gets called when ignorable white space encountered.

SetControlOpenClose ( bool controlOpenClose ) : void

Sets the parameter that allows you to enable/disable the control over the Document.Open() and Document.Close() method.

If you set this parameter to true (= default), the parser will open the Document object when the start-root-tag is encountered and close it when the end-root-tag is met. If you set it to false, you have to open and close the Document object yourself.

StartElement ( String uri, String lname, String name, Hashtable attrs ) : void

This method gets called when a start tag is encountered.

보호된 메소드들

메소드 설명
AddImage ( Image img ) : void
IsDocumentRoot ( String tag ) : bool

Checks if a certain tag corresponds with the roottag.

비공개 메소드들

메소드 설명
IsNewline ( String tag ) : bool

Checks if a certain tag corresponds with the newpage-tag.

IsNewpage ( String tag ) : bool

Checks if a certain tag corresponds with the newpage-tag.

메소드 상세

AddImage() 보호된 메소드

protected AddImage ( Image img ) : void
img Image
리턴 void

Characters() 공개 메소드

This method gets called when characters are encountered.
public Characters ( string content, int start, int length ) : void
content string an array of characters
start int the start position in the array
length int the number of characters to read from the array
리턴 void

EndElement() 공개 메소드

This method gets called when an end tag is encountered.
public EndElement ( String uri, String lname, String name ) : void
uri String
lname String
name String the name of the tag that ends
리턴 void

HandleEndingTags() 공개 메소드

This method deals with the starting tags.
public HandleEndingTags ( String name ) : void
name String the name of the tag
리턴 void

HandleStartingTags() 공개 메소드

This method deals with the starting tags.
public HandleStartingTags ( String name, Properties attributes ) : void
name String the name of the tag
attributes System.util.Properties the list of attributes
리턴 void

ITextHandler() 공개 메소드

Constructs a new iTextHandler that will translate all the events triggered by the parser to actions on the Document-object.
public ITextHandler ( IDocListener document ) : System
document IDocListener this is the document on which events must be triggered
리턴 System

ITextHandler() 공개 메소드

public ITextHandler ( IDocListener document, Hashtable myTags ) : System
document IDocListener
myTags System.Collections.Hashtable
리턴 System

ITextHandler() 공개 메소드

public ITextHandler ( IDocListener document, HtmlTagMap myTags ) : System
document IDocListener
myTags iTextSharp.text.html.HtmlTagMap
리턴 System

ITextHandler() 공개 메소드

public ITextHandler ( IDocListener document, HtmlTagMap myTags, BaseFont bf ) : System
document IDocListener
myTags iTextSharp.text.html.HtmlTagMap
bf iTextSharp.text.pdf.BaseFont
리턴 System

IgnorableWhitespace() 공개 메소드

This method gets called when ignorable white space encountered.
public IgnorableWhitespace ( char ch, int start, int length ) : void
ch char an array of characters
start int the start position in the array
length int the number of characters to read from the array
리턴 void

IsDocumentRoot() 보호된 메소드

Checks if a certain tag corresponds with the roottag.
protected IsDocumentRoot ( String tag ) : bool
tag String a presumed tagname
리턴 bool

SetControlOpenClose() 공개 메소드

Sets the parameter that allows you to enable/disable the control over the Document.Open() and Document.Close() method.
If you set this parameter to true (= default), the parser will open the Document object when the start-root-tag is encountered and close it when the end-root-tag is met. If you set it to false, you have to open and close the Document object yourself.
public SetControlOpenClose ( bool controlOpenClose ) : void
controlOpenClose bool set this to false if you plan to open/close the Document yourself
리턴 void

StartElement() 공개 메소드

This method gets called when a start tag is encountered.
public StartElement ( String uri, String lname, String name, Hashtable attrs ) : void
uri String
lname String
name String the name of the tag that is encountered
attrs System.Collections.Hashtable the list of attributes
리턴 void

프로퍼티 상세

chapters 보호되어 있는 프로퍼티

Counts the number of chapters in this document.
protected int chapters
리턴 int

controlOpenClose 보호되어 있는 프로퍼티

This is a flag that can be set, if you want to open and close the Document-object yourself.
protected bool controlOpenClose
리턴 bool

currentChunk 보호되어 있는 프로퍼티

This is the current chunk to which characters can be added.
protected Chunk,iTextSharp.text currentChunk
리턴 iTextSharp.text.Chunk

document 보호되어 있는 프로퍼티

This is the resulting document.
protected IDocListener document
리턴 IDocListener

ignore 보호되어 있는 프로퍼티

This is the current chunk to which characters can be added.
protected bool ignore
리턴 bool

myTags 보호되어 있는 프로퍼티

protected Hashtable,System.Collections myTags
리턴 System.Collections.Hashtable

stack 보호되어 있는 프로퍼티

This is a Stack of objects, waiting to be added to the document.
protected Stack,System.Collections stack
리턴 System.Collections.Stack