C# Class ApiExamples.MergeField

Represents a facade object for a merge field in a Microsoft Word document.
Show file Open project: aspose-words/Aspose.Words-for-.NET Class Usage Examples

Private Properties

Property Type Description
FindNextSibling Node
GetTextSameParent string
MergeField System
RemoveSameParent void
UpdateFieldCode void

Private Methods

Method Description
FindNextSibling ( Node startNode, NodeType nodeType ) : Node

Goes through siblings starting from the start node until it finds a node of the specified type or null.

GetTextSameParent ( Node startNode, Node endNode ) : string

Retrieves text from start up to but not including the end node.

MergeField ( FieldStart fieldStart ) : System
RemoveSameParent ( Node startNode, Node endNode ) : void

Removes nodes from start up to but not including the end node. Start and end are assumed to have the same parent.

UpdateFieldCode ( string fieldName ) : void