NShape Reference
ILinearShape Interface

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
ILinearShape Interface

Previous pageReturn to chapter overviewNext page

Describes a linear shape.

Syntax

public interface ILinearShape

Description

Describes a linear shape.

Public Properties

Name

Description

IsDirected

Indicates if the line has a direction, e.g. a cap on one side.

MaxVertexCount

Specifies the maximum number of vertices allowed for defining the shape.

MinVertexCount

Specifies the minimum number of vertices needed for defining the linear shape

VertexCount

Specifies the current number of vertices the linear shape consists of.

Public Methods

Name

Description

AddConnectionPoint

Creates a new connection point at the specified position and returns the ControlPointId of the created connection point.

The specified coordinates have to be on the outline of the linear shape.

Available in NShape 2.0

AddVertex

Adds a new vertex to the shape and returns the ControlPointId associated with the new vertex.

CalcNormalVector

Calculates the normal vector for the given point.

GetNextVertexId

Returns the ControlPointId of the vertex next to the vertex associated with the given ControlPointId (Direction: From ControlPointId.FirstVertex to ControlPointId.LastVertex)

GetPreviousVertexId

Returns the ControlPointId of the vertex next to the vertex associated with the given ControlPointId (Direction: From ControlPointId.LastVertex to ControlPointId.FirstVertex)

InsertVertex

Inserts a new vertex before the vertex associated with the given ControlPointId into the linear shape. The new Point may be outside the shape, thus changing the outline of the shape.

RemoveConnectionPoint

Removes the specified (dynamic) connection point from the linear shape. If shapes are connected to the connection point, these shapes will be disconnected.

Available in NShape 2.0

RemoveVertex

Removes the vertex associated with the given ControlPointId from the linear shape. In most cases, this will change the outline of the shape.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape