SequentialField
Displays a counter shared by sequence fields with the same identifier, optionally restarting after a heading level.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class SequentialField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldSequentialField
Implements:
Inherited Members
Constructors
Creates a sequence field with no sequence identifier.
public SequentialField()
Fields
Identifies the field property that stores the optional restart heading level.
public static readonly FieldPropertyDefinition RestartCountingOnHeadingLevelProperty
Identifies the field property that groups sequence counters.
public static readonly FieldPropertyDefinition SequenceIDProperty
Properties
Gets the name of the field type.
public override string FieldTypeName { get; }
Overrides:
Gets or sets the heading level used as a sequence restart point.
[XamlSerializable]
public int? RestartCountingOnHeadingLevel { get; set; }
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.
[XamlSerializable]
public string SequenceID { get; set; }
Methods
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
protected override void BuildCodeOverride()
Overrides:
Copies all properties from another field of the same type.
public override void CopyPropertiesFrom(Field fromField)
The other field, which has to be of the same type as the current instance.
Overrides:
Copies the field-specific properties from a FieldCodeExpression.
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
The field code expression.
Overrides:
Creates a new instance of the current field class.
Builds the result fragment of the field.
protected override DocumentFragment GetResultFragment()
The result fragment.
Overrides: