SectionPages Field
This field inserts the total number of pages in a section.
Field Syntax
This is how the syntax of a SectionPages field looks like:
Syntax |
---|
{ SECTIONPAGES } |
Inserting
Inserting SectionPages field is easily achieved through the RadFlowDocumentEditor's InsertField() method. It accepts code as first argument and result as second argument.
Example 1 demonstrates how you can insert a SectionPages field.
Example 1: Insert SectionPages field
editor.InsertText("Page ");
editor.InsertField("PAGE", "");
editor.InsertText(" of ");
editor.InsertField("SECTIONPAGES", "");
After updating the field the result would be "Page 3 of 19" (check Updating Fields).