GlueToPos method

GlueToPos method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

See also         Example         Applies to

Glues one shape to another from a cell in the first shape to an x,y position in the second shape.

Version added

2.0

Syntax

        
          object.GlueToPosshpObject, x, y
      

object

Required. An expression that returns a Cell object.

shpObject

Required object. An expression that returns the Shape object to be glued to.

x

Required Double. The x-coordinate of the position to glue to.

y

Required Double. The y-coordinate of the position to glue to.

Remarks

The GlueToPos method creates a new connection point at the location determined by x and y, which represent decimal fractions of the specified shape's width and height, respectively, rather than coordinates. For example, the following creates a connection point at the center of shpObject and glues the part of the shape that celObj represents to that point:

celObj.GlueToPosshpObject, 0.5, 0.5

Gluing the X cell of a Controls section row or a BeginX or EndX cell automatically glues the Y cell of the Controls section row or the BeginY or EndY cell, respectively. (The reverse is also true.)