DocumentProperties
Stores document-level style values, including defaults that section properties can override.
Definition
Namespace:Telerik.WinForms.Documents.Model.Styles
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentProperties : DocumentElementPropertiesBase, IElementWithStyle
Inheritance: objectDocumentElementPropertiesBaseDocumentProperties
Implements:
Inherited Members
Constructors
Creates document-level properties owned by a document element.
public DocumentProperties(DocumentElement owner)
The document element that owns these properties.
Creates document-level properties owned by a style definition.
public DocumentProperties(StyleDefinition owner)
The style definition that owns these properties.
Properties
Gets or sets the spacing used to calculate generated default tab-stop positions for paragraphs.
public double DefaultTabWidth { get; set; }
Gets or sets the base number added to the computed endnote reference ordinal when a section does not override it. With continuous numbering, references in earlier sections contribute to that ordinal.
public int EndnotesFirstNumber { get; set; }
Gets or sets the default marker format for endnote references when a section does not override it.
public ListNumberingFormat EndnotesNumberingFormat { get; set; }
Gets or sets the default boundaries at which endnote numbering restarts when a section does not override them.
public NumberingRestartType EndnotesNumberingRestartType { get; set; }
Gets or sets where endnotes are placed in paged layout. In flow layout, all endnotes are displayed at the document end.
public EndnotesPosition EndnotesPosition { get; set; }
Gets or sets the base number added to the computed footnote reference ordinal when a section does not override it. With continuous numbering, references on earlier pages and sections contribute to that ordinal.
public int FootnotesFirstNumber { get; set; }
Gets or sets the default marker format for footnote references when a section does not override it.
public ListNumberingFormat FootnotesNumberingFormat { get; set; }
Gets or sets the default boundaries at which footnote numbering restarts when a section does not override them.
public NumberingRestartType FootnotesNumberingRestartType { get; set; }
Gets or sets the document's footnote placement. PageBottom is currently the only supported value.
public FootnotesPosition FootnotesPosition { get; set; }
Methods
Creates a document-properties container for the same document element, as used for revision snapshots.
protected override DocumentElementPropertiesBase CreateInstance()
A new document-properties container.
Overrides:
Registers the document defaults for tab width, section page setup, and footnote and endnote formatting.
protected override void InitProperties()
Overrides:
Propagates document-default style changes to paragraphs so their inherited values are reevaluated.
protected override void OnStylePropertyChangedOverride(StylePropertyChangeEventArgs args)
The changed property and its old and new values.
Overrides:
Restricts styles assigned to document properties to the Default type.
protected override void ValidateStyleType(StyleDefinition value)
The style being assigned.
Overrides: