Search
ShapeTemplate Members
Constructors Properties Methods
 


ShapeTemplate objects provide the means for defining complex box shapes.

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

 Public Constructors

  Name Description

ShapeTemplate

Initializes a new instance of the ShapeTemplate class.

 Public Properties

  Name Description

AnchorPattern

Gets or sets a string that identifies an AnchorPattern to be used with shapes of this template.

HorizontalScale

Gets or sets the horizontal scale of the coordinate system in which shape vertex points are defined.

Picture

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

ShapeId

Gets a string that identifies the shape template, passed as an argument to the CompleteDefinition method.

VerticalScale

Gets or sets the vertical scale of the coordinate system in which shape vertex points are defined.

 Public Methods

  Name Description

AddDecorationArc

Adds an arc as decoration of a shape.

AddDecorationBezier

Adds a new Bezier curve as decoration of a shape.

AddDecorationEllipse

Adds a new ellipse as decoration of a shape.

AddDecorationLine

Adds a new straight segment as decoration of a shape.

AddOutlineArc

Adds an arc to the shape's outline.

AddOutlineBezier

Adds a new Bezier curve to shape's outline, starting from the first point specified as argument, and having the next two points as control points.

AddOutlineStraight

Adds a new straight segment to shape's outline, starting from the point specified as argument.

AddTextArc

Adds an arc to shape's text region.

AddTextBezier

Adds a new Bezier curve to shape's text region, starting from the first point specified as argument, and having the next two points as control points.

AddTextStraight

Adds a new straight segment to shape's text region, starting from the point specified as argument.

CompleteDefinition

Completes a shape definition.

EndFilledDecoration

Completes the definition of a filled decoration started by calling StartFilledDecoration.

GetDefinition

 

SetPictureRect

Sets the position of the images displayed in instances of this shape.

StartFilledDecoration

Adds a new filled shape as decoration of this shape template.

 See Also