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


In This Topic
    NDiagramElement Class
    In This Topic
    The NDiagramElement abstract class serves as base class for all elements, which can reside in diagram documents
    Object Model
    NDiagramElement Class
    Syntax
    Remarks
    NDiagramElement enhances its base NDiagramNode with the following features:
    • NDiagramElement implements the INDiagramElement interface, which is a required interface for all document elements, containers and composites.
    • Since NDiagramElement implements the INDiagramElement interface, which on its turn derives from INElement, it adds support for attribites (implements the INAttributeContainer interface).
    • NDiagramElement implements the INContextMenuEditable interface. In this way all NDiagramElement derivates can be edited via context menus. NDiagramElement adds support for the Properties verb.
    • All property and method calls of NDiagramElement and its derivates are protected by history. That is why NDiagramElement tries to cashe a reference to an instance of the NElementHistoryService (if the current context can provide a reference to this service). It also provides a set of protected methods, which safely delegate to the NElementHistoryService. You can use them to make your derived classes history aware.
    • NDiagramElement implements INMeasurements interface and thus subscribes for logical measurement unit conversions. Derived classes can override the ConvertMeasurementUnit method to convert all logical measurements they contain.
    Inheritance Hierarchy

    System.Object
       Nevron.Diagram.NDiagramNode
          Nevron.Diagram.NDiagramElement
             Nevron.Diagram.NDiagramElementCollection
             Nevron.Diagram.NErmColumn
             Nevron.Diagram.NPlugContainer
             Nevron.Diagram.NShapePoint
             Nevron.Diagram.NStyleComposerElement
             Nevron.Diagram.NTableColumn
             Nevron.Diagram.NUmlField

    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