Intersoft ClientUI Documentation
Document Property
See Also  Send Feedback
Intersoft.Client.UI.DocumentViewers Namespace > FlowDocumentViewerBase Class : Document Property






Gets or sets the document. Gets or sets the document.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property Document As FlowDocument
Visual Basic (Usage)Copy Code
Dim instance As FlowDocumentViewerBase
Dim value As FlowDocument
 
instance.Document = value
 
value = instance.Document
C# 
[CategoryAttribute("Common Properties")]
public FlowDocument Document {get; set;}
Delphi 
public read-write property Document: FlowDocument; 
JScript 
CategoryAttribute("Common Properties")
public function get,set Document : FlowDocument
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property FlowDocument* get_Document();
public: __property void set_Document( 
   FlowDocument* value
);
C++/CLI 
[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 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.