Intersoft ClientUI Documentation
FlowDocument Class
Members  See Also  Send Feedback
Intersoft.Client.Documents Namespace : FlowDocument Class






Represents the document object that can reflow its content depending on window size, device resolution, and other environment variables.

Object Model

FlowDocument Class

Syntax

Visual Basic (Declaration) 
<ContentPropertyAttribute("Blocks")>
Public Class FlowDocument 
   Inherits System.Windows.DependencyObject
   Implements IDocumentPaginatorSource 
Visual Basic (Usage)Copy Code
Dim instance As FlowDocument
C# 
[ContentPropertyAttribute("Blocks")]
public class FlowDocument : System.Windows.DependencyObject, IDocumentPaginatorSource  
Delphi 
public class FlowDocument = class(System.Windows.DependencyObject, IDocumentPaginatorSource)
JScript 
ContentPropertyAttribute("Blocks")
public class FlowDocument extends System.Windows.DependencyObject implements IDocumentPaginatorSource 
Managed Extensions for C++ 
[ContentPropertyAttribute("Blocks")]
public __gc class FlowDocument : public System.Windows.DependencyObject, IDocumentPaginatorSource  
C++/CLI 
[ContentPropertyAttribute("Blocks")]
public ref class FlowDocument : public System.Windows.DependencyObject, IDocumentPaginatorSource  

Remarks

A flow document is designed to "reflow content" depending on window size, device resolution, and other environment variables. It also has a number of built in features including search, viewing modes that optimize readability, and the ability to apply formatting to the flow elements. Flow document is best utilized when ease of reading is the primary document consumption scenario. In contrast, fixed document is useful when fidelity of the source content is essential. For more information about fixed document, see Document Framework Overview.

To view a flow document, it must be contained in a flow document viewer control. There are three types of flow document viewer, which are UXFlowDocumentViewer, UXFlowDocumentPageViewer, and UXFlowDocumentScrollViewer. For further information about these viewers, see the overview of each control.

The following code example shows how to author a simple FlowDocument in a UXFlowDocumentViewer.

XAML Copy Code
<Intersoft:UXFlowDocumentViewer>
        <Intersoft:FlowDocument>
        <Intersoft:Paragraph>
                <Intersoft:Run>
                Hello World
            </Intersoft:Run>
        </Intersoft:Paragraph>
    </Intersoft:FlowDocument>
</Intersoft:UXFlowDocumentViewer>

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      Intersoft.Client.Documents.FlowDocument

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.