Search
ShapeNode Members
Constructors Fields Properties Methods
 


ShapeNode instances are diagram nodes that represent geometric shapes.

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

 Public Constructors

  Name Description

ShapeNode

Overloaded.  

 Public Fields

  Name Description

AutoCaptureMouseProperty

Identifies the AutoCaptureMouse dependency property. (Inherited from DiagramItem.)

BoundsProperty

Identifies the Bounds dependency property. (Inherited from DiagramNode.)

BrushProperty

Identifies the Brush dependency property. (Inherited from DiagramItem.)

DecorationsContainerProperty

Identifies the DecorationsContainer dependency property.

HorizontalImageAlignmentProperty

Identifies the HorizontalImageAlignment dependency property.

HorizontalTextBlockAlignmentProperty

Identifies the HorizontalTextBlockAlignment dependency property.

HyperLinkProperty

Identifies the HyperLink dependency property. (Inherited from DiagramItem.)

ImageProperty

Identifies the Image dependency property.

ImageStretchProperty

Identifies the ImageStretch dependency property.

IsMouseDownProperty

Identifies the IsMouseDown dependency property. (Inherited from DiagramItem.)

IsMouseOverProperty

Identifies the IsMouseOver dependency property. (Inherited from DiagramItem.)

MasterNodeProperty

Identifies the MasterNode dependency property. (Inherited from DiagramNode.)

RotationAngleProperty

Identifies the RotationAngle dependency property. (Inherited from DiagramNode.)

ShapeGeometryProperty

Identifies the ShapeGeometry dependency property.

ShapeOpacityProperty

Identifies the ShapeOpacity dependency property. (Inherited from DiagramNode.)

ShapeProperty

Identifies the Shape dependency property.

ShapeVisibilityProperty

Identifies the ShapeVisibility dependency property.

StrokeDashArrayProperty

Identifies the StrokeDashArray dependency property. (Inherited from DiagramItem.)

StrokeDashCapProperty

Identifies the StrokeDashCap dependency property. (Inherited from DiagramItem.)

StrokeDashOffsetProperty

Identifies the StrokeDashOffset dependency property. (Inherited from DiagramItem.)

StrokeEndLineCapProperty

Identifies the StrokeEndLineCap dependency property. (Inherited from DiagramItem.)

StrokeLineJoinProperty

Identifies the StrokeLineJoin dependency property. (Inherited from DiagramItem.)

StrokeMiterLimitProperty

Identifies the StrokeMiterLimit dependency property. (Inherited from DiagramItem.)

StrokeProperty

Identifies the Stroke dependency property. (Inherited from DiagramItem.)

StrokeStartLineCapProperty

Identifies the StrokeStartLineCap dependency property. (Inherited from DiagramItem.)

StrokeThicknessProperty

Identifies the StrokeThickness dependency property. (Inherited from DiagramItem.)

TextAlignmentProperty

Identifies the TextAlignment dependency property.

TextBrushProperty

Identifies the TextBrush dependency property. (Inherited from DiagramItem.)

TextHeightProperty

Identifies the TextHeight dependency property.

TextMarginProperty

Identifies the TextMargin dependency property.

TextProperty

Identifies the Text dependency property.

TextWidthProperty

Identifies the TextWidth dependency property.

TextWrappingProperty

Identifies the TextWrapping dependency property.

TransparentProperty

Identifies the Transparent dependency property.

VerticalImageAlignmentProperty

Identifies the VerticalImageAlignment dependency property.

VerticalTextBlockAlignmentProperty

Identifies the VerticalTextBlockAlignment dependency property.

 Protected Fields

  Name Description

handles

A list of the Rectangle objects that represent the item's adjustment handles. (Inherited from DiagramItem.)

 Public Properties

  Name Description

AllowIncomingLinks

Gets or sets a value indicating whether users are allowed to draw incoming links to this node. (Inherited from DiagramNode.)

AllowOutgoingLinks

Gets or sets a value indicating whether users are allowed to draw outgoing links from this node. (Inherited from DiagramNode.)

AnchorPattern

Gets or sets the anchor points to which links are attached when connected to the node. (Inherited from DiagramNode.)

AttachedNodes

Returns the nodes attached to this node. (Inherited from DiagramNode.)

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. (Inherited from DiagramItem.)

Bounds

Gets or sets the rectangle that defines the position of the diagram node. This is a dependency property. (Inherited from DiagramNode.)

Brush

Gets or sets the Brush that specifies how to paint the interior of the item. This is a dependency property. (Inherited from DiagramItem.)

Constraints

Allows applying constraints to the location and size of the node. (Inherited from DiagramNode.)

Container

Gets the ContainerNode that contains this node. (Inherited from DiagramNode.)

DecorationsContainer

Gets a Grid that contains the ShapeNode decoration elements. This is a dependency property.

Diagram

Gets the parent diagram. (Inherited from DiagramItem.)

Effects

Gets a collection with all effects applied to this node. (Inherited from DiagramNode.)

EnabledHandles

Gets or sets the kinds of modifications that end-users are permitted to perform on the node. (Inherited from DiagramNode.)

Expandable

Gets or sets a value indicating whether users are allowed to expand or collapse the subtree that starts from this node. (Inherited from DiagramNode.)

Expanded

Gets or sets a value indicating whether the subtree starting from this node is expanded. (Inherited from DiagramNode.)

HandlesStyle

Gets or sets a value indicating how the node adjustment handles behave and what do they look like. (Inherited from DiagramItem.)

HorizontalImageAlignment

Gets or sets the horizontal alignment of the ShapeNode's image. This is a dependency property.

HorizontalTextBlockAlignment

Gets or sets the horizontal alignment of the TextBlock used to display the ShapeNode text relative to its container Grid. This is a dependency property.

HyperLink

Gets or sets the hyperlink associated with this diagram item. This is a dependency property. (Inherited from DiagramItem.)

Id

Gets or sets user-defined identifier associated with this item. (Inherited from DiagramItem.)

IgnoreLayout

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

Image

Gets or sets the image that is displayed in this shape node. This is a dependency property.

ImageAlign

Gets or sets the alignment of the image displayed in this shape node.

ImageLocation

Gets or sets the URL of the image displayed in this ShapeNode. Relative URLs are resolved against the directory containing the *.xap file

ImageResourceLocation

Gets or sets the path to image file within the (*.xap) archive displayed in this ShapeNode.

ImageStretch

Gets or sets a value that describes how the ShapeNode's image should be stretched to fill the destination rectangle. This is a dependency property.

IncomingLinks

Gets a collection of links that point to the node. (Inherited from DiagramNode.)

IsMouseDown

Gets a value indicating whether the mouse button is pressed over this item. This is a dependency property. (Inherited from DiagramItem.)

IsMouseOver

Gets a value indicating whether the mouse pointer is located over this item. This is a dependency property. (Inherited from DiagramItem.)

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. (Inherited from DiagramItem.)

LayoutTraits

Contains properties specific to each layout algorithm. (Inherited from DiagramItem.)

Locked

Gets or sets a value indicating whether users are allowed to edit the diagram item. (Inherited from DiagramItem.)

MasterNode

Gets the node to which this node is attached. This is a dependency property. (Inherited from DiagramNode.)

Obstacle

Gets or sets a value indicating whether this node is considered an obstacle by the link-routing algorithm. (Inherited from DiagramNode.)

OutgoingLinks

Gets a collection of links that start from this node. (Inherited from DiagramNode.)

RotationAngle

Gets or sets the angle at which this node is rotated. This is a dependency property. (Inherited from DiagramNode.)

RuntimeIndex

For internal use. (Inherited from DiagramItem.)

Selected

Gets or sets a value indicating whether a diagram item is selected. (Inherited from DiagramItem.)

Shape

Gets or sets a reference to the node's geometric shape definition. This is a dependency property.

ShapeGeometry

Gets a Geometry object that represents the ShapeNode outline and is automatically generated from the current Shape and Bounds values. This is a dependency property.

ShapeOpacity

Gets or sets the shape opacity of this node. This is a dependency property. (Inherited from DiagramNode.)

ShapeVisibility

For internal use.

Stroke

Gets or sets the Brush that specifies how the item outline is painted. This is a dependency property. (Inherited from DiagramItem.)

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. (Inherited from DiagramItem.)

StrokeDashCap

Gets or sets a PenLineCap enumeration value that specifies how the ends of a dash are drawn. This is a dependency property. (Inherited from DiagramItem.)

StrokeDashOffset

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

StrokeEndLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the end of a Stroke. This is a dependency property. (Inherited from DiagramItem.)

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. This is a dependency property. (Inherited from DiagramItem.)

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. (Inherited from DiagramItem.)

StrokeStartLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the start of a Stroke. This is a dependency property. (Inherited from DiagramItem.)

StrokeThickness

Gets or sets the width of the DiagramItem stroke outline. This is a dependency property. (Inherited from DiagramItem.)

Text

Gets or sets the text displayed inside the shape node. This is a dependency property.

TextAlignment

Gets or sets how the text should be aligned in the ShapeNode's text box. This is a dependency property.

TextBrush

Gets or sets the color of the item's text. This is a dependency property. (Inherited from DiagramItem.)

TextFormat

Gets or sets the alignment of the text that is displayed inside shape nodes.

TextHeight

Gets or sets the height of the ShapeNode text area. This is a dependency property.

TextMargin

Gets or sets the offset of the ShapeNode text area from the origin of its container Grid. This is a dependency property.

TextWidth

Gets or sets the width of the ShapeNode text area. This is a dependency property.

TextWrapping

Gets or sets whether text wraps when it extends beyond the available width of the node. This is a dependency property.

ToolTip

Gets or sets the contents of the tooltip displayed when the mouse pointer rests over the diagram element. (Inherited from DiagramItem.)

Transparent

Gets or sets a value indicating whether this shape node is transparent. This is a dependency property.

VerticalImageAlignment

Gets or sets the vertical alignment of the ShapeNode's image. This is a dependency property.

VerticalTextBlockAlignment

Gets or sets the vertical alignment of the TextBlock used to display the ShapeNode text relative to its container Grid. This is a dependency property.

Visible

Gets or sets a value indicating whether this item is visible. (Inherited from DiagramItem.)

Weight

Gets or sets a weight value used in layout and path-finding algorithms. (Inherited from DiagramItem.)

ZIndex

Gets or sets the z-order position of the object. (Inherited from DiagramItem.)

 Protected Properties

  Name Description

Size

Gets the size of this item. (Inherited from DiagramItem.)

 Public Methods

  Name Description

AcceptLinks

Determines whether the node can be connected with links of the specified type. (Inherited from DiagramNode.)

Attach

Attaches the specified subordinate node to this node, so that when this node is moved, the subordinate follows it. (Inherited from DiagramNode.)

AttachTo

Attaches this node to the specified master node so that when the master is moved, the attached node follows it. (Inherited from DiagramNode.)

Clone

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

ContainsPoint

DiagramItem.ContainsPoint override. (Inherited from DiagramNode.)

Detach

Overloaded.   (Inherited from DiagramNode.)

GetAllIncomingLinks

Gets a collection of all links entering this node. (Inherited from DiagramNode.)

GetAllLinks

Gets all links connected to this node. (Inherited from DiagramNode.)

GetAllOutgoingLinks

Get a collection of all links going out of this node. (Inherited from DiagramNode.)

GetBounds

Gets the bounding rectangle of this item. (Inherited from DiagramNode.)

GetCenter

Gets the center of this node's bounding rectangle. (Inherited from DiagramNode.)

GetIntersection

Calculates the intersecion point between the segment defined by the specified point pair and the node's outline. (Inherited from DiagramNode.)

GetNearestBorderPoint

Returns a point that lies on the outline of this node, at the shortest distance from the specified point. (Inherited from DiagramNode.)

GetOutlinePoly

DiagramNode.GetOutlinePoly override.

GetRepaintRect

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

GetRotatedBounds

Overloaded.   (Inherited from DiagramNode.)

HitTestHandle

DiagramItem.HitTestHandle override. (Inherited from DiagramNode.)

NotInteractive

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

OnBoundsChanged

Sets the location and size of this node. (Inherited from DiagramNode.)

OnDragOut

Invoked when a diagram item is being dragged out of this node. (Inherited from DiagramNode.)

OnDragOver

Invoked when a diagram item is being dragged over this node. (Inherited from DiagramNode.)

OnDropOver

Invoked when a diagram item is dropped over this node. (Inherited from DiagramNode.)

ReassignAnchorPoints

Reassigns links to anchor points so that they are evenly disctributed. (Inherited from DiagramNode.)

ReassignUnanchoredLinks

Reassigns unanchored links (Inherited from DiagramNode.)

ResizeToFitImage

Makes the shape node as big as the image it displays.

ResizeToFitText

Overloaded.  

RestoreLocationState

DiagramItem.RestoreLocationState override. (Inherited from DiagramNode.)

SaveLocationState

DiagramItem.SaveState override. (Inherited from DiagramNode.)

SetBounds

Sets the location and size of this node. (Inherited from DiagramNode.)

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

AddAnchorPointVisuals

Adds the AnchorPattern points to the node's Adorner. (Inherited from DiagramNode.)

AddExpandButton

Adds the ExpandButton to the node's Adorner. (Inherited from DiagramNode.)

AddHandlesToCanvas

Overloaded.   (Inherited from DiagramNode.)

AllowDrag

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

CancelDrag

DiagramItem.CancelDrag override. (Inherited from DiagramNode.)

CreateAnchorPointVisual

Creates a Path that represents the specified AnchorPoint. (Inherited from DiagramNode.)

CreateConnectionPoint

Creates a connection point between this node and the specified link at the specified point. (Inherited from DiagramNode.)

CreateState

DiagramItem.CreateState override.

EndDrag

DiagramItem.EndDrag override. (Inherited from DiagramNode.)

GetOutline

DiagramNode.GetOutline override.

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. (Inherited from DiagramNode.)

OnApplyTemplate

FrameworkElement.OnApplyTemplate override. (Inherited from DiagramNode.)

OnChildModified

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

OnLoad

DiagramItem.OnLoad override. (Inherited from DiagramNode.)

OnMeasureUnitChanged

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

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. (Inherited from DiagramNode.)

RemoveAnchorPointVisuals

Removes the AnchorPattern points from the node's Adorner. (Inherited from DiagramNode.)

RemoveHandlesFromCanvas

DiagramItem.RemoveHandlesFromCanvas override. (Inherited from DiagramNode.)

RestoreState

DiagramItem.RestoreState override.

SaveState

DiagramItem.SaveState override.

SaveToXml

Saves the item content into an XML element.

ScaleElements

Scales the node's elements by specified amount. (Inherited from DiagramNode.)

SetIncomingLinks

Sets the incoming links collection of this node. (Inherited from DiagramNode.)

SetOutgoingLinks

Sets the outgoing links collection of this node. (Inherited from DiagramNode.)

SetReflexive

Invoked to let a node set the shape of a reflexive link connected to it. (Inherited from DiagramNode.)

StartDrag

DiagramItem.StartDrag override. (Inherited from DiagramNode.)

UpdateDrag

DiagramItem.UpdateDrag override. (Inherited from DiagramNode.)

UpdateHandleColors

DiagramItem.UpdateHandleColors override. (Inherited from DiagramNode.)

UpdateHandlePositions

DiagramItem.UpdateHandlePositions override. (Inherited from DiagramNode.)

UpdateStates

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

UpdateVisuals

DiagramNode.UpdateVisuals override.

 See Also