C# 클래스 Aspose.Words.Examples.CSharp.Programming_Documents.Working_With_Document.ExtractContentUsingDocumentVisitor.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.IO
VisitBodyEnd ( Body body ) : VisitorAction
VisitBodyStart ( Body body ) : VisitorAction
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.IO
리턴 System.IO

VisitBodyEnd() 공개 메소드

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

VisitBodyStart() 공개 메소드

public VisitBodyStart ( Body body ) : VisitorAction
body Body
리턴 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