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


In This Topic
    NShape Class
    In This Topic
    The NShape class is an aggregate model, which represents an object from the real world, concept or abstraction
    Object Model
    NShape Class
    Syntax
    'Usage
     
    
    Dim instance As NShape
    Remarks
    Shapes are the primary diagram building blocks. Shapes can be connected with each other and form complex relationships. There are two types of shapes:
    • These are shapes, which are treated as lines and are usually used to connect 2D shapes. 1D shapes have start and end plugs, which can be connected to the ports of other shapes. The start and end plugs are anchored to the shape start and end points. In the context of graphs, 1D Shapes are treated as graph edges (if the GraphPart property is set to true). In the context of routing, 1D Shapes are not treated as obstacles. Only the bridgeable paths of bridgeable 1D shapes can display bridges.
    • These are shape which are treated as boxes. 2D shapes do not have plugs. In the context of graphs, 2D Shapes are treated as graph vertices (if the GraphPart property is set to true). In the context of routing, 2D Shapes are treated as obstacles (the RouteObstacleType property is taken into account). Bridgeable paths inside 2D shapes do not display bridges.
    Whether the shape is 1D or 2D is controlled by the ShapeType property. The shape type influences the default shape behavior.

    Each type of shape can have the following optional elements:

    • Labels are texts, which can be anchored to different aspects of the shape or to the models it aggregates. The shape labels are accessible from the Labels property.
    • Control points are used for the interactive modification of the shape geometry. The shape control points are accessible from the ControlPoints property.
    • Ports are connection points to which multiple plugs can be connected. The shape ports are accessible from the Ports property.
    • Decorators are elements which decorate the shape with different effects (like borders, expand collapse etc). The decorators are accessible from the Decorators property.
    By design a shape will only create the elements it needs (e.g. some shapes may not have Labels, Control Points, Ports and/or Decorators). You can programmatically create and destroy the optional shape elements with the help of the CreateShapeElements and DestroyShapeElements methods.
    Inheritance Hierarchy

    System.Object
       Nevron.Diagram.NDiagramNode
          Nevron.Diagram.NDiagramElement
             Nevron.Diagram.NStyleComposerElement
                Nevron.Diagram.NStyleableElement
                   Nevron.Diagram.NTransformableElement
                      Nevron.Diagram.NModel
                         Nevron.Diagram.NAggregateModel
                            Nevron.Diagram.NShape
                               Nevron.Diagram.Maps.NMapLabelsShape
                               Nevron.Diagram.NCompositeShape
                               Nevron.Diagram.NGroup
                               Nevron.Diagram.NPrimitiveShape

    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