NShape Reference
Shape.FindNearestControlPoint Method

<< Click to Display Table of Contents >>

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

NShape Reference
Shape.FindNearestControlPoint Method

Previous pageReturn to chapter overviewNext page

Finds the control point, with the least distance to the given coordinates.

Syntax

public abstract ControlPointId FindNearestControlPoint(
    int x, int y, int range, 
    ControlPointCapabilities controlPointCapability
)

Description

Parameters

Name

Description

x

X coordinate of the reference point

y

Y coordinate of the reference point

range

Maximum distance between reference point and control point

controlPointCapability

Returned control point must have at least one of these capabilities.

Return Value

Id of found control point or ControlPointId.None.

Exceptions

None