MindFusion.Wpf Pack Programmer's Guide
Shape.OutlineFormula Property
See Also
 





Gets or sets a formula describing the shape outline depending on the current width and height of the node.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public string OutlineFormula { get; set; }

Visual Basic  Copy Code

Public Property OutlineFormula As String

 Property Value

A string containing the script that defines the shape outline.

 Remarks

Shape formulas are small scripts that call one of the following functions to add graphics to the shape:

Function

Description

MoveTo (x,y)

Moves the current position to the specified point without drawing.

LineTo (x,y)

Draws a line from the current position to the specified point.

BezierTo (x1,y1,x2,y2,x3,y3)

Draws a Bezier curve from the current position to (x3,y3) using (x1,y1) and (x2,y2) as control points.

ArcTo (x,y,largeArc,clockwiseArc,rx,ry)

Draws an arc from the specified point to (x,y) where rx and ry are the ellipse radiuses and the arc flags are boolean values specifying which of the four possible arcs to draw.

Each of them starts drawing from the current position and changes the current position to their point argument after drawing. In addition, the scripts can access the current size of the node through the Width and Height variables.

 See Also

Shape Members
Shape Class
MindFusion.Diagramming.Wpf Namespace
Outline Property
DecorationsFormula Property