Search
DiagramItem Methods
 


 Public Methods

  Name Description

Animate

Animates the item.

Clone

Creates a copy of this item.

ContainsPoint

Overloaded. Determines whether this item contains the specified point.

Dispose

Overloaded.  

DoModify

For internal use.

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.

GetEffectiveBrush

Creates a Brush object representing the currently effective brush of the item.

GetEffectivePen

Returns a Pen object representing the currently effective pen of the item.

GetEffectiveShadowBrush

Returns a Brush object representing the currently effective shadow brush of the item.

GetEffectiveTextBrush

Returns a Brush object representing the currently effective text brush of the 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.

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

Finds the Manipulator object located at the specified point.

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.

OnLoad

Called after successful deserialization.

Query

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

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.

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.

CancelModify

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

CompleteCreate

Invoked when the item creation has been completed.

CompleteModify

Invoked when the item modification has been completed.

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.

Finalize

DiagramItem finalizer.

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.

LoadFromJson

Loads the item from a JSON object.

LoadFromXml

Loads the item content from an XML element.

LoadObsolete

For internal use.

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.

OnClick

Invoked when the user clicks this item.

OnDoubleClick

Invoked when the user double-clicks this item.

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.

OnTextChanged

Called when the value of the Text property changes.

OnTextFormatChanged

Called when the value of the TextFormat property changes.

OnZoomChanged

Called when the diagram's ZoomFactor changes.

RemoveManipulator

Removes the specified manipulator from the object.

Repaint

Overloaded.  

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