Search
DiagramExtensions Members
Methods
 


Provides extension methods for Diagram fluent API.

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

 Public Methods

  Name Description

ActiveItem

Sets the active diagram element.

ActiveLayer

Sets the zero-based index of the active layer.

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 items in the diagram are aligned to grid.

AllowLinksRepeat

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

AllowMultipleResize

Sets whether multiple selected nodes can be resized simultaneously.

AllowSelfLoops

Sets value indicating whether reflexive links are allowed.

AllowSplitLinks

Sets a value indicating whether arrow 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 of other nodes.

AutoAlignNodes

Sets whether nodes should automatically align to the borders of 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 AutoSnapToNode property of new links.

BackBrush

Overloaded.  

BackgroundImage

Sets the diagram background image.

BackgroundImageAlign

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

BackgroundImageUrl

The URL of the Image painted as diagram's background. The advantage of this property is that the image is not included in the diagram payload, only the Url is included instead.

Bounds

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

BoundsPen

The pen with which the document bounds should be drawn.

BranchIndicatorColor

Sets the color of link branch indicators.

BranchIndicatorSize

Sets the size of link branch indicators.

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

Specifies the default container caption text.

ContainerCaptionHeight

Specifies the default container caption height.

ContainerHighlightPen

Specifies the Pen used to draw the container frame lines when an item is dragged over a container.

ContainerMargin

Specifies how much space should be left between contained nodes and the container borders.

ContainerMinimumSize

Specifies the minimum size of a container. The container won't shrink smaller than that size, even if it does not contain any items.

ContainersFoldable

Specifies whether new containers should be made foldable.

CrossingRadius

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

DefaultShape

Sets the default shape of shape nodes.

Dirty

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

DynamicLinks

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

EffectsProvider

Sets an object used to generate visual effects for shape nodes such as embossment and shadow dispersion.

EnableEmbossEffects

Sets a value indicating whether emboss effect for shape nodes is enabled.

EnableLanes

Sets whether lanes are enabled.

EnableShadowEffects

Sets a value indicating whether shadow dispersion effect for nodes is enabled.

EnableStyledText

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

ExpandButtonAction

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

ExteriorBrush

Overloaded.  

FocusedComponent

Sets the component within this diagram which is currently holding the input focus.

FoldedContainerSize

Sets the size of folded containers.

Font

Overloaded.  

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.

GridColor

Sets the color of the grid points.

GridOffsetX

Sets the horizontal offset of the first column of grid points.

GridOffsetY

Sets the vertical offset of the first row of grid 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.

Interaction

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

LinkBaseShape

Sets the shape displayed at the base of new links.

LinkBaseShapeSize

Sets the default size of the base of new links.

LinkBranchIndicator

Sets a value indicating what shapes to display as markers at points where overlapping Cascading links diverge.

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 link 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 arrow segments.

LinkMergeIndicator

Sets a value indicating what shapes to display as markers at points where overlapping Cascading links diverge.

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 arrow segments.

LinkShape

Sets the default style of arrow objects.

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.

MeasureUnit

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

MergeIndicatorColor

Sets the color of link merge indicators.

MergeIndicatorSize

Sets the size of link merge indicators.

MergeThreshold

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

MinimumNodeSize

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

NodesExpandable

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

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.

RestrictItemsToBounds

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

RoundedLinks

Specifies 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 specifying 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 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.

SerializationBinder

Sets a SerializationBinder object used to control class loading.

ShadowBrush

Overloaded.  

ShadowOffsetX

Sets the horizontal offset of objects' shadows.

ShadowOffsetY

Sets the vertical offset of objects' shadows.

ShadowsStyle

Sets the style for rendering shadows.

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.

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.

Style

Sets the style associated with the diagram.

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.

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 style of new tables.

TablesScrollable

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

Tag

Sets custom data associated with this diagram.

TextColor

Sets the default color of text displayed inside diagram items.

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.

TouchThreshold

Sets the threshold value for easier touch interaction through adjustment handles.

ValidityChecks

Sets a value indicating whether validity checks are performed each time an item is added to the diagram. That involves enumerating the item collections and can slow up the process considerably for large diagrams. Disable this property to skip the checks, however be sure that you don't add an item twice to the diagram and that links are created only between items in the same diagram.

 See Also