C# Class Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Fields.FieldsHelper

Inheritance: DocumentVisitor
Datei anzeigen Open project: aspose-words/Aspose.Words-for-.NET Class Usage Examples

Public Methods

Method Description
ConvertFieldsToStaticText ( CompositeNode compositeNode, FieldType targetFieldType ) : void

Converts any fields of the specified type found in the descendants of the node into static text.

VisitFieldEnd ( FieldEnd fieldEnd ) : VisitorAction
VisitFieldSeparator ( FieldSeparator fieldSeparator ) : VisitorAction
VisitFieldStart ( FieldStart fieldStart ) : VisitorAction
VisitParagraphEnd ( Paragraph paragraph ) : VisitorAction
VisitRun ( Run run ) : VisitorAction
VisitTableStart ( Table table ) : VisitorAction

Private Methods

Method Description
CheckDepthAndRemoveNode ( Node node ) : void

Checks whether the node is inside a field or should be skipped and then removes it if necessary.

FieldsHelper ( FieldType targetFieldType ) : System

Method Details

ConvertFieldsToStaticText() public static method

Converts any fields of the specified type found in the descendants of the node into static text.
public static ConvertFieldsToStaticText ( CompositeNode compositeNode, FieldType targetFieldType ) : void
compositeNode CompositeNode The node in which all descendants of the specified FieldType will be converted to static text.
targetFieldType FieldType The FieldType of the field to convert to static text.
return void

VisitFieldEnd() public method

public VisitFieldEnd ( FieldEnd fieldEnd ) : VisitorAction
fieldEnd FieldEnd
return VisitorAction

VisitFieldSeparator() public method

public VisitFieldSeparator ( FieldSeparator fieldSeparator ) : VisitorAction
fieldSeparator FieldSeparator
return VisitorAction

VisitFieldStart() public method

public VisitFieldStart ( FieldStart fieldStart ) : VisitorAction
fieldStart FieldStart
return VisitorAction

VisitParagraphEnd() public method

public VisitParagraphEnd ( Paragraph paragraph ) : VisitorAction
paragraph Paragraph
return VisitorAction

VisitRun() public method

public VisitRun ( Run run ) : VisitorAction
run Run
return VisitorAction

VisitTableStart() public method

public VisitTableStart ( Table table ) : VisitorAction
table Table
return VisitorAction