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

Sequence Field

SeqField is a Field element that sequally numbers chapters, tables, figures, and other items in the document. If you add, delete, or move an item and its respective Sequence field, you can update remaining Seq fields in the document to reflect the new sequence.

Field Syntax

This is how the syntax of a Sequence field looks like:

{ SEQ Identifier [Bookmark] [Switches]}

Seq identifier

Every SEQ code needs an identifier to tag each sequence or list. Identifiers must start with a letter and is limited to a 40 characters(letters, numbers, and underscores).


Include a bookmark name to refer to an item elsewhere in the document.


Switches are a way for the code fragment to specify formatting for the result of the field. More information is available in the Syntax and Switches section of the Fields article.

The possible switches for a Sequence field are:

Switch Description
\c Repeats the closest preceding sequence number.
\h Hides the field result.
\n Inserts the next sequence number for the specified number.
\r n Resets the sequence number to the specified number.
\s Resets the sequence number at the heading level following the "s".


Inserting a SEQ fields can be easily achieved when inserting number to tables, figures, and other items in a document.

[C#] Example 1: Insert Sequence field using InsertField() method__

The suggested approach for inserting code fields is by using RadFlowDocumentEditor. The InsertField() method accepts code as a first argument and the result as a second argument.

editor.InsertText("Figure ");

editor.InsertField("SEQ Image" , "Update Figure Number");

See Also

In this article