NShape Reference
Shape.MoveControlPointTo Method

<< Click to Display Table of Contents >>

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

NShape Reference
Shape.MoveControlPointTo Method

Previous pageReturn to chapter overviewNext page

Moves the control point by a given displacement.

Syntax

public bool MoveControlPointTo(
  ControlPointId pointId, int toX, int toY,
  ResizeModifiers modifiers
)

Description

Depending on the capabilities of the control point, moving it might resize or move the shape. If the passed control point id is the shape's reference point id, this method does the same as MoveTo.

MoveControlPointTo is a convenience function implemented through a call to MoveControlPointBy.

Parameters

Name

Description

controlPointId

Control point to move

x, y

Coordinates to move to

modifiers

Influences how the moving is performed

Return Value

True, if the operation was completely executed. False, if it was not or only partially executed.

Exceptions

Name

Description

ArgumentException

controlPointId is invalid.