NShape Reference
Shape.IsConnected Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Shape Class >

NShape Reference
Shape.IsConnected Method

Previous pageReturn to chapter overviewNext page

Tests, whether the shape is connected to a given other shape.

Syntax

public abstract ControlPointId IsConnected(
    ControlPointId ownPointId, Shape otherShape
)

Description

With IsConnected(ControlPointId.Any, null) the method returns true, if the shape has a connection to any other shape.

Parameters

Name

Description

ownPointId

Control point of the shape for which to test. ControlPointId.Any tests all control points of the shape.

otherShape

Restricts the search to connections to the otherShape. May be null to search for connections to any shape.

Return Value

True, if the shape has at least one of the specified connections.

Exceptions

Name

Description

ArgumentException

ownPointId is invalid.