Search
DiagramItem Class
Remarks See Also
 






Represents an item in the diagram document. All classes representing diagram elements derive from DiagramItem.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public abstract class DiagramItem : ContentControl

Visual Basic  Copy Code

Public MustInherit Class DiagramItem
    Inherits ContentControl

 Remarks

All items in the diagram document - links and nodes - share common base class called DiagramItem. Its main function is to provide interface for the most common methods and properties of every diagram element.

The order in which items are painted from bottom to top is called the z-order. Moving items up or down the z-order can be done by means of the ZBottom, ZTop, ZLevelUp and ZLevelDown methods. Accessing and setting the index of an item in the z-order can be done using the ZIndex property.

An application can associate custom data with an item by means of the Tag property. The tags are only meant to hold data related to the entities represented by the chart items. They are not used or modified by MindFusion.Diagramming in any way. The tags are saved and loaded together with the diagram elements when serializing the document to a disk file or a stream.

Items can be locked for interactive modification through the Locked property. Locked items can still be modified programmatically. Items can also be marked as locked for automatic layout methods through the IgnoreLayout property.

 Inheritance Hierarchy

System.Object
    Windows.UI.Xaml.DependencyObject
        Windows.UI.Xaml.UIElement
            Windows.UI.Xaml.FrameworkElement
                Windows.UI.Xaml.Controls.Control
                    Windows.UI.Xaml.Controls.ContentControl
                        MindFusion.Diagramming.DiagramItem
                            MindFusion.Diagramming.DiagramLink
                            MindFusion.Diagramming.DiagramNode
                            MindFusion.Diagramming.Selection

 See Also