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

Stores document-level style values, including defaults that section properties can override.

Definition

Constructors

Creates document-level properties owned by a document element.

C#
public DocumentProperties(DocumentElement owner)
Parameters:ownerDocumentElement

The document element that owns these properties.

Creates document-level properties owned by a style definition.

C#
public DocumentProperties(StyleDefinition owner)
Parameters:ownerStyleDefinition

The style definition that owns these properties.

Properties

Gets or sets the spacing used to calculate generated default tab-stop positions for paragraphs.

C#
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.

C#
public int EndnotesFirstNumber { get; set; }

Gets or sets the default marker format for endnote references when a section does not override it.

C#
public ListNumberingFormat EndnotesNumberingFormat { get; set; }

Gets or sets the default boundaries at which endnote numbering restarts when a section does not override them.

C#
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.

C#
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.

C#
public int FootnotesFirstNumber { get; set; }

Gets or sets the default marker format for footnote references when a section does not override it.

C#
public ListNumberingFormat FootnotesNumberingFormat { get; set; }

Gets or sets the default boundaries at which footnote numbering restarts when a section does not override them.

C#
public NumberingRestartType FootnotesNumberingRestartType { get; set; }

Gets or sets the document's footnote placement. PageBottom is currently the only supported value.

C#
public FootnotesPosition FootnotesPosition { get; set; }

Methods

Creates a document-properties container for the same document element, as used for revision snapshots.

C#
protected override DocumentElementPropertiesBase CreateInstance()
Returns:

DocumentElementPropertiesBase

A new document-properties container.

Overrides: DocumentElementPropertiesBase.CreateInstance()

Registers the document defaults for tab width, section page setup, and footnote and endnote formatting.

C#
protected override void InitProperties()

Overrides: DocumentElementPropertiesBase.InitProperties()

Propagates document-default style changes to paragraphs so their inherited values are reevaluated.

C#
protected override void OnStylePropertyChangedOverride(StylePropertyChangeEventArgs args)
Parameters:argsStylePropertyChangeEventArgs

The changed property and its old and new values.

Overrides: DocumentElementPropertiesBase.OnStylePropertyChangedOverride(StylePropertyChangeEventArgs)

Restricts styles assigned to document properties to the Default type.

C#
protected override void ValidateStyleType(StyleDefinition value)
Parameters:valueStyleDefinition

The style being assigned.

Overrides: DocumentElementPropertiesBase.ValidateStyleType(StyleDefinition)