Search
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.

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. This method should be used instead Visual.TransformToDescendant because it works correctly when the item is not yet Arrange()d.

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.

OnApplyTemplate

FrameworkElement.OnApplyTemplate override.

OnChildModified

Called when a group child node has been modified.

OnLoad

Called after successful deserialization.

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes.

OnPointerCaptureLost

Control.OnPointerCaptureLost override.

OnPointerEntered

Control.OnPointerEntered override.

OnPointerExited

Control.OnPointerExited override.

OnPointerPressed

Control.OnPointerPressed override.

OnPointerReleased

Control.OnPointerReleased 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