ASP.NET Pack Programmer's Guide
Shape Constructor (Byte[])
See Also
 





Initializes a new instance of the Shape class with the specified outline.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Shape (
    byte[] outline
)

Visual Basic  Copy Code

Public New ( _
    outline() As Byte _
)

 Parameters

outline
An array containing even number of coordinate values, which define the points of the shape outline.

 Remarks

The specified array should contain even number of values. Each odd value represents the X-coordinate and each even value represents the Y-coordinate of the corresponding point in the shape outline. The point coordinates are expressed in numbers in the interval [0..100] indicating the position of this point relative to the node's bounding rectangle.

Exceptions

Exception Type

Condition

ArgumentException

The specified array is a null reference (Nothing in Visual Basic), does not contain even number of elements or contains less than six arguments.

 See Also

Shape Constructor Overload List
Shape Class
MindFusion.Diagramming Namespace