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






Gets or sets a value that indicates whether the document is changed and needs to be invalidated.. Gets or sets a value that indicates whether the document is changed and needs to be invalidated..

Syntax

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