Search
Selection Methods
 


 Public Methods

  Name Description

AddItem

Adds a new item to the current selection.

Change

Selects an item and deselects all others.

Clear

Removes all items from the selection.

Clone

Creates a copy of this item. (Inherited from DiagramItem.)

ContainsPoint

Determines whether this item contains the specified point. (Inherited from DiagramItem.)

GetBounds

Gets the bounding rectangle of this item.

GetOutlinePoly

Gets a polygon approximating the outline of this object. (Inherited from DiagramItem.)

GetRepaintRect

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

GetRotatedBounds

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

HitTestHandle

DiagramItem.HitTestHandle override.

NotInteractive

Gets whether the user is prevented from manipulating this item. (Inherited from DiagramItem.)

RemoveItem

Removes an item from the selection.

RestoreLocationState

Restores the state of this diagram item. (Inherited from DiagramItem.)

SaveLocationState

Saves the state of this diagram item. (Inherited from DiagramItem.)

Toggle

Toggles the selection state of an 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. (Inherited from DiagramItem.)

TransformItemToDiagram

Gets the diagram coordinates of a point specified in the local coordinate system of this item. (Inherited from DiagramItem.)

ZBottom

Moves the item to the bottom of the z-order. (Inherited from DiagramItem.)

ZLevelDown

Moves the item one level down in the z-order. (Inherited from DiagramItem.)

ZLevelUp

Moves the item one level up in the z-order. (Inherited from DiagramItem.)

ZTop

Moves the item to the top of the z-order. (Inherited from DiagramItem.)

 Protected Methods

  Name Description

AddHandlesToCanvas

DiagramItem.AddHandlesToCanvas override.

AllowDrag

Invoked to validate the drag operation. (Inherited from DiagramItem.)

CancelDrag

DiagramItem.CancelDrag override.

CreateState

Creates an item state corresponding to the type of this diagram item. (Inherited from DiagramItem.)

EndDrag

DiagramItem.EndDrag override.

LoadFromXml

Loads the item content from an XML element. (Inherited from DiagramItem.)

OnAdd

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

OnApplyTemplate

FrameworkElement.OnApplyTemplate override. (Inherited from DiagramItem.)

OnChildModified

Called when a group child node has been modified. (Inherited from DiagramItem.)

OnLoad

Called after successful deserialization. (Inherited from DiagramItem.)

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes. (Inherited from DiagramItem.)

OnPointerCaptureLost

Control.OnPointerCaptureLost override. (Inherited from DiagramItem.)

OnPointerEntered

Control.OnPointerEntered override. (Inherited from DiagramItem.)

OnPointerExited

Control.OnPointerExited override. (Inherited from DiagramItem.)

OnPointerPressed

Control.OnPointerPressed override. (Inherited from DiagramItem.)

OnPointerReleased

Control.OnPointerReleased override. (Inherited from DiagramItem.)

OnRemove

DiagramItem.OnRemove override.

RemoveHandlesFromCanvas

Invoked when the item's selection handles should be removed. (Inherited from DiagramItem.)

RestoreState

Restores the state of this diagram item. (Inherited from DiagramItem.)

SaveState

Saves the state of this diagram item. (Inherited from DiagramItem.)

SaveToXml

Saves the item content into an XML element. (Inherited from DiagramItem.)

ScaleElements

Scales the item's elements by specified amount. (Inherited from DiagramItem.)

StartDrag

DiagramItem.StartDrag override.

UpdateDrag

DiagramItem.UpdateDrag override.

UpdateHandleColors

Sets the handle colors according to the current selection state of the item and the enabled bits in the EnabledHandles property. (Inherited from DiagramItem.)

UpdateHandlePositions

Invoked when the item's selection handles should change their position. (Inherited from DiagramItem.)

UpdateStates

Sets the current VisualStates of this item. (Inherited from DiagramItem.)

UpdateVisuals

DiagramItem.UpdateVisuals override.

 See Also