DiagramLite Programmer's Guide
DiagramItem Members
Constructors Fields Properties Methods
 


Represents an item in the diagram document. All classes representing diagram elements derive from DiagramItem.

The following tables list the members exposed by the DiagramItem type.

 Protected Constructors

  Name Description

DiagramItem

Overloaded.  

 Public Fields

  Name Description

AutoCaptureMouseProperty

Identifies the AutoCaptureMouse dependency property.

BrushProperty

Identifies the Brush dependency property.

HyperLinkProperty

Identifies the HyperLink dependency property.

IsMouseDownProperty

Identifies the IsMouseDown dependency property.

IsMouseOverProperty

Identifies the IsMouseOver dependency property.

StrokeDashArrayProperty

Identifies the StrokeDashArray dependency property.

StrokeDashCapProperty

Identifies the StrokeDashCap dependency property.

StrokeDashOffsetProperty

Identifies the StrokeDashOffset dependency property.

StrokeEndLineCapProperty

Identifies the StrokeEndLineCap dependency property.

StrokeLineJoinProperty

Identifies the StrokeLineJoin dependency property.

StrokeMiterLimitProperty

Identifies the StrokeMiterLimit dependency property.

StrokeProperty

Identifies the Stroke dependency property.

StrokeStartLineCapProperty

Identifies the StrokeStartLineCap dependency property.

StrokeThicknessProperty

Identifies the StrokeThickness dependency property.

TextBrushProperty

Identifies the TextBrush dependency property.

 Protected Fields

  Name Description

handles

A list of the Rectangle objects that represent the item's adjustment handles.

 Public Properties

  Name Description

AutoCaptureMouse

Gets or sets whether the item should capture the mouse input when the left button is pressed over it. This is a dependency property.

Brush

Gets or sets the Brush that specifies how to paint the interior of the item. This is a dependency property.

Diagram

Gets the parent diagram.

HandlesStyle

Gets or sets a value indicating how the node adjustment handles behave and what do they look like.

HyperLink

Gets or sets the hyperlink associated with this diagram item. This is a dependency property.

Id

Gets or sets user-defined identifier associated with this item.

IgnoreLayout

Gets or sets a value indicating whether the position of this item should not be changed by automatic layout methods.

IsMouseDown

Gets a value indicating whether the mouse button is pressed over this item. This is a dependency property.

IsMouseOver

Gets a value indicating whether the mouse pointer is located over this item. This is a dependency property.

LayerIndex

Gets or sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with a layer.

LayoutTraits

Contains properties specific to each layout algorithm.

Locked

Gets or sets a value indicating whether users are allowed to edit the diagram item.

RuntimeIndex

For internal use.

Selected

Gets or sets a value indicating whether a diagram item is selected.

Stroke

Gets or sets the Brush that specifies how the item outline is painted.

StrokeDashArray

Gets or sets a collection of double values that indicate the pattern of dashes and gaps that is used to outline nodes. This is a dependency property.

StrokeDashCap

Gets or sets a PenLineCap enumeration value that specifies how the ends of a dash are drawn.

StrokeDashOffset

Gets or sets a double value that specifies the distance within the dash pattern where a dash begins. This is a dependency property.

StrokeEndLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the end of a Stroke.

StrokeLineJoin

Gets or sets a PenLineJoin enumeration value that specifies the type of join that is used at the vertices of the item's outline.

StrokeMiterLimit

Gets or sets a limit on the ratio of the miter length to half the StrokeThickness of an item outline element. This is a dependency property.

StrokeStartLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the start of a Stroke.

StrokeThickness

Gets or sets the width of the DiagramItem stroke outline.

TextBrush

Gets or sets the brush used to draw the item's text.

ToolTip

Gets or sets the contents of the tooltip displayed when the mouse pointer rests over the diagram element.

Visible

Gets or sets a value indicating whether this item is visible.

Weight

Gets or sets a weight value used in layout and path-finding algorithms.

ZIndex

Gets or sets the z-order position of the object.

 Protected Properties

  Name Description

Size

Gets the size of this item.

 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