C# 클래스 ApiExamples.ExVisitor.MyDocToTxtWriter

Simple implementation of saving a document in the plain text format. Implemented as a Visitor.
상속: DocumentVisitor
파일 보기 프로젝트 열기: aspose-words/Aspose.Words-for-.NET

공개 메소드들

메소드 설명
GetText ( ) : string

Gets the plain text of the document that was accumulated by the visitor.

MyDocToTxtWriter ( ) : System
VisitAbsolutePositionTab ( AbsolutePositionTab tab ) : VisitorAction

Called when an AbsolutePositionTab is encountered in the document.

VisitBodyEnd ( Body body ) : VisitorAction
VisitBodyStart ( Body body ) : VisitorAction
VisitBookmarkEnd ( BookmarkEnd bookmarkEnd ) : VisitorAction

Called when a BookmarkEnd is encountered in the document.

VisitBookmarkStart ( BookmarkStart bookmarkStart ) : VisitorAction

Called when a BookmarkStart is encountered in the document.

VisitFieldEnd ( FieldEnd fieldEnd ) : VisitorAction

Called when a FieldEnd node is encountered in the document.

VisitFieldSeparator ( FieldSeparator fieldSeparator ) : VisitorAction

Called when a FieldSeparator node is encountered in the document.

VisitFieldStart ( FieldStart fieldStart ) : VisitorAction

Called when a FieldStart node is encountered in the document.

VisitHeaderFooterStart ( HeaderFooter headerFooter ) : VisitorAction

Called when a HeaderFooter node is encountered in the document.

VisitParagraphEnd ( Paragraph paragraph ) : VisitorAction

Called when visiting of a Paragraph node is ended in the document.

VisitRun ( Run run ) : VisitorAction

Called when a Run node is encountered in the document.

비공개 메소드들

메소드 설명
AppendText ( string text ) : void

Adds text to the current output. Honours the enabled/disabled output flag.

메소드 상세

GetText() 공개 메소드

Gets the plain text of the document that was accumulated by the visitor.
public GetText ( ) : string
리턴 string

MyDocToTxtWriter() 공개 메소드

public MyDocToTxtWriter ( ) : System
리턴 System

VisitAbsolutePositionTab() 공개 메소드

Called when an AbsolutePositionTab is encountered in the document.
public VisitAbsolutePositionTab ( AbsolutePositionTab tab ) : VisitorAction
tab AbsolutePositionTab
리턴 VisitorAction

VisitBodyEnd() 공개 메소드

public VisitBodyEnd ( Body body ) : VisitorAction
body Body
리턴 VisitorAction

VisitBodyStart() 공개 메소드

public VisitBodyStart ( Body body ) : VisitorAction
body Body
리턴 VisitorAction

VisitBookmarkEnd() 공개 메소드

Called when a BookmarkEnd is encountered in the document.
public VisitBookmarkEnd ( BookmarkEnd bookmarkEnd ) : VisitorAction
bookmarkEnd BookmarkEnd
리턴 VisitorAction

VisitBookmarkStart() 공개 메소드

Called when a BookmarkStart is encountered in the document.
public VisitBookmarkStart ( BookmarkStart bookmarkStart ) : VisitorAction
bookmarkStart BookmarkStart
리턴 VisitorAction

VisitFieldEnd() 공개 메소드

Called when a FieldEnd node is encountered in the document.
public VisitFieldEnd ( FieldEnd fieldEnd ) : VisitorAction
fieldEnd FieldEnd
리턴 VisitorAction

VisitFieldSeparator() 공개 메소드

Called when a FieldSeparator node is encountered in the document.
public VisitFieldSeparator ( FieldSeparator fieldSeparator ) : VisitorAction
fieldSeparator FieldSeparator
리턴 VisitorAction

VisitFieldStart() 공개 메소드

Called when a FieldStart node is encountered in the document.
public VisitFieldStart ( FieldStart fieldStart ) : VisitorAction
fieldStart FieldStart
리턴 VisitorAction

VisitHeaderFooterStart() 공개 메소드

Called when a HeaderFooter node is encountered in the document.
public VisitHeaderFooterStart ( HeaderFooter headerFooter ) : VisitorAction
headerFooter HeaderFooter
리턴 VisitorAction

VisitParagraphEnd() 공개 메소드

Called when visiting of a Paragraph node is ended in the document.
public VisitParagraphEnd ( Paragraph paragraph ) : VisitorAction
paragraph Paragraph
리턴 VisitorAction

VisitRun() 공개 메소드

Called when a Run node is encountered in the document.
public VisitRun ( Run run ) : VisitorAction
run Run
리턴 VisitorAction