Available for: UI for ASP.NET MVC | UI for ASP.NET AJAX | UI for Blazor | UI for WPF | UI for WinForms | UI for Xamarin | UI for WinUI | UI for ASP.NET Core | UI for .NET MAUI

New to Telerik Document Processing? Download free 30-day trial

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).

See Also

In this article