Nevron .NET Vision
Nevron.Diagram Namespace / NDocument Class
Members


In This Topic
    NDocument Class
    In This Topic
    The NDocument class is a component, which implements core DOM document features and serves as base class for all types of diagram documents
    Object Model
    NDocument Class
    Syntax
    'Usage
     
    
    Dim instance As NDocument
    Remarks
    The NDocument class is the root of a diagram elements hierarchy and as such it implements the core Nevron DOM INDocument interface.

    The services exposed by the document are maintained in an instance of the NServiceManager class, which is accessible from the ServiceManager property. Currently the NDocument class registers the following services:

    • All events are routed to this service. A reference to this service can be obtained from the EventSinkService property.
    • This service is used by elements to invalidate themselves (request to be repainted) in all views. A reference to this service can be obtained from the SmartPaintService property.
    • This service is used by elements to record history operations and transactions. A reference to this service can be obtained from the HistoryService property.

    A single document can be displayed by multiple views. The NDocument class is responsible for maintainging a list of the views currently displaying it.
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             Nevron.Diagram.NDocument
                Nevron.Diagram.NDrawingDocument
                Nevron.Diagram.NLibraryDocument

    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