C# 클래스 iTextSharp.text.DocWriter

An abstract Writer class for documents.
DocWriter is the abstract class of several writers such as PdfWriter and HtmlWriter. A DocWriter can be added as a DocListener to a certain Document by getting an instance (see method GetInstance() in the specific writer-classes). Every Element added to the original Document will be written to the stream of the listening DocWriter.
상속: IDocListener
파일 보기 프로젝트 열기: mapo80/iTextSharp-Monotouch

보호된 프로퍼티들

프로퍼티 타입 설명
closeStream bool
document Document
open bool
os iTextSharp.text.pdf.OutputStreamCounter
pageSize Rectangle
pause bool

공개 메소드들

메소드 설명
Add ( IElement element ) : bool

Signals that an Element was added to the Document.

This method should be overriden in the specific DocWriter classes derived from this abstract class.

Close ( ) : void

Signals that the Document was closed and that no other Elements will be added.

Dispose ( ) : void
Flush ( ) : void

Flushes the Stream.

GetISOBytes ( string text ) : byte[]

Converts a string into a Byte array according to the ISO-8859-1 codepage.

IsPaused ( ) : bool
NewPage ( ) : bool

Signals that an new page has to be started.

This does nothing. Has to be overridden if needed.

Open ( ) : void

Signals that the Document was opened.

Pause ( ) : void

Let the writer know that all writing has to be paused.

ResetPageCount ( ) : void

Sets the page number to 0.

This method should be overriden in the specific DocWriter classes derived from this abstract class if they actually support the use of pagenumbers.

Resume ( ) : void

Let the writer know that writing may be resumed.

SetMarginMirroring ( bool marginMirroring ) : bool
SetMarginMirroringTopBottom ( bool MarginMirroring ) : bool
SetMargins ( float marginLeft, float marginRight, float marginTop, float marginBottom ) : bool

Sets the margins.

This does nothing. Has to be overridden if needed.

SetPageSize ( Rectangle pageSize ) : bool

Sets the pagesize.

보호된 메소드들

메소드 설명
AddTabs ( int indent ) : void

Writes a number of tabs.

DocWriter ( ) : System
DocWriter ( Document document, Stream os ) : System

Constructs a DocWriter.

Write ( string str ) : void

Writes a string to the stream.

Write ( string key, string value ) : void

Writes a key-value pair to the stream.

WriteEnd ( ) : void

Writes an endtag to the stream.

WriteEnd ( string tag ) : void

Writes an endtag to the stream.

WriteMarkupAttributes ( Properties markup ) : bool

Writes the markup attributes of the specified MarkupAttributes object to the stream.

WriteStart ( string tag ) : void

Writes a starttag to the stream.

메소드 상세

Add() 공개 메소드

Signals that an Element was added to the Document.
This method should be overriden in the specific DocWriter classes derived from this abstract class.
public Add ( IElement element ) : bool
element IElement
리턴 bool

AddTabs() 보호된 메소드

Writes a number of tabs.
protected AddTabs ( int indent ) : void
indent int the number of tabs to add
리턴 void

Close() 공개 메소드

Signals that the Document was closed and that no other Elements will be added.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DocWriter() 보호된 메소드

protected DocWriter ( ) : System
리턴 System

DocWriter() 보호된 메소드

Constructs a DocWriter.
protected DocWriter ( Document document, Stream os ) : System
document Document The Document that has to be written
os Stream The Stream the writer has to write to.
리턴 System

Flush() 공개 메소드

Flushes the Stream.
public Flush ( ) : void
리턴 void

GetISOBytes() 공개 정적인 메소드

Converts a string into a Byte array according to the ISO-8859-1 codepage.
public static GetISOBytes ( string text ) : byte[]
text string the text to be converted
리턴 byte[]

IsPaused() 공개 메소드

public IsPaused ( ) : bool
리턴 bool

NewPage() 공개 메소드

Signals that an new page has to be started.
This does nothing. Has to be overridden if needed.
public NewPage ( ) : bool
리턴 bool

Open() 공개 메소드

Signals that the Document was opened.
public Open ( ) : void
리턴 void

Pause() 공개 메소드

Let the writer know that all writing has to be paused.
public Pause ( ) : void
리턴 void

ResetPageCount() 공개 메소드

Sets the page number to 0.
This method should be overriden in the specific DocWriter classes derived from this abstract class if they actually support the use of pagenumbers.
public ResetPageCount ( ) : void
리턴 void

Resume() 공개 메소드

Let the writer know that writing may be resumed.
public Resume ( ) : void
리턴 void

SetMarginMirroring() 공개 메소드

public SetMarginMirroring ( bool marginMirroring ) : bool
marginMirroring bool
리턴 bool

SetMarginMirroringTopBottom() 공개 메소드

public SetMarginMirroringTopBottom ( bool MarginMirroring ) : bool
MarginMirroring bool
리턴 bool

SetMargins() 공개 메소드

Sets the margins.
This does nothing. Has to be overridden if needed.
public SetMargins ( float marginLeft, float marginRight, float marginTop, float marginBottom ) : bool
marginLeft float the margin on the left
marginRight float the margin on the right
marginTop float the margin on the top
marginBottom float the margin on the bottom
리턴 bool

SetPageSize() 공개 메소드

Sets the pagesize.
public SetPageSize ( Rectangle pageSize ) : bool
pageSize Rectangle the new pagesize
리턴 bool

Write() 보호된 메소드

Writes a string to the stream.
protected Write ( string str ) : void
str string the string to write
리턴 void

Write() 보호된 메소드

Writes a key-value pair to the stream.
protected Write ( string key, string value ) : void
key string the name of an attribute
value string the value of an attribute
리턴 void

WriteEnd() 보호된 메소드

Writes an endtag to the stream.
protected WriteEnd ( ) : void
리턴 void

WriteEnd() 보호된 메소드

Writes an endtag to the stream.
protected WriteEnd ( string tag ) : void
tag string the name of the tag
리턴 void

WriteMarkupAttributes() 보호된 메소드

Writes the markup attributes of the specified MarkupAttributes object to the stream.
protected WriteMarkupAttributes ( Properties markup ) : bool
markup System.util.Properties
리턴 bool

WriteStart() 보호된 메소드

Writes a starttag to the stream.
protected WriteStart ( string tag ) : void
tag string the name of the tag
리턴 void

프로퍼티 상세

closeStream 보호되어 있는 프로퍼티

protected bool closeStream
리턴 bool

document 보호되어 있는 프로퍼티

This is the document that has to be written.
protected Document,iTextSharp.text document
리턴 Document

open 보호되어 있는 프로퍼티

Is the writer open for writing?
protected bool open
리턴 bool

os 보호되어 있는 프로퍼티

The stream of this writer.
protected OutputStreamCounter,iTextSharp.text.pdf os
리턴 iTextSharp.text.pdf.OutputStreamCounter

pageSize 보호되어 있는 프로퍼티

The pageSize.
protected Rectangle,iTextSharp.text pageSize
리턴 Rectangle

pause 보호되어 있는 프로퍼티

Do we have to pause all writing actions?
protected bool pause
리턴 bool