Intersoft ClientUI Documentation
Document Property (FlowDocumentViewerBase)



Gets or sets the document.
Syntax
<CategoryAttribute("Common Properties")>
Public Property Document As FlowDocument
Dim instance As FlowDocumentViewerBase
Dim value As FlowDocument
 
instance.Document = value
 
value = instance.Document
[CategoryAttribute("Common Properties")]
public FlowDocument Document {get; set;}
[CategoryAttribute("Common Properties")]
public:
property FlowDocument^ Document {
   FlowDocument^ get();
   void set (    FlowDocument^ value);
}
Remarks
Document property must be of FlowDocument type. A FlowDocument contains a collection of Block and Inline elements. Those elements are combined to create a document that can flow inside a viewer control. FlowDocument are part of the ClientUI document framework, which allow developers to create rich document content that can be viewed consistently in both Silverlight and WPF application. For more information about ClientUI flow document framework, see Flow Document Framework Overview.

The following example shows how to define a FlowDocument and display it in a viewer.

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

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FlowDocumentViewerBase Class
FlowDocumentViewerBase Members

Send Feedback