New to Telerik Document ProcessingStart a free 30-day trial

Root container for flow document content, managing sections, styles, lists, comments, resources, and document-wide settings for word processing documents.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public sealed class RadFlowDocument : DocumentElementBase, IElementWithProperties

Inheritance: objectDocumentElementBaseRadFlowDocument

Implements: IElementWithProperties

Inherited Members DocumentElementBase.EnumerateChildrenOfType<T>()DocumentElementBase.Parent

Constructors

Initializes a new instance of the RadFlowDocument class.

C#
public RadFlowDocument()

Fields

Defines the default spacing between automatic tab stops when no custom tab stops are defined, measured in device-independent pixels.

C#
public static readonly StylePropertyDefinition<double?> DefaultTabStopWidthPropertyDefinition

Defines whether documents use separate headers and footers for even and odd pages in facing-page layouts.

C#
public static readonly StylePropertyDefinition<bool?> HasDifferentEvenOddPageHeadersFootersPropertyDefinition

Defines the preferred view mode for displaying documents (e.g., print layout, web layout, outline).

C#
public static readonly StylePropertyDefinition<DocumentViewType?> ViewTypePropertyDefinition

Methods

Creates a deep copy of the entire document including all sections, styles, lists, and content with independent instances of all elements.

C#
public RadFlowDocument Clone()
Returns:

RadFlowDocument

The cloned document.

Executes mail merge using the specified collection of data records and returns a new document with MERGEFIELD fields replaced by actual values.

C#
public RadFlowDocument MailMerge(IEnumerable collection)
Parameters:collectionIEnumerable

The collection of records.

Returns:

RadFlowDocument

The merged document.

Appends all sections, styles, lists, and content from the source document into this document with specified conflict resolution options.

C#
public void Merge(RadFlowDocument sourceDocument, MergeOptions mergeOptions)
Parameters:sourceDocumentRadFlowDocument

The source document.

mergeOptionsMergeOptions

The merge options.

Appends all sections, styles, lists, and content from the source document into this document using default merge options.

C#
public void Merge(RadFlowDocument sourceDocument)
Parameters:sourceDocumentRadFlowDocument

The source document.

Converts the document to plain text format and returns a simple text representation with optional timeout constraint.

C#
public SimpleTextDocument ToSimpleTextDocument(TimeSpan? timeout)
Parameters:timeoutTimeSpan?

The maximum time allowed for the export operation. If null, the operation will not be time-limited.

Returns:

SimpleTextDocument

An instance of SimpleTextDocument representing the plain text version of the document.

Recalculates and updates the result text for all fields in the document, including page numbers, dates, references, and conditional fields.

C#
public void UpdateFields()

Properties

Gets the collection of comments (annotations with author and date) attached to document content ranges.

C#
public CommentCollection Comments { get; }
Property Value:

The comments.

Gets the document-wide default character and paragraph formatting applied as the baseline for all content.

C#
public DocumentDefaultStyle DefaultStyle { get; }
Property Value:

The default style.

Gets or sets the default spacing between automatic tab stops when no custom tab stops are defined, measured in device-independent pixels.

C#
public double DefaultTabStopWidth { get; set; }
Property Value:

The default width of the tab stop.

Gets the root document for this element, which returns itself since this is the document root.

C#
public override RadFlowDocument Document { get; }
Property Value:

The document.

Overrides: DocumentElementBase.Document

Gets or sets the document metadata including title, author, subject, keywords, and other file properties.

C#
public DocumentInfo DocumentInfo { get; set; }
Property Value:

The metadata.

Gets the collection of document variables that store custom name-value pairs for field references and document-specific data.

C#
public DocumentVariableCollection DocumentVariables { get; }
Property Value:

The document variables.

Gets or sets whether the document uses separate headers and footers for even and odd pages to support facing-page layouts.

C#
public bool HasDifferentEvenOddPageHeadersFooters { get; set; }
Property Value:

true if pages in this document will have different headers and footers for even and odd pages; otherwise, false.

Gets the collection of list definitions that provide numbering and bullet formatting for list items.

C#
public ListCollection Lists { get; }
Property Value:

The lists.

Gets the document-level properties container providing access to view settings, tab stops, and header/footer configuration.

C#
public DocumentProperties Properties { get; }
Property Value:

The properties.

Gets the document protection configuration that controls editing restrictions and password-based security.

C#
public ProtectionSettings ProtectionSettings { get; }
Property Value:

The protection settings.

Gets the collection of sections that define page layout settings and contain the document's block-level content.

C#
public SectionCollection Sections { get; }
Property Value:

The sections.

Gets the central registry of paragraph, character, table, and numbering styles available in the document.

C#
public StyleRepository StyleRepository { get; }
Property Value:

The style repository.

Gets or sets the document theme that defines color schemes, font schemes, and formatting effects for theme-aware styling.

C#
public DocumentTheme Theme { get; set; }
Property Value:

The theme.

Gets or sets the preferred view mode for displaying the document (e.g., print layout, web layout, outline).

C#
public DocumentViewType ViewType { get; set; }
Property Value:

The type of the view.