Section Field
This field inserts the number of the current section.
Field Syntax
This is how the syntax of a section field looks like:
Syntax |
---|
{ SECTION } |
Inserting
Inserting a Section 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 section field.
Example 1: Insert section field
editor.InsertText("Page ");
editor.InsertField("PAGE", "");
editor.InsertText(" of Section ");
editor.InsertField("SECTION", "");
After updating the field the result would be such as "Page 4 of Section 2" (check Updating Fields).