Class
DocumentProperties

Represents the document properties in a Telerik document model, providing access to various styling attributes that can be applied to the entire document.

Definition

Namespace:Telerik.Windows.Documents.Model.Styles

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class DocumentProperties : DocumentElementPropertiesBase, IElementWithStyle

Inheritance: objectDocumentElementPropertiesBaseDocumentProperties

Implements: IElementWithStyle

Inherited Members DocumentElementPropertiesBase.GetStyleProperty(IStylePropertyDefinition)DocumentElementPropertiesBase.GetStyleProperty(string)DocumentElementPropertiesBase.CopyPropertiesFrom(DocumentElementPropertiesBase)DocumentElementPropertiesBase.MergePropertiesWith(DocumentElementPropertiesBase)DocumentElementPropertiesBase.ToString()DocumentElementPropertiesBase.ClearProperties()DocumentElementPropertiesBase.OnStyleChanged()DocumentElementPropertiesBase.OnStyleChanging()DocumentElementPropertiesBase.StylePropertiesDocumentElementPropertiesBase.StyleNameDocumentElementPropertiesBase.OriginalStyleNameDocumentElementPropertiesBase.StyleDocumentElementPropertiesBase.HasRevisionsDocumentElementPropertiesBase.RevisionInfoDocumentElementPropertiesBase.OriginalProperties

Constructors

DocumentProperties(DocumentElement)

Declaration

cs-api-definition
public DocumentProperties(DocumentElement owner)

Parameters

owner

DocumentElement

DocumentProperties(StyleDefinition)

Declaration

cs-api-definition
public DocumentProperties(StyleDefinition owner)

Parameters

owner

StyleDefinition

Properties

DefaultTabWidth

Gets or sets the default tab width for the document properties.

Declaration

cs-api-definition
public double DefaultTabWidth { get; set; }

Property Value

double

A double value representing the width of the default tab in units of measurement used by the document.

EndnotesFirstNumber

Gets or sets the first number of the endnotes in the document.

Declaration

cs-api-definition
public int EndnotesFirstNumber { get; set; }

Property Value

int

The first number of the endnotes, represented as an integer.

EndnotesNumberingFormat

Gets or sets the numbering format for endnotes in the document properties.

Declaration

cs-api-definition
public ListNumberingFormat EndnotesNumberingFormat { get; set; }

Property Value

ListNumberingFormat

A value that specifies the numbering format for endnotes. This can be one of several predefined formats such as Roman numerals, Arabic numbers, or letters.

EndnotesNumberingRestartType

Represents the type for restarting the numbering of endnotes in a document.

Declaration

cs-api-definition
public NumberingRestartType EndnotesNumberingRestartType { get; set; }

Property Value

NumberingRestartType

EndnotesPosition

Gets or sets the position of endnotes in the document.

Declaration

cs-api-definition
public EndnotesPosition EndnotesPosition { get; set; }

Property Value

EndnotesPosition

The endnotes position, which determines where the endnotes will be displayed in relation to the main content of the document.

FootnotesFirstNumber

Gets or sets the first number to be used for footnotes in the document.

Declaration

cs-api-definition
public int FootnotesFirstNumber { get; set; }

Property Value

int

A int representing the first footnote number. This value can be set to customize the numbering of footnotes in the document.

FootnotesNumberingFormat

Represents the formatting options for footnotes numbering in a document.

Declaration

cs-api-definition
public ListNumberingFormat FootnotesNumberingFormat { get; set; }

Property Value

ListNumberingFormat

FootnotesNumberingRestartType

Represents the type of restarting for footnote numbering in a document.

Declaration

cs-api-definition
public NumberingRestartType FootnotesNumberingRestartType { get; set; }

Property Value

NumberingRestartType

FootnotesPosition

Gets or sets the position of the footnotes in the document.

Declaration

cs-api-definition
public FootnotesPosition FootnotesPosition { get; set; }

Property Value

FootnotesPosition

A value indicating the position of the footnotes, which can be either at the bottom of the page or at the end of the document.

Methods

CreateInstance()

Declaration

cs-api-definition
protected override DocumentElementPropertiesBase CreateInstance()

Returns

DocumentElementPropertiesBase

Overrides DocumentElementPropertiesBase.CreateInstance()

InitProperties()

Declaration

cs-api-definition
protected override void InitProperties()

Overrides DocumentElementPropertiesBase.InitProperties()

OnStylePropertyChangedOverride(StylePropertyChangeEventArgs)

Declaration

cs-api-definition
protected override void OnStylePropertyChangedOverride(StylePropertyChangeEventArgs args)

Parameters

args

StylePropertyChangeEventArgs

Overrides DocumentElementPropertiesBase.OnStylePropertyChangedOverride(StylePropertyChangeEventArgs)

ValidateStyleType(StyleDefinition)

Declaration

cs-api-definition
protected override void ValidateStyleType(StyleDefinition value)

Parameters

value

StyleDefinition

Overrides DocumentElementPropertiesBase.ValidateStyleType(StyleDefinition)