New to Telerik UI for WinForms? Start a free 30-day trial

Displays a counter shared by sequence fields with the same identifier, optionally restarting after a heading level.

Definition

Constructors

Creates a sequence field with no sequence identifier.

C#
public SequentialField()

Fields

Identifies this field type in field code.

C#
public static readonly string FieldType

Identifies the field property that stores the optional restart heading level.

C#
public static readonly FieldPropertyDefinition RestartCountingOnHeadingLevelProperty

Identifies the field property that groups sequence counters.

C#
public static readonly FieldPropertyDefinition SequenceIDProperty

Properties

Gets the name of the field type.

C#
public override string FieldTypeName { get; }

Overrides: Field.FieldTypeName

Gets or sets the heading level used as a sequence restart point.

C#
[XamlSerializable]
public int? RestartCountingOnHeadingLevel { get; set; }
Exceptions: InvalidOperationException

The value is null and the unchanged-value check is bypassed.

The getter recognizes levels 1 through 9. When its unchanged-value check is bypassed, the setter clears a non-null value and throws InvalidOperationException for null.

Gets or sets the identifier shared by sequence fields that contribute to the same counter.

C#
[XamlSerializable]
public string SequenceID { get; set; }

Methods

Builds the field-specific parts of the code fragment, using the current CodeBuilder.

C#
protected override void BuildCodeOverride()

Overrides: CodeBasedField.BuildCodeOverride()

Copies all properties from another field of the same type.

C#
public override void CopyPropertiesFrom(Field fromField)
Parameters:fromFieldField

The other field, which has to be of the same type as the current instance.

Overrides: CodeBasedField.CopyPropertiesFrom(Field)

Copies the field-specific properties from a FieldCodeExpression.

C#
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters:fieldCodeExpressionFieldCodeExpression

The field code expression.

Overrides: CodeBasedField.CopyPropertiesFromCodeExpression(FieldCodeExpression)

Creates a new instance of the current field class.

C#
public override Field CreateInstance()
Returns:

Field

The new field instance.

Overrides: Field.CreateInstance()

Builds the result fragment of the field.

C#
protected override DocumentFragment GetResultFragment()
Returns:

DocumentFragment

The result fragment.

Overrides: Field.GetResultFragment()