Intersoft ClientUI Documentation
IsDocumentChanged Property (FlowDocumentViewerBase)



Gets or sets a value that indicates whether the document is changed and needs to be invalidated..
Syntax
<CategoryAttribute("Common Properties")>
Public Property IsDocumentChanged As Boolean
Dim instance As FlowDocumentViewerBase
Dim value As Boolean
 
instance.IsDocumentChanged = value
 
value = instance.IsDocumentChanged
[CategoryAttribute("Common Properties")]
public bool IsDocumentChanged {get; set;}
[CategoryAttribute("Common Properties")]
public:
property bool IsDocumentChanged {
   bool get();
   void set (    bool value);
}
Remarks

You might need to change the structure of FlowDocument programmatically. In this case, you need to enable IsDocumentChanged property so that the changes will have effect in the viewer rendering.

CS
Copy Code
private void ChangeDocumentStructure()
{
    FlowDocument doc = this.Viewer1.Document;

    Span span = new Span();
    Run run = new Run("Hello World");
    span.Inlines.Add(run);

    Paragraph p = new Paragraph();
    p.Inlines.Add(span);

    doc.Blocks.Insert(0, p);
    this.Viewer1.IsDocumentChanged = true;
}
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