Aspose::Words::DocumentVisitor::VisitFieldStart method

DocumentVisitor::VisitFieldStart method

Called when a field starts in the document.

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitFieldStart(System::SharedPtr<Aspose::Words::Fields::FieldStart> fieldStart)
ParameterTypeDescription
fieldStartSystem::SharedPtr<Aspose::Words::Fields::FieldStart>The object that is being visited.

ReturnValue

A VisitorAction value that specifies how to continue the enumeration.

Remarks

A field in a Word document consists of a field code and field value.

For example, a field that displays a page number can be represented as follows:

[FieldStart]PAGE[FieldSeparator]98[FieldEnd]

The field separator separates field code from field value in the document. Note that some fields have only field code and do not have field separator and field value.

Fields can be nested.

See Also