Search
Shape Members
Constructors Properties Methods
 


An instance of this class represents a shape defined through a series of arc, line and Bézier segments. The segments can be a part of the shape outline, in which case they define the part of the shape is filled, used for hit-testing and for aligning links to the node edges. Segments can also be added as decoration elements, in which case they only affect the appearance of a ShapeNode.

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

 Public Constructors

  Name Description

Shape

Overloaded. Initializes a new instance of the Shape class.

 Public Properties

  Name Description

AnchorPattern

Gets or sets the anchor pattern to use for nodes using this shape, if their anchor pattern is set to null.

DecorationHitTesting

Gets or sets a value indicating whether decoration lines should be considered when hit-testing.

Decorations

Gets or sets a list with all decorations of this shape.

DisplayName

Gets or sets the name that should be displayed for this shape in user interface objects.

EnableOutline

Gets or sets a value indicating whether to enable the shape's outline.

FillMode

Gets or sets a value indicating how areas are filled if the outline path of the shape intersects itself.

Id

Gets or sets the shape identifier.

Image

Gets or sets the image displayed in all instances of this shape.

ImageRectangle

Gets or sets the position of the images displayed in instances of this shape.

IsArrowhead

Specifies if this shape is used as arrowhead.

LinkSegmentInset

Specifies what length of link's line segment is drawn inside the arrowhead shape, expressed as percents of arrowhead size.

Outline

Gets or sets the outline of this shape.

ShapeDecorations

Gets or sets the ShapeDecoration objects associated with this shape.

Shapes

Gets a read-only collection of all named shapes.

TextArea

Gets or sets the outline of the text area of this shape.

 Public Methods

  Name Description

Clone

Creates an exact copy of this shape.

Draw

Overloaded. Draws this shape on an IGraphics surface.

Equals

Checks whether this shape template is equivalent to the specified shape.

FromId

Returns a reference to the shape with the specified string identifier.

GetHitPath

Overloaded.  

GetRenderingPath

Overloaded.  

LoadFromXml

Loads the shape content from an XML element.

SaveToXml

Saves the shape content into an XML element.

ToString

Returns the identifier of this shape template.

 See Also