[]
Represents SEQ field options.
A SEQ field sequentially numbers chapters, tables, figures, and other user-defined lists of items in a document.
public class SeqFieldOptions : FieldFormatOptions, IFieldOptions
Initializes a new instance of the SeqFieldOptions class.
public SeqFieldOptions(ComplexField field)
field
ComplexFieldThe ComplexField from which to load the options.
Initializes a new instance of the SeqFieldOptions class.
public SeqFieldOptions(DocumentBase doc, string id)
doc
DocumentBaseThe document whose resources to use in this instance.
id
stringThe name assigned to the series of items that are to be numbered.
Initializes a new instance of the SeqFieldOptions class.
public SeqFieldOptions(SimpleField field)
field
SimpleFieldThe SimpleField from which to load the options.
Gets or sets the field behavior.
Default value is Next.
If Bookmark property value is not null the value is Bookmark.
public SeqFieldBehavior Behavior { get; set; }
Thrown when trying to set Bookmark and property Bookmark is null or empty string.
Gets or sets the bookmark name that refers to an item elsewhere in the document rather than in the current location.
Default value is null.
public string Bookmark { get; set; }
Gets or sets whether to hide the field result.
Default value is false.
If formating options NumberFormat, NumberStyle and StringStyle are not default the property value is true.
public bool Hidden { get; set; }
Gets or sets the name assigned to the series of items that are to be numbered.
public string Id { get; set; }
Thrown when trying to set null or empty string.
Gets or sets the built-in heading style OutlineLevel at which to reset the sequence if the Behavior property is ResetAt.
Default value is Level1.
public OutlineLevel ResetAt { get; set; }
Thrown when trying to set BodyText.
Gets or sets the value to reset the sequence if the Behavior property is ResetTo.
Default value is 0.
public int ResetTo { get; set; }
Thrown when trying to set value less than 0.
Saves options to a ComplexField.
public override void Save(ComplexField field)
field
ComplexFieldThe ComplexField where to save the options.
Saves options to a SimpleField.
public override void Save(SimpleField field)
field
SimpleFieldThe SimpleField where to save the options.