Search
DiagramItem Members
Constructors Fields Properties Methods
 


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

The following tables list the members exposed by the DiagramItem type.

 Protected Constructors

  Name Description

DiagramItem

Overloaded. Initializes a new instance of the DiagramItem class.

 Public Fields

  Name Description

BrushProperty

Identifies the Brush property.

HyperLinkProperty

Identifies the HyperLink property.

IdProperty

Identifies the Id property.

IgnoreLayoutProperty

Identifies the IgnoreLayout property.

LayerIndexProperty

Identifies the LayerIndex property.

LockedProperty

Identifies the Locked property.

PenProperty

Identifies the Pen property.

ShadowBrushProperty

Identifies the ShadowBrush property.

ShadowOffsetXProperty

Identifies the ShadowOffsetX property.

ShadowOffsetYProperty

Identifies the ShadowOffsetY property.

TagProperty

Identifies the Tag property.

TextBrushProperty

Identifies the TextBrush property.

TextPaddingProperty

Identifies the TextPadding property.

VisibleProperty

Identifies the Visible property.

WeightProperty

Idenitifies the Weight property.

ZIndexProperty

Identifies the ZIndex property.

 Public Properties

  Name Description

AttachedNodes

Gets a reference to the list of items that are attached to this one.

Brush

Gets or sets the brush used to fill the interior of this item.

EffectiveBrush

Gets the effective brush of the item.

EffectiveFont

Gets the currently effective font of the item.

EffectivePen

Gets the effective pen of the item.

EffectiveShadowBrush

Gets the effective shadow brush of the item.

EffectiveTextBrush

Gets the effective text brush of the item.

Font

Gets or sets the font used to render the item's text.

HyperLink

Gets or sets the hyper link.

Id

Gets or sets user-defined identifier associated with this item.

IgnoreLayout

Gets or sets a value indicating whether the position of this item should not be changed by automatic layout methods.

LayerIndex

Gets or sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with a layer.

LayoutTraits

Contains properties specific to each layout algorithm.

Locked

Gets or sets a value indicating whether users are allowed to edit the diagram item.

Parent

Gets the diagram that contains this item.

Pen

Gets or sets the pen used to paint the frame of the item.

RuntimeIndex

For internal use.

Selected

Gets or sets a value indicating whether a diagram item is selected.

ShadowBrush

Gets or sets the brush used to paint the item's shadow.

ShadowOffsetX

Gets or sets the horizontal offset of the shadow of this item.

ShadowOffsetY

Gets or sets the vertical offset of the shadow of this item.

Style

Gets or sets the style associated with the item.

Tag

Gets or sets user-defined data associated with this item.

TextBrush

Gets or sets the brush used to paint texts inside the item.

TextPadding

Gets or sets the spacing between the item boundaries and its text.

TopLevel

True if this is a top-level item in the diagram, or false if it is inside a container.

Visible

Gets or sets a value indicating whether this item is visible.

Weight

Gets or sets a weight value used in layout and path-finding algorithms.

ZIndex

Gets or sets the z-order position of this item.

 Protected Properties

  Name Description

MeasureUnit

Returns the diagram measure unit.

 Public Methods

  Name Description

Clone

Creates a copy of this item.

ContainsPoint

Overloaded. Determines whether this item contains the specified point.

Draw

Draws the item on the specified IGraphics surface.

DrawHandles

Renders the adjustment handles of this item.

DrawShadow

Draws the shadow of this item on the specified IGraphics surface.

GetBounds

Gets the bounding rectangle of this item.

GetOutlinePoly

Gets a polygon approximating the outline of this object.

GetRepaintRect

Gets the repaint region for this item, taking into account factors such as pen, selection handles and shadow.

GetRotatedBounds

Gets the bounding rectangle of this item when it is rotated.

HitTest

Returns the diagram item that contains the specified point.

HitTestHandle

Determines whether a selection handle of this item is located at the specified point.

NotInteractive

Gets whether the user is prevented from manipulating this item.

OnLoad

Called after successful deserialization.

RestoreItemProperties

For internal use.

SaveItemProperties

For internal use.

ZBottom

Moves the item to the bottom of the z-order.

ZLevelDown

Moves the item one level down in the z-order.

ZLevelUp

Moves the item one level up in the z-order.

ZTop

Moves the item to the top of the z-order.

 Protected Methods

  Name Description

AddManipulator

Adds the specified manipulator to this object.

CreateProperties

Creates an item property set corresponding to the type of this diagram item.

CreateState

Creates an item state corresponding to the type of this diagram item.

DrawManipulators

Overloaded. Draws the associated manipulators on a specified graphics.

FreeResources

Called when the item is completely disassociated from a Diagram, that is, when it is no longer referenced from an item collection or the undo/redo history.

GetValue

Gets the effective value of the style property with the specified name.

HandleTap

Invoked when the user releases his finger over this item.

LoadFromJson

Loads the item content from a JsonObject.

LoadFromXml

Loads the item content from an XML element.

OnAdd

Called when the item is added to a Diagram, either by the user, programmatically or via undo / redo.

OnChildModified

Called when a group child node has been modified.

OnFontChanged

Invoked when the Font property has changed.

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes.

OnRemove

Called when an item is removed from a Diagram, either by the user, programmatically or via undo / redo.

OnStyleChanged

Invoked when the associated style or theme have changed.

OnZoomChanged

Called when the MindFusion.Diagramming for .NET MAUI's ZoomFactor changes.

RaiseClicked

Raises an event which notifies that an item has been clicked.

RemoveManipulator

Removes the specified manipulator from the object.

Repaint

Overloaded. Repaints the specified region of the diagram.

RestoreProperties

Restores the properties of this diagram item.

RestoreState

Restores the state of this diagram item.

SaveProperties

Saves the properties of this diagram item.

SaveState

Saves the state of this diagram item.

SaveToJson

Saves the item content into a JsonObject.

SaveToXml

Saves the item content into an XML element.

SetDiagramDirty

Marks the diagram as changed.

SetExpanded

Sets whether the item is in expanded or collapsed state.

ShouldRender

Determines whether the item should be rendered in the current context.

 See Also