MindFusion.Wpf Pack Programmer's Guide
Diagram Properties
 


 Public Properties

  Name Description

ActiveItem

Gets or sets the active diagram element.

ActiveItemHandlesStyle

Gets the visual style of adjustment handles of the active item.

ActiveLayer

Gets or sets the zero-based index of the active layer.

AdapterHandlesStyle

Gets or sets the default value for the HandlesStyle property of new ControlNode nodes.

AdjustmentHandlesSize

Gets or sets the size of the handles, which appear around selected objects.

AlignmentGuidePen

Gets or sets the pen used to draw alignment guides.

AlignToGrid

Gets or sets a value indicating whether the diagram items should be aligned to a grid.

AllowLinkCursor

Gets or sets the mouse cursor shown to the user when an arrow can be created.

AllowLinksRepeat

Gets or 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

Gets or sets a value indicating whether self-loops are allowed.

AllowSplitLinks

Gets or sets a value indicating whether link segments can be added and removed interactively.

AllowUnanchoredLinks

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

AllowUnconnectedLinks

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

AutoAlignDistance

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

AutoAlignNodes

Gets or sets whether nodes should automatically align to the borders ot other nodes during user interaction.

AutoCloseDistance

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

AutoDeleteLinks

Gets or sets whether links are deleted automatically when their Origin or Destination is deleted.

AutoHighlightRows

Gets or sets whether a table row should be highlighted when the user clicks on it.

AutoResize

Gets or 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

Gets or sets the default value for the AutoSnapToNode property of new links.

BackBrush

Gets or sets the brush used for painting the diagram background.

BackgroundImage

Gets or sets the image displayed as background of this diagram.

BackgroundImageAlign

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

BarcodeNodeStyle

Gets or sets the theme-level style for barcode nodes.

Bounds

Gets or sets a value representing the size of the diagram's scrollable area.

CellCustomDraw

Gets or sets the default type of custom painting done on the cells of tables.

CellFrameStyle

Gets or sets the default cell border style of new tables.

ContainerCaption

Gets or sets the default value for the Caption property of containers.

ContainerCaptionHeight

Gets or sets the default value for the CaptionHeight property of containers.

ContainerHighlightPen

Gets or sets the default value for the HighlightPen property of containers.

ContainerMargin

Gets or sets the default value for the Margin property of containers.

ContainerMinimumSize

Gets or sets the default value for the MinimumSize property of containers.

ContainerNodeStyle

Gets or sets the theme-level style for container nodes.

ContainersFoldable

Gets or sets the default value for the Foldable property of containers.

Content

With this property, you can define diagram elements from XAML code.

ControlMouseAction

Gets or sets the ways mouse clicks are handled by default in the controls hosted in ControlHost objects.

CounterDiagonalResizeCursor

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

CrossingRadius

Gets or sets the radius length of decorations displayed at link intersection points.

CustomLinkType

Gets or sets the type of a DiagramLink-derived class whose instance should be created when a user starts drawing.

CustomNodeType

Gets or sets the type of a DiagramNode-derived class whose instance should be created when a user starts drawing.

DefaultControlType

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

DefaultEffect

Gets or sets the default value for UIElement.Effect property of new items.

DefaultShape

Gets or sets the default shape of shape nodes.

DelKeyAction

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

DiagonalResizeCursor

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

DiagramLinkStyle

Gets or sets the theme-level style for diagram links.

Dirty

Gets or sets a value indicating whether the diagram has changed since the last save.

DisabledHandlesStyle

Gets the visual style of disabled adjustment handles.

DisallowCursor

Gets or sets the mouse cursor shown to the user when an object cannot be created at a particular location.

DisallowLinkCursor

Gets or sets the mouse cursor shown to the user when a link is being created but cannot be ended at the current location.

DocumentPaginator

Gets or sets the DocumentPaginator used to retrieve pages when printing the diagram.

DocumentPlane

Gets the document plane of the diagram.

DrawLinkCursor

Gets or sets the mouse cursor shown to the user when a link can be started at the current position.

DynamicLinks

Gets or sets the default value for the Dynamic property of new links.

EnableLanes

Gets or sets whether lanes are enabled.

EnableSpatialIndex

Gets or sets whether to index item positions for faster hit-testing and viewport clipping queries.

EnableStyledText

Gets or sets the default value for the EnableStyledText property of new nodes.

ExpandButtonAction

Gets or sets a value indicating what should happen when a user clicks the [±] button that is displayed near expandable nodes.

ExpandButtonPosition

Gets or sets where expand/collapse buttons are located relatively to their nodes.

ExpandOnIncoming

Gets or sets a value, indicating in which direction object hierarchies are expanded.

Factory

Gets a Factory instance that lets you add programmatically new items to the diagram.

FoldedContainerSize

Gets or sets the size of folded containers.

Font

Gets or sets the default font for new diagram items.

FreeFormAttractDistance

Gets or 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.

GridLayer

GridLayer is diagram's Visual child that renders the alignment grid.

GridOffsetX

Gets or sets the horizontal offset of the first point of the alignment grid.

GridOffsetY

Gets or sets the vertical offset of the first point of the alignment grid.

GridPatternHatch

Gets or sets a hatch style used to draw dense alignment grid at low zoom levels.

GridPatternThreshold

Gets or sets the distance between grid points (in pixels) that triggers drawing using GridPatternHatch.

GridPen

Gets or sets the pen used to draw the grid lines or points.

GridSizeX

Gets or sets the horizontal distance between adjacent grid points.

GridSizeY

Gets or sets the vertical distance between adjacent grid points.

GridStyle

Gets or sets the visual style of the alignment grid.

Groups

Gets a collection of all groups in the diagram.

HitTestPriority

Gets or sets a value indicating the order in which items are hit-tested.

HorizontalResizeCursor

Gets or sets the mouse cursor shown to the user if dragging would resize an object horizontally.

Interaction

Gets an InteractionState instance representing the current action being carried out by the user.

IsProEdition

Gets a value indicating whether the currently loaded Diagramming for WPF is a professional version of the control.

IsTrialVersion

Gets a value indicating whether the currently loaded Diagramming for WPF is a trial version of the control.

Items

Gets a collection of all items in this diagram.

LaneGrid

Gets the Grid instance that represents the lane grid.

Layers

Gets a list of the layers in the current diagram.

LicenseKey

Gets or sets the license key of the control. (Inherited from DiagramBase.)

LinkBaseShape

Gets or sets the shape displayed at the base of new links.

LinkBaseShapeSize

Gets or sets the default size of the base of new links.

LinkBrush

Gets or sets the default value for the Brush property of links.

LinkCascadeOrientation

Gets or sets the initial orientation of the first segment of new cascading links.

LinkCrossings

Gets or sets how to render the intersection points where links cross their paths.

LinkCustomDraw

Gets or sets the default type of custom painting done on links.

LinkEndsMovable

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

LinkHandlesStyle

Gets or sets the default value for the HandlesStyle property of new links.

LinkHeadShape

Gets or sets the shape displayed as head of new links.

LinkHeadShapeSize

Gets or sets the default size of arrowheads.

LinkHitDistance

Gets or sets a value specifying how far from a link a click is still considered a hit.

LinkIntermediateShape

Gets or sets default shape to be displayed at the middle of each segment of links.

LinkIntermediateShapeSize

Gets or sets the default size of the shapes at middles of link segments.

LinkPen

Gets or sets the default value for the Pen and HeadPen properties of links.

LinkRouter

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

Links

Gets a collection of all DiagramLink objects in the diagram.

LinkSegments

Gets or sets the default number of link segments.

LinkShape

Gets or sets the default shape of diagram links.

LinksRetainForm

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

LinkText

Gets or sets the default text of links.

LinkTextStyle

Gets or sets default placement and orientation for links' text.

MagnifierFactor

Gets or sets the zoom factor of the magnifier tool.

MagnifierHeight

Gets or sets the height of the magnifier tool.

MagnifierStyle

Gets or sets the style of the magnifier tool.

MagnifierWidth

Gets or sets the width of the magnifier tool.

MeasureUnit

Gets or sets the unit of measure used for logical coordinates in this diagram.

MergeThreshold

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

MinimumNodeSize

Gets or sets the minimum node size that the user is allowed to set.

ModificationEffect

Gets or sets the visual effect to apply during interactive modification of items.

MoveCursor

Gets or sets the mouse cursor shown to the user if the pointed object can be modified.

NodeEffects

Gets a collection with all effects applied to the nodes of this diagram.

Nodes

Gets a collection of all DiagramNode objects in the diagram.

NodesExpandable

Gets or sets a value indicating whether newly created nodes can be expanded.

NodeTemplate

Gets or sets the default DataTemplate used to display TemplatedNodes.

NowLoading

Gets a value indicating whether the diagram data is now being loaded from a file.

OverrideCursor

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

PanCursor

Gets or sets the mouse cursor displayed while panning the diagram view.

PanInertia

Gets or sets a value indicating whether panning the view will have inertia.

PointerCursor

Gets or sets the mouse cursor shown to the user when no modification is performed.

PolygonalTextLayout

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

PrintOptions

Gets an object which provides customization properties for printing and print-preview.

RecursiveExpand

Gets or sets value indicating how a tree is expanded.

RemoveHiddenItemsFromVisualTree

For internal use.

RestrictItemsToBounds

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

RightToLeftStyledText

Enables right-to-left support in styled text.

RotateCursor

Gets or sets the cursor shown when the mouse is over a node rotation handle.

RotationStep

Gets or sets the RotationAngle increment when users rotate a node.

RoundedLinks

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

RoundedLinksRadius

Gets or sets the radius of arc joins of rounded links' segments.

RoundRectFactor

Gets or sets the relative size of arcs displayed at the corners of rounded rectangles.

RouteLinks

Gets or sets a value indicating whether links must avoid nodes by going the shortest path from their origin to their destination without crossing any other nodes.

RoutingOptions

Gets an object, which allows customizing various parameters of the link routing algorithm.

RowHighlightBrush

Gets or sets the Brush used to fill highlighted table rows.

ScriptHelper

Gets a ScriptHelper object which can be used in html scripts to instantiate various objects and to call static methods.

SelectAfterCreate

Gets or sets a value indicating whether newly created objects are automatically selected.

SelectedItemHandlesStyle

Gets the visual style of adjustment handles of selected items.

Selection

Gets a Selection instance that represents the selection of items in this diagram.

SelectionOnTop

Gets or sets a value indicating whether selected items should be painted on top of other items.

ShapeBrush

Gets or sets the default value for the Brush property of shape nodes.

ShapeCustomDraw

Gets or sets the default type of custom painting done for shape nodes.

ShapeHandlesStyle

Gets or sets the default value for the HandlesStyle property of new shape nodes.

ShapeNodeStyle

Gets or sets the theme-level style for shape nodes.

ShapeOrientation

Gets or sets the default value for the ShapeOrientation property of shape nodes.

ShapePen

Gets or sets the default value for the Pen property of shape nodes.

ShapeText

Gets or sets the default text of shape nodes.

ShowAnchors

Gets or sets a value indicating whether and when node anchor points should be displayed.

ShowDisabledHandles

Gets or sets a value indicating whether manipulation handles are painted when they are disabled.

ShowGrid

Gets or sets a value indicating whether the alignment grid is visible.

ShowHandlesOnDrag

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

SnapToAnchor

Gets or sets when link end points should be aligned to the nearest anchor points.

SortGroupsByZ

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

SvgNodeStyle

Gets or sets the theme-level style for SVG nodes.

TableBrush

Gets or sets the default value for the Brush property of tables.

TableCaption

Gets or sets the default text for tables' captions.

TableCaptionHeight

Gets or sets the default height of table captions.

TableColumnCount

Gets or sets the default number of table columns.

TableColumnWidth

Gets or sets the default width of tables' columns.

TableConnectionStyle

Gets or sets a value indicating whether drawing a link between tables will connect rows of those tables, or the tables as whole entities.

TableCustomDraw

Gets or sets the default type of custom painting done on tables.

TableHandlesStyle

Gets or sets the default value for the HandlesStyle property of new tables.

TableNodeStyle

Gets or sets the theme-level style for table nodes.

TablePen

Gets or sets the default value for the Pen property of tables.

TableRowCount

Gets or sets the default number of table rows.

TableRowHeight

Gets or sets the default height of tables' rows.

TableShape

Gets or sets the default shape of new tables.

TablesScrollable

Gets or sets the default value for the Scrollable property of new tables.

TextBrush

Gets or sets the default brush of text displayed inside diagram items.

TextFormat

Gets or sets the default alignment and formatting style for text displayed inside nodes and table cells.

Theme

Gets or sets the theme associated with the diagram.

TouchHitDistance

Specifies distance from adjustment handles at which they are still considered as hit when processing touch input.

TreeViewNodeStyle

Gets or sets the theme-level style for treeview nodes.

UndoManager

Gets a reference to the diagram's UndoManager instance.

ValidityChecks

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

VerticalResizeCursor

Gets or sets the mouse cursor shown to the user if dragging would resize an object vertically.

XmlOptions

An XmlOptions object providing properties for customizing the XML serialization process. (Inherited from DiagramBase.)

 Protected Properties

  Name Description

DocumentToDiagramMatrix

Returns a Matrix representing the transformation from diagram logical coordinates to the control's actual WPF device-indepepndent point coordinates.

LogicalChildren

Control.LogicalChildren override.

VisualChildrenCount

Visual.VisualChildrenCount override.

 See Also

Diagram Class
MindFusion.Diagramming.Wpf Namespace