Search
ContainerNode Members
Constructors Fields Properties Methods
 


Implements nodes that can contain other nodes.

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

 Public Constructors

  Name Description

ContainerNode

Overloaded. Initializes a new instance of the ContainerNode class.

 Public Fields

  Name Description

BoundsProperty

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

BrushProperty

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

CaptionBackBrushProperty

Identifies the CaptionBackBrush dependency property.

CaptionHeightProperty

Identifies the CaptionHeight dependency property.

ClipChildrenProperty

Identifies the ClipChildren dependency property.

CornerRadiusProperty

Identifies the CornerRadius dependency property.

EffectsSourceProperty

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

EnabledHandlesProperty

Identifies the EnabledHandles property. (Inherited from DiagramNode.)

FontFamilyProperty

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

FontSizeProperty

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

FontStretchProperty

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

FontStyleProperty

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

FontWeightProperty

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

IdProperty

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

RotationAngleProperty

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

ShapeProperty

Identifies the Shape dependency property.

StrokeDashCapProperty

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

StrokeDashStyleProperty

Identifies the StrokeDashStyle 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.)

TemplateProperty

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

TextAlignmentProperty

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

TextBrushProperty

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

TextDecorationsProperty

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

TextPaddingProperty

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

TextProperty

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

TextTrimmingProperty

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

TextVerticalAlignmentProperty

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

TextWrappingProperty

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

 Protected Fields

  Name Description

disposed

For internal use. (Inherited from DiagramItem.)

 Public Properties

  Name Description

Adorner

A Visual that contains the item's adjustment handles. (Inherited from DiagramItem.)

AllowAddChildren

Gets or sets a value indicating whether child nodes can be added interactively to this container.

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.)

AllowRemoveChildren

Gets or sets a value indicating whether child nodes can be removed interactively from this container.

AnchorPattern

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

AutoDeleteChildren

Gets or sets whether deleting this container should also remove its child items from the diagram.

AutoGrow

Gets or sets a value indicating whether the container should grow in size when nodes are added to it.

AutoShrink

Gets or sets a value indicating whether the container should shrink in size when nodes are removed from it.

Bounds

Gets or sets the rectangle that defines the position of the diagram node. (Inherited from DiagramNode.)

Brush

Gets or sets the brush used to fill the interior of this item. (Inherited from DiagramItem.)

Caption

Gets or sets the container caption text.

CaptionBackBrush

Gets or sets the brush used to paint the caption bar of this container.

CaptionBrush

Gets or sets the brush with which container's caption text is rendered.

CaptionFormat

Gets or sets the caption alignment and format.

CaptionHeight

Gets or sets the height of the container's caption bar.

Children

Gets the child nodes of this container.

ClipChildren

Gets or sets a value indicating whether child items should be clipped by container boundaries.

ConstrainedHeight

Gets whether text layout area has limited height. (Inherited from DiagramItem.)

Constraints

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

Container

Gets the parent ContainerNode containing this node. (Inherited from DiagramNode.)

CornerRadius

Gets or sets the radius of node's corners when Shape is set to RoundedRectangle.

DividerPen

Gets or sets the pen used to draw the divider line between node's caption bar and content area.

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.)

Foldable

Gets or sets a value indicating whether the user is allowed to fold this container.

Folded

Gets or sets a value indicating whether this container is folded.

FoldedSize

Gets or sets the size of the container when folded.

FoldIconSize

Gets or sets the size of the fold/unfold icon.

FontFamily

Gets or sets the preferred font family for this DiagramItem. (Inherited from DiagramItem.)

FontSize

Gets or sets the font size for this DiagramItem. (Inherited from DiagramItem.)

FontStretch

Gets or sets the font-stretching characteristics for this DiagramItem. (Inherited from DiagramItem.)

FontStyle

Gets or sets the font style for this DiagramItem. (Inherited from DiagramItem.)

FontWeight

Gets or sets the font weight for this DiagramItem. (Inherited from DiagramItem.)

GridAlignPoint

Gets or sets the node's point that should align to a grid point when the node is moved. (Inherited from DiagramNode.)

HandlesStyle

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

HighlightPen

Gets or sets the pen used to draw the container frame lines when an item is dragged over the container.

HyperLink

Gets or sets the hyperlink associated with this diagram item. (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.)

IgnoreRotation

Gets or sets whether container rotation affects child nodes.

IncomingLinks

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

Labels

Returns the list of supplementary labels displayed by this node. (Inherited from DiagramNode.)

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.)

Margin

Gets or sets how much space should be left between contained nodes and the container borders.

MasterGroup

Gets a reference to the group to which this node is attached. (Inherited from DiagramNode.)

MasterItem

Returns the node's Container or main item of MasterGroup. (Inherited from DiagramNode.)

MinimumSize

Gets or sets the minimum size of the container.

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.)

Parent

Gets the diagram that contains this item. (Inherited from DiagramItem.)

Printable

Gets or sets a value indicating whether to print the item. (Inherited from DiagramItem.)

RotationAngle

Gets or sets the rotation angle of this node. (Inherited from DiagramNode.)

RuntimeIndex

For internal use. (Inherited from DiagramItem.)

Scrollable

Gets or sets a value indicating whether users are allowed to scroll the contents of this container.

ScrollX

Gets or sets the container's horizontal scroll position.

ScrollY

Gets or sets the container's vertical scroll position.

Selected

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

Shape

Gets or sets the shape of the container's outline.

Stroke

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

StrokeDashCap

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

StrokeDashStyle

Gets or sets the pattern of dashes and gaps used to outline items. (Inherited from DiagramItem.)

StrokeEndLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the end of a Stroke. (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. (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. (Inherited from DiagramItem.)

StrokeStartLineCap

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

StrokeThickness

Gets or sets the width of the DiagramItem stroke outline. (Inherited from DiagramItem.)

SubordinateGroup

Gets a reference to the group of items that are attached to this one. (Inherited from DiagramItem.)

Template

Gets or sets the DataTemplate used to display this node. (Inherited from DiagramNode.)

Text

Gets or sets the text displayed inside this item. (Inherited from DiagramItem.)

TextAlignment

Gets or sets a value that indicates the horizontal alignment of text content. (Inherited from DiagramItem.)

TextBrush

Gets or sets the brush used to draw the item's text. (Inherited from DiagramItem.)

TextDecorations

Gets or sets the effects to apply to the text of this DiagramItem. (Inherited from DiagramItem.)

TextPadding

Gets or sets the thickness of padding space between the item boundaries and its text. (Inherited from DiagramItem.)

TextTrimming

Gets or sets the text trimming to employ when text overflows the item area. (Inherited from DiagramItem.)

TextVerticalAlignment

Gets or sets a value that indicates the vertical alignment of text content. (Inherited from DiagramItem.)

TextWrapping

Gets or sets how this DiagramItem should wrap text. (Inherited from DiagramItem.)

TopLevel

DiagramItem.TopLevel override. (Inherited from DiagramNode.)

UIElement

Gets the UIElement associated with this DiagramItem. (Inherited from DiagramItem.)

UnfoldedSize

Returns the original size of a folded container.

Visible

Gets or sets a value indicating whether the container is visible.

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

 Protected Properties

  Name Description

LogicalChildren

FrameworkElement.LogicalChildren override. (Inherited from DiagramNode.)

MeasureUnit

Returns the diagram measure unit. (Inherited from DiagramItem.)

Size

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

VisualChildrenCount

Visual.VisualChildrenCount override.

 Public Methods

  Name Description

AcceptLinks

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

Add

Overloaded. Adds a node to this container.

AddElement

For internal use. Implements VisualContainer.AddElement.

AddLabel

Overloaded.   (Inherited from DiagramNode.)

Arrange

Arranges the container's children with the given layout.

ArrangeAnimated

Arranges the container's children using the given layout, and animates items moving to their new positions.

ArrangeAsync

Arranges the container's children with the given layout asynchronously.

AttachTo

Overloaded. Attaches this node to another diagram item. (Inherited from DiagramNode.)

ClearStyleableProperties

Clears the local values of all styleable appearance properties. (Inherited from DiagramItem.)

Clone

DiagramItem.Clone override. Creates a copy of this item.

Collapse

Hides all nodes and links in the subtree starting from this node. (Inherited from DiagramNode.)

ContainsPoint

Overloaded.   (Inherited from DiagramNode.)

ContainsRecursively

Determines whether this container contains the specified node, either directly or recursively through other containers.

Detach

Detaches this node from its master item. (Inherited from DiagramNode.)

Dispose

Overloaded.   (Inherited from DiagramItem.)

Draw

DiagramItem.Draw override. (Inherited from DiagramNode.)

DrawAnchorPoints

Draws the anchor points of this node. (Inherited from DiagramNode.)

DrawHandles

DiagramItem.DrawHandles override. (Inherited from DiagramNode.)

DrawLocal

Draws the container on the specified DrawingContext surface.

Expand

Shows all nodes and links in the subtree starting from this node. (Inherited from DiagramNode.)

GetAllIncomingLinks

Overloaded.   (Inherited from DiagramNode.)

GetAllLinks

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

GetAllOutgoingLinks

Overloaded.   (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.)

GetContainer

Retrieves the container node (if any) the specified node belongs to.

GetContentBounds

Gets the boundaries of area occupied by child nodes.

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.)

GetRegion

DiagramItem.GetRegion override. (Inherited from DiagramNode.)

GetRepaintRect

DiagramItem.GetRepaintRect override. (Inherited from DiagramNode.)

GetRotatedBounds

Overloaded.   (Inherited from DiagramNode.)

GetRotationAngle

Gets the rotation angle of this node. (Inherited from DiagramNode.)

GetToolTip

DiagramItem.GetToolTip override. (Inherited from DiagramNode.)

HitTest

DiagramItem.HitTest override.

HitTestHandle

DiagramNode.HitTestHandle override.

HitTestManipulators

DiagramItem.HitTestManipulators override. (Inherited from DiagramNode.)

Intersects

DiagramItem.Intersects override. Checks whether the specified rectangle intersects with this node. (Inherited from DiagramNode.)

LabelFromPoint

Returns the label whose layout rectangle contains the specified point. (Inherited from DiagramNode.)

Move

Moves the node to the specified location. (Inherited from DiagramNode.)

NotInteractive

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

NowModifying

Gets a flag indicating whether this object is being currently modified interactively by the user. (Inherited from DiagramItem.)

OnDragOut

Invoked when a diagram item is being dragged out of this node.

OnDragOver

Invoked when a diagram item is being dragged over this node.

OnDropOver

Invoked when a diagram item is dropped over this node.

Query

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

ReassignAnchorPoints

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

ReassignUnanchoredLinks

Reassigns unanchored links (Inherited from DiagramNode.)

Remove

Removes a node from this container.

RemoveElement

For internal use. Implements VisualContainer.RemoveElement.

RemoveLabel

Removes the specified label from this node. (Inherited from DiagramNode.)

Repaint

DiagramItem.Repaint override. (Inherited from DiagramNode.)

Resize

Resizes the node. (Inherited from DiagramNode.)

ResizeToFitChildren

Resizes the container making it big enough to contain its child nodes.

SetBounds

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

SetExpandedFlag

Sets the 'expanded' flag, repainting the node. (Inherited from DiagramNode.)

SetRect

This method is used internally by the Ruler control to align nodes. (Inherited from DiagramNode.)

TransformDiagramToItem

Transforms a point from document coordinates to item coordinates. (Inherited from DiagramItem.)

TransformItemToDiagram

Transforms point from item-relative coordinates to document coordinates. (Inherited from DiagramItem.)

UpdateAnimation

Invoked by running animations to update an item according to current animation progress. (Inherited from DiagramNode.)

UpdateBounds

Overloaded.  

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

AddToVisualContainer

Adds this item to specified container element. (Inherited from DiagramItem.)

AllowCreate

DiagramItem.AllowCreate override. (Inherited from DiagramNode.)

AllowModify

DiagramItem.AllowModify override. (Inherited from DiagramNode.)

ArrangeOverride

FrameworkElement.ArrangeOverride override.

CompleteCreate

DiagramItem.CompleteCreate override. (Inherited from DiagramNode.)

CompleteModify

Overloaded.   (Inherited from DiagramNode.)

ConstraintsInfringed

Check whether the KeepInsideParent constrained is being violated. (Inherited from DiagramNode.)

CreateConnectionPoint

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

CreateProperties

DiagramItem.CreateProperties override.

CreateRenderer

DiagramItem.CreateRenderer override. (Inherited from DiagramNode.)

CreateState

DiagramItem.CreateState override. (Inherited from DiagramNode.)

DrawManipulators

Draws the associated manipulators in the specified context. (Inherited from DiagramItem.)

EnumStyleableProperties

DiagramItem.EnumStyleableProperties override.

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

GetDefaultTemplate

Returns a DataTemplate that should be used to render the node if its own Template property is not set. (Inherited from DiagramNode.)

GetHeight

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

GetLocalBounds

Gets this node's bounding rectangle in local coordinates. (Inherited from DiagramNode.)

GetTextRect

Subtracts the TextPadding values from the specified rectangle. (Inherited from DiagramItem.)

GetVisualChild

Visual.GetVisualChild override.

GetWidth

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

GetX

Gets the x-coordinate of the current position of this item. (Inherited from DiagramItem.)

GetY

Gets the y-coordinate of the current position of this item. (Inherited from DiagramItem.)

GroupContains

Determines whether this node is a predecessor of the specified node in the group hierarchy. (Inherited from DiagramNode.)

LoadFromJson

Loads the node from a JSON object.

LoadFromXml

Loads the item content from an XML element.

MeasureOverride

FrameworkElement.MeasureOverride override.

OnAdd

Called when this node is added to the Diagram. (Inherited from DiagramNode.)

OnAppearanceChanged

Invoked when any of the item's appearance properties changes. (Inherited from DiagramItem.)

OnChildModified

Called when a group child node has been modified.

OnChildModifying

DiagramNode.OnChildModifying override.

OnLoad

DiagramItem.OnLoad override.

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes.

OnMouseDown

UIElement.OnMouseDown override. (Inherited from DiagramItem.)

OnMouseUp

UIElement.OnMouseUp override. (Inherited from DiagramItem.)

OnPositioningChanged

Called when the item's position changes. (Inherited from DiagramItem.)

OnPreviewMouseDown

UIElement.OnPreviewMouseWheel override. (Inherited from DiagramItem.)

OnPreviewMouseUp

UIElement.OnPreviewMouseUp override. (Inherited from DiagramItem.)

OnRemove

DiagramNode.OnRemove override.

OnRender

UIElement.OnRender override. (Inherited from DiagramItem.)

OnSerializablePropertyChanged

Invoked when a FrameworkElement property serializable by DiagramItem changes. (Inherited from DiagramItem.)

OnSizeChanged

Called when the size of the item changes.

OnStrokeAttributeChanged

Invoked when any of the item's stroke attributes changes. (Inherited from DiagramItem.)

OnTextAttributeChanged

Invoked when any of the attributes defined in ITextAttributes changes. (Inherited from DiagramItem.)

OnUpdateBounds

DiagramNode.OnUpdateBounds override.

OnZoomChanged

Called when the diagram's ZoomFactor changes.

RestoreProperties

DiagramNode.RestoreProperties override.

RestoreState

DiagramItem.RestoreState override. (Inherited from DiagramNode.)

SaveProperties

DiagramNode.SaveProperties override.

SaveState

DiagramItem.SaveState override. (Inherited from DiagramNode.)

SaveToJson

Saves the node as a JSON object.

SaveToXml

Saves the item content into an XML element.

ScaleElements

DiagramNode.ScaleElements override.

SetDiagramDirty

Marks the diagram as changed. (Inherited from DiagramItem.)

SetExpandable

Internally sets the expandable state of this object to the specified value, adding or removing an Expander manipulator object if necessary. (Inherited from DiagramNode.)

SetExpanded

DiagramItem.SetExpanded override. (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.)

ShouldRender

Determines whether the item should be rendered in the current context. (Inherited from DiagramItem.)

ShouldRenderAnchorPoints

Determines whether the node should render its anchor points. (Inherited from DiagramNode.)

StartCreate

DiagramItem.StartCreate override. (Inherited from DiagramNode.)

StartModify

DiagramItem.StartModify override. (Inherited from DiagramNode.)

UpdateCreate

DiagramItem.UpdateCreate override. (Inherited from DiagramNode.)

UpdateGroup

Called to update the positions of subordinate nodes attached to this item when the attachment style is set to ControlledByMaster. (Inherited from DiagramItem.)

UpdateLinkIntersections

Updates the intersection points of links, conntected to this node and its outline, usually in response to change in the node's shape. (Inherited from DiagramNode.)

UpdateLinkPositions

Updates the end points of the links, connected to this node, usually in response to change in the node's size or shape. (Inherited from DiagramNode.)

UpdateModify

DiagramItem.UpdateModify override. (Inherited from DiagramNode.)

 See Also