Control

Control class

Contains elements for the x- and y-coordinates of each control handle defined for a shape, and elements that specify the way the control handle should behave.

Constructors

NameDescription
ControlConstructor.

Properties

NameTypeDescription
NameStringThe name of the element.
NameUStringThe universal name of the element.
IDintThe unique ID of the element within its parent element.
IXintThe zero-based index of the element within its parent element.
DelintA flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca
XDoubleValueThe x-coordinate that indicates the location of a shape’s control handle.
YDoubleValueThe y-coordinate that indicates the location of a shape’s control handle.
XDynDoubleValueSpecifies the x-coordinate for a control handle’s anchor point in local coordinates. The anchor point is used for rubber
YDynDoubleValueSpecifies the y-coordinate for a control handle’s anchor point in local coordinates. The anchor point is used for rubber
XConConTypeSpecifies the type of behavior the x-coordinate of the control handle exhibits after the handle is moved.
YConConTypeSpecifies the type of behavior the x-coordinate of the control handle exhibits after the handle is moved.
CanGlueBoolValueDetermines whether a control handle can be glued to other shapes.
PromptStr2ValuePrompt element specifies descriptive text that appears as a tool tip when the mouse pointer is paused over a shape’s con

Methods

NameDescription
deepCloneCreates deep copy of this instance.

Control()

Constructor.

Control.Name property

The name of the element.

Type: String

Control.NameU property

The universal name of the element.

Type: String

Control.ID property

The unique ID of the element within its parent element.

Type: int

Control.IX property

The zero-based index of the element within its parent element.

Type: int

Control.Del property

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

Type: int

Control.X property

The x-coordinate that indicates the location of a shape’s control handle.

Type: DoubleValue

Control.Y property

The y-coordinate that indicates the location of a shape’s control handle.

Type: DoubleValue

Control.XDyn property

Specifies the x-coordinate for a control handle’s anchor point in local coordinates. The anchor point is used for rubber-banding during dynamics.

Type: DoubleValue

Control.YDyn property

Specifies the y-coordinate for a control handle’s anchor point in local coordinates. The anchor point is used for rubber-banding during dynamics.

Type: DoubleValue

Control.XCon property

Specifies the type of behavior the x-coordinate of the control handle exhibits after the handle is moved.

Type: ConType

Control.YCon property

Specifies the type of behavior the x-coordinate of the control handle exhibits after the handle is moved.

Type: ConType

Control.CanGlue property

Determines whether a control handle can be glued to other shapes.

Type: BoolValue

Control.Prompt property

Prompt element specifies descriptive text that appears as a tool tip when the mouse pointer is paused over a shape’s control handle.

Type: Str2Value

deepClone()

Creates deep copy of this instance.