Search
DiagramItem Methods
 


 Public Methods

  Name Description

ClearStyleableProperties

Clears the local values of all styleable appearance properties.

Clone

Creates a copy of this item.

ContainsPoint

Overloaded.  

Dispose

Overloaded.  

Draw

Draws the item on the specified DrawingContext object.

DrawHandles

Renders the selection handles.

GetBounds

Gets the bounding rectangle of this item.

GetRegion

Returns a Geometry object representing the shape of this item.

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.

GetRotationAngle

Gets the item rotation angle.

GetToolTip

Gets the tooltip that should be displayed for this item at the specified point.

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.

HitTestManipulators

Triggers the manipulator located at the specified point.

Intersects

Checks whether the specified rectangle intersects with this diagram item.

LabelFromPoint

Returns the ItemLabel located at specified point.

NotInteractive

Gets whether the user is prevented from manipulating this item.

NowModifying

Gets a flag indicating whether this object is being currently modified interactively by the user.

Query

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

Repaint

Overloaded.  

TransformDiagramToItem

Transforms a point from document coordinates to item coordinates.

TransformItemToDiagram

Transforms point from item-relative coordinates to document coordinates.

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

AddToVisualContainer

Adds this item to specified container element.

AllowCreate

Invoked during interactive creation of items to test whether the operation can be completed in the current context.

AllowModify

Invoked during interactive modification of items to test whether the operation can be completed in the current context.

CompleteCreate

Invoked when the item creation has been completed.

CompleteModify

Overloaded.  

CreateProperties

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

CreateRenderer

Returns a FrameworkElement used to render this item in the DiagramView.

CreateState

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

DrawManipulators

Draws the associated manipulators in the specified context.

EnumStyleableProperties

Applies specified function on properties intended to be set from WPF styles.

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.

GetHeight

Gets the height of this item.

GetTextRect

Subtracts the TextPadding values from the specified rectangle.

GetWidth

Gets the width of this item.

GetX

Gets the x-coordinate of the current position of this item.

GetY

Gets the y-coordinate of the current position of this item.

LoadFromJson

Loads the item from a JSON object.

LoadFromXml

Loads the item content from an XML element.

MeasureOverride

FrameworkElement.MeasureOverride override.

OnAdd

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

OnAppearanceChanged

Invoked when any of the item's appearance properties changes.

OnChildModified

Called when a child node has been modified.

OnChildModifying

Called when a child node is being modified.

OnLoad

Called after successful deserialization.

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes.

OnMouseDown

UIElement.OnMouseDown override.

OnMouseUp

UIElement.OnMouseUp override.

OnPositioningChanged

Called when the item's position changes.

OnPreviewMouseDown

UIElement.OnPreviewMouseWheel override.

OnPreviewMouseUp

UIElement.OnPreviewMouseUp override.

OnRemove

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

OnRender

UIElement.OnRender override.

OnSerializablePropertyChanged

Invoked when a FrameworkElement property serializable by DiagramItem changes.

OnSizeChanged

Called when the size of the item changes.

OnStrokeAttributeChanged

Invoked when any of the item's stroke attributes changes.

OnTextAttributeChanged

Invoked when any of the attributes defined in ITextAttributes changes.

OnZoomChanged

Called when the ZoomFactor changes.

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 as a JSON object.

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.

StartCreate

Invoked once when the user starts creating a new item interactively.

StartModify

Invoked when the user starts modifying this item interactively.

UpdateCreate

Invoked during interactive creation of this item.

UpdateGroup

Called to update the positions of subordinate nodes attached to this item when the attachment style is set to ControlledByMaster.

UpdateModify

Invoked during interactive modification of this item.

 See Also