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

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

See Also

In this article