XBehaviour Property

This property controls the behavior of the ControlDot object. Controls the type of behavior the x-coordinate of the control handle will exhibit after the handle is moved. Gets or sets a Byte value.

Applies to objects: ControlDot

Syntax

[Let] RetVal = object.XBehaviour

[Let] object.XBehaviour = SetVal

The XBehaviour property syntax has these parts:

Part Description
object A reference to an instance of the object.
RetVal A Byte type variable.
SetVal A Byte value.

The possible values of the property are described in the table below:

Constant Value Behavior Definition
cdbCtlProportional 0 Proportional The control handle can be moved, and it also moves in proportion with the
shape when it is stretched.
cdbCtlLocked 1 Proportional locked The control handle moves in proportion with the shape but the control handle itself cannot be moved.
cdbCtlOffsetMin 2 Offset from left edge The control handle is offset a constant distance from the left side of the shape.
cdbCtlOffsetMid 3 Offset from center The control handle is offset a constant distance from the center of the shape.
cdbCtlOffsetMax 4 Offset from right edge The control handle is offset a constant distance from the right side of the shape.
cdbCtlProportionalHidden 5 Proportional, hidden Same as 0, but the control handle is not visible.
cdbCtlLockedHidden 6 Proportional locked, hidden Same as 1, but the control handle is not visible.
cdbCtlOffsetMinHidden 7 Offset from left edge, hidden Same as 2, but the control handle is not visible.
cdbCtlOffsetMidHidden 8

Offset from center, hidden

Same as 3, but the control handle is not visible.
cdbCtlOffsetMaxHidden 9 Offset from right edge, hidden Same as 4, but the control handle is not visible.

 

Example

This example demonstrates using the XBehaviour property.

Dim MyControlDot as ControlDot, MyShape As Shape
MyShape = thisDoc.ActivePage.DrawRect(50,50,500,500) ' Create a Shape object
MyControlDot = MyShape.AddControlDot()
MyControlDot.X = 100 ' Set ControlDot to specified coordinates
MyControlDot.Y = 150
MyControlDot.XBehaviour = cdbCtlOffsetMin ' Set XBehaviour type
' Inform ConceptDraw engine about the changes MyShape.PropertyChanged(CDPT_CONTROL_X)
MyShape.PropertyChanged(CDPT_CONTROL_Y)
MyShape.PropertyChanged(CDPT_CONTROL_XBEHAVIOUR)

 

See Also

ControlDot Object, YBehaviour Property, PropertyChanged Method