skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadFlowDocument

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

Inheritance
System.Object
DocumentElementBase
RadFlowDocument
Inherited Members
DocumentElementBase.EnumerateChildrenOfType<T>()
DocumentElementBase.OnChildAdded(DocumentElementBase)
DocumentElementBase.OnChildRemoved(DocumentElementBase)
DocumentElementBase.Parent
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Flow.Model
Assembly: Telerik.Windows.Documents.Flow.dll

Syntax

public sealed class RadFlowDocument : DocumentElementBase, IElementWithProperties, IChildrenList

Constructors

RadFlowDocument()

Initializes a new instance of the RadFlowDocument class.

Declaration
public RadFlowDocument()

Fields

DefaultTabStopWidthPropertyDefinition

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

Declaration
public static readonly StylePropertyDefinition<double? > DefaultTabStopWidthPropertyDefinition
Field Value
StylePropertyDefinition<System.Nullable<System.Double>>

HasDifferentEvenOddPageHeadersFootersPropertyDefinition

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

Declaration
public static readonly StylePropertyDefinition<bool? > HasDifferentEvenOddPageHeadersFootersPropertyDefinition
Field Value
StylePropertyDefinition<System.Nullable<System.Boolean>>

ViewTypePropertyDefinition

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

Declaration
public static readonly StylePropertyDefinition<DocumentViewType? > ViewTypePropertyDefinition
Field Value
StylePropertyDefinition<System.Nullable<DocumentViewType>>

Properties

Comments

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

Declaration
public CommentCollection Comments { get; }
Property Value
CommentCollection

The comments.

DefaultStyle

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

Declaration
public DocumentDefaultStyle DefaultStyle { get; }
Property Value
DocumentDefaultStyle

The default style.

DefaultTabStopWidth

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

Declaration
public double DefaultTabStopWidth { get; set; }
Property Value
System.Double

The default width of the tab stop.

Document

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

Declaration
public override RadFlowDocument Document { get; }
Property Value
RadFlowDocument

The document.

Overrides
DocumentElementBase.Document

DocumentInfo

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

Declaration
public DocumentInfo DocumentInfo { get; set; }
Property Value
DocumentInfo

The metadata.

DocumentVariables

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

Declaration
public DocumentVariableCollection DocumentVariables { get; }
Property Value
DocumentVariableCollection

The document variables.

HasDifferentEvenOddPageHeadersFooters

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

Declaration
public bool HasDifferentEvenOddPageHeadersFooters { get; set; }
Property Value
System.Boolean

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

Lists

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

Declaration
public ListCollection Lists { get; }
Property Value
ListCollection

The lists.

Properties

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

Declaration
public DocumentProperties Properties { get; }
Property Value
DocumentProperties

The properties.

ProtectionSettings

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

Declaration
public ProtectionSettings ProtectionSettings { get; }
Property Value
ProtectionSettings

The protection settings.

Sections

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

Declaration
public SectionCollection Sections { get; }
Property Value
SectionCollection

The sections.

StyleRepository

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

Declaration
public StyleRepository StyleRepository { get; }
Property Value
StyleRepository

The style repository.

Theme

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

Declaration
public DocumentTheme Theme { get; set; }
Property Value
DocumentTheme

The theme.

ViewType

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

Declaration
public DocumentViewType ViewType { get; set; }
Property Value
DocumentViewType

The type of the view.

Methods

Clone()

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

Declaration
public RadFlowDocument Clone()
Returns
RadFlowDocument

The cloned document.

MailMerge(IEnumerable)

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

Declaration
public RadFlowDocument MailMerge(IEnumerable collection)
Parameters
System.Collections.IEnumerable collection

The collection of records.

Returns
RadFlowDocument

The merged document.

Merge(RadFlowDocument)

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

Declaration
public void Merge(RadFlowDocument sourceDocument)
Parameters
RadFlowDocument sourceDocument

The source document.

Merge(RadFlowDocument, MergeOptions)

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

Declaration
public void Merge(RadFlowDocument sourceDocument, MergeOptions mergeOptions)
Parameters
RadFlowDocument sourceDocument

The source document.

MergeOptions mergeOptions

The merge options.

ToSimpleTextDocument(Nullable<TimeSpan>)

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

Declaration
public SimpleTextDocument ToSimpleTextDocument(TimeSpan? timeout)
Parameters
System.Nullable<System.TimeSpan> timeout

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.

UpdateFields()

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

Declaration
public void UpdateFields()

Explicit Interface Implementations

IElementWithProperties.Properties

Gets the properties.

Declaration
DocumentElementPropertiesBase IElementWithProperties.Properties { get; }
Returns
DocumentElementPropertiesBase

The properties.

Implements
IElementWithProperties.Properties
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.