MindFusion.Wpf Pack Programmer's Guide
DiagramExtensions Methods
 


 Public Methods

  Name Description

ActiveItem

Sets the active diagram element.

ActiveLayer

Sets the zero-based index of the active layer.

AdapterHandlesStyle

Sets the default value for the HandlesStyle property of new ControlNode nodes.

AdjustmentHandlesSize

Sets the size of the handles, which appear around selected objects.

AlignmentGuidePen

Sets the pen used to draw alignment guides.

AlignToGrid

Sets a value indicating whether the diagram items should be aligned to a grid.

AllowLinkCursor

Sets the mouse cursor shown to the user when an arrow can be created.

AllowLinksRepeat

Sets a value indicating whether more than one link can connect the same origin and destination diagram nodes.

AllowMultipleResize

Specifies whether multiple selected nodes can be resized simultaneously.

AllowSelfLoops

Sets a value indicating whether self-loops are allowed.

AllowSplitLinks

Sets a value indicating whether link segments can be added and removed interactively.

AllowUnanchoredLinks

Sets a value indicating whether links can be connected to nodes to which there aren't anchor points assigned.

AllowUnconnectedLinks

Sets a value indicating whether users are allowed to draw links that are not connected to any node.

AutoAlignDistance

Sets the maximal horizontal or vertical distance at which a node aligns to the borders ot other nodes.

AutoAlignNodes

Sets whether nodes should automatically align to the borders ot other nodes during user interaction.

AutoCloseDistance

Sets the maximum distance between first and last points of a FreeFormNode for which the node's outline is closed automatically.

AutoHighlightRows

Sets whether a table row should be highlighted when the user clicks on it.

AutoResize

Sets a value indicating whether the document area should be resized automatically so it fits the diagram contents.

AutoSnapDistance

Specifies the maximum distance at which links auto-snap to nodes.

AutoSnapLinks

Sets the default value for the SnapToNodeBorder property of new links.

BackBrush

Overloaded.  

BackgroundImage

Sets the image displayed as background of this diagram.

BackgroundImageAlign

Sets a value indicating how the background image is positioned, relatively either to the control's window or to the scrollable document area.

BarcodeNodeStyle

Sets the theme-level style for barcode nodes.

Behavior

Sets a value indicating how the control responds to user actions.

Bounds

Sets a value representing the size of the diagram's scrollable area.

CellCustomDraw

Sets the default type of custom painting done on the cells of tables.

CellFrameStyle

Sets the default cell border style of new tables.

ContainerCaption

Sets the default value for the Caption property of containers.

ContainerCaptionHeight

Sets the default value for the CaptionHeight property of containers.

ContainerHighlightPen

Sets the default value for the HighlightPen property of containers.

ContainerMargin

Sets the default value for the Margin property of containers.

ContainerMinimumSize

Sets the default value for the MinimumSize property of containers.

ContainerNodeStyle

Sets the theme-level style for container nodes.

ContainersFoldable

Sets the default value for the Foldable property of containers.

ControlMouseAction

Sets the ways mouse clicks are handled by default in the controls hosted in ControlHost objects.

CounterDiagonalResizeCursor

Sets the mouse cursor shown to the user if dragging would resize an object both vertically and horizontally.

CrossingRadius

Sets the radius length of decorations displayed at link intersection points.

CustomBehavior

Sets a custom Behavior object specifying how the diagram responds to mouse input.

CustomLinkType

Sets the type of a MindFusion.Diagramming.Wpf.DiagramLink derived class whose instance should be created when a user starts drawing.

CustomNodeType

Sets the type of a MindFusion.Diagramming.Wpf.DiagramNode derived class whose instance should be created when a user starts drawing.

DefaultControlType

Sets the type of the controls that will be hosted by default in newly created ControlNode objects.

DefaultEffect

Sets the default value for UIElement.Effect property of new items.

DefaultShape

Sets the default shape of shape nodes.

DelKeyAction

Sets a value that specifies what action should be performed when the user hits the Del key.

DiagonalResizeCursor

Sets the mouse cursor shown to the user if dragging would resize an object both vertically and horizontally.

DiagramLinkStyle

Sets the theme-level style for diagram links.

Dirty

Sets a value indicating whether the diagram has changed since the last save.

DisallowCursor

Sets the mouse cursor shown to the user when an object cannot be created at a given location.

DisallowLinkCursor

Sets the mouse cursor shown to the user when an arrow is being created but cannot be ended at the current location.

DrawLinkCursor

Sets the mouse cursor shown to the user when an arrow can be started at the current position.

DynamicLinks

Sets the default value for the Dynamic property of new links.

EnableLanes

Sets whether lanes are enabled.

EnableStyledText

Sets the default value for the EnableStyledText property of new nodes.

ExpandButtonAction

Sets a value indicating what should happen when a user clicks the [+/-] button that is displayed near expandable nodes.

ExpandButtonPosition

Sets where expand/collapse buttons are located relatively to their nodes.

ExpandOnIncoming

Sets a value, indicating in which direction object hierarchies are expanded.

Font

Sets the default font for new diagram items.

FreeFormAttractDistance

Sets the radius around dragged free-form adjustment handle in which other points of FreeFormNode are modified too.

FreeFormTargets

An array of Shape objects used to replace FreeFormNode instances with ShapeNode ones when Behavior is set to LinkFreeShapes or DrawFreeShapes.

GridOffsetX

Sets the horizontal offset of the first point of the alignment grid.

GridOffsetY

Sets the vertical offset of the first point of the alignment grid.

GridPen

Sets the Pen/Brush of the grid lines/points.

GridSizeX

Sets the horizontal distance between adjacent grid points.

GridSizeY

Sets the vertical distance between adjacent grid points.

GridStyle

Sets the visual style of the alignment grid.

HitTestPriority

Sets a value indicating the order in which items are hit-tested.

HorizontalResizeCursor

Sets the mouse cursor shown to the user if dragging would resize an object horizontally.

LinkBaseShape

Sets the shape displayed at the base of new links.

LinkBaseShapeSize

Sets the default size of the base of new links.

LinkBrush

Overloaded.  

LinkCascadeOrientation

Sets the initial orientation of the first segment of new cascading links.

LinkCrossings

Sets how to render the intersection points where links cross their paths.

LinkCustomDraw

Sets the default type of custom painting done on links.

LinkEndsMovable

Sets a value indicating whether arrow ends can be moved by users after the link is created.

LinkHandlesStyle

Sets the default value for the HandlesStyle property of new links.

LinkHeadShape

Sets the shape displayed as head of new links.

LinkHeadShapeSize

Sets the default size of arrowheads.

LinkHitDistance

Sets a value specifying how far from a link a click is still considered a hit.

LinkIntermediateShape

Sets default shape to be displayed in the middle of each segment of links.

LinkIntermediateShapeSize

Sets the default size of the shapes at middles of link segments.

LinkPen

Sets the default value for the Pen and HeadPen properties of links.

LinkRouter

Sets the component used to find paths for auto-routed links when diagram nodes are added or their positions change.

LinkSegments

Sets the default number of link segments.

LinkShape

Sets the default shape of diagram links.

LinksRetainForm

Sets whether links should maintain their forms if the nodes linked with those links are moved around.

LinkText

Sets the default text of links.

LinkTextStyle

Sets default placement and orientation for links' text.

MagnifierFactor

Sets the zoom factor of the magnifier tool.

MagnifierHeight

Sets the height of the magnifier tool.

MagnifierStyle

Sets the style of the magnifier tool.

MagnifierWidth

Sets the width of the magnifier tool.

MeasureUnit

Sets the unit of measure used for logical coordinates in this diagram.

MergeThreshold

Sets the maximum distance between adjacent control points of a link at which the respective segments can be merged.

MinimumNodeSize

Sets the minimum node size that the user is allowed to set.

ModificationEffect

Sets the visual effect to apply during interactive modification of items.

MoveCursor

Sets the mouse cursor shown to the user if the pointed object can be modified.

NodesExpandable

Sets a value indicating whether newly created nodes can be expanded.

NodeTemplate

Sets the default DataTemplate used to display TemplatedNodes.

OverrideCursor

Sets the cursor and stops changing it depending on the context.

PanCursor

Sets the mouse cursor displayed while panning the diagram view.

PanInertia

Sets a value indicating whether panning the view will have inertia.

PointerCursor

Sets the mouse cursor shown to the user when no modification is performed.

PolygonalTextLayout

Sets a value indicating whether to enable the formatting of text inside non-rectangular shape node outlines.

RecursiveExpand

Sets value indicating how a tree is expanded.

RemoveHiddenItemsFromVisualTree

For internal use.

RestrictItemsToBounds

Sets a value indicating whether users are allowed to place items outside the scrollable area of the diagram.

RotateCursor

Sets the cursor shown when the mouse is over a node rotation handle.

RotationStep

Sets the RotationAngle increment when users rotate a node.

RoundedLinks

Sets a value indicating whether the joins between segments of Polyline and Cascading links should be rounded.

RoundedLinksRadius

Sets the radius of arc joins of rounded links' segments.

RoundRectFactor

Sets the relative size of arcs displayed at the corners of rounded rectangles.

RouteLinks

Sets a value indicating whether links should avoid nodes by going the shortest path from their origin to their destination without crossing any other nodes.

RowHighlightBrush

Overloaded.  

SelectAfterCreate

Sets a value indicating whether newly created objects are automatically selected.

SelectionOnTop

Sets a value indicating whether selected items should be painted on top of other items.

ShapeBrush

Overloaded.  

ShapeCustomDraw

Sets the default type of custom painting done for shape nodes.

ShapeHandlesStyle

Sets the default value for the HandlesStyle property of new shape nodes.

ShapeNodeStyle

Sets the theme-level style for shape nodes.

ShapeOrientation

Sets the default value for the ShapeOrientation property of shape nodes.

ShapePen

Sets the default value for the Pen property of shape nodes.

ShapeText

Sets the default text of shape nodes.

ShowAnchors

Sets a value indicating whether and when node anchor points should be displayed.

ShowDisabledHandles

Sets a value indicating whether manipulation handles are painted when they are disabled.

ShowGrid

Sets a value indicating whether the alignment grid is visible.

ShowHandlesOnDrag

Sets a value indicating whether to display selection handles of objects under the mouse while another object is being modified.

SnapToAnchor

Sets when arrow end points should be aligned to the nearest anchor points.

SortGroupsByZ

Sets a value indicating whether grouped items should be drawn sorted by their z-order while the whole group is being moved.

TableBrush

Overloaded.  

TableCaption

Sets the default text for tables' captions.

TableCaptionHeight

Sets the default height of table captions.

TableColumnCount

Sets the default number of table columns.

TableColumnWidth

Sets the default width of tables' columns.

TableConnectionStyle

Sets a value indicating whether drawing an arrow between tables should link rows of those tables, or the tables as whole entities.

TableCustomDraw

Sets the default type of custom painting done on tables.

TableHandlesStyle

Sets the default value for the HandlesStyle property of new tables.

TableNodeStyle

Sets the theme-level style for table nodes.

TablePen

Sets the default value for the Pen property of tables.

TableRowCount

Sets the default number of table rows.

TableRowHeight

Sets the default height of tables' rows.

TableShape

Sets the default shape of new tables.

TablesScrollable

Sets the default value for the Scrollable property of new tables.

Tag

Sets custom data associated with this diagram.

TextBrush

Overloaded.  

TextFormat

Sets the default alignment and formatting style for text displayed inside nodes and table cells.

Theme

Sets the theme associated with the diagram.

ToolTip

Sets a short text message displayed when the mouse pointer rests over the diagram.

TreeViewNodeStyle

Sets the theme-level style for treeview nodes.

ValidityChecks

Sets a value indicating whether validity checks are performed each time an item is added to the diagram.

VerticalResizeCursor

Sets the mouse cursor shown to the user if dragging would resize an object vertically.

 See Also

DiagramExtensions Class
MindFusion.Diagramming.Wpf.Fluent Namespace