DiagramLite Programmer's Guide
DiagramItem Methods
 


 Public Methods

  Name Description

Clone

Creates a copy of this item.

ContainsPoint

Determines whether this item contains the specified point.

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.

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.

OnApplyTemplate

Control.OnApplyTemplate override.

Query

Returns the items that can be reached from this item by following the path specified in the given query expression.

RestoreLocationState

Restores the state of this diagram item.

SaveLocationState

Saves the state of this diagram item.

TransformDiagramToItem

Transforms a point in diagram coordinates to item coordinates.

TransformItemToDiagram

Gets the diagram coordinates of a point specified in the local coordinate system of this item.

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

AddHandlesToCanvas

Overloaded.  

AllowDrag

Invoked to validate the drag operation.

CancelDrag

Invoked when the interactive modification of this object has been canceled.

CreateState

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

EndDrag

Invoked when the user stops dragging this item.

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.

OnLoad

Called after successful deserialization.

OnLostMouseCapture

Control.OnLostMouseCapture override.

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes.

OnMouseEnter

Control.OnMouseEnter override.

OnMouseLeave

Control.OnMouseLeave override.

OnMouseLeftButtonDown

Control.OnMouseLeftButtonDown override.

OnMouseLeftButtonUp

Control.OnMouseLeftButtonUp override.

OnRemove

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

RemoveHandlesFromCanvas

Invoked when the item's selection handles should be removed.

RestoreState

Restores the state of this diagram item.

SaveState

Saves the state of this diagram item.

SaveToXml

Saves the item content into an XML element.

ScaleElements

Scales the item's elements by specified amount.

StartDrag

Invoked when the user starts dragging this item.

UpdateDrag

Invoked while the user drags this item.

UpdateHandleColors

Sets the handle colors according to the current selection state of the item and the enabled bits in the EnabledHandles property.

UpdateHandlePositions

Invoked when the item's selection handles should change their position.

UpdateStates

Sets the current VisualStates of this item.

UpdateVisuals

Invoked when an item should update its visual elements.

 See Also

DiagramItem Class
MindFusion.Diagramming Namespace