|
|
|
|
- Properties specific to diagEnd variables
diagHead (Type of variable) In french: diagExtrémité
The diagHead type is used to define all the advanced characteristics of an end of a connector in a diagram. The characteristics of this end can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
// Create a link between rectangle1 and rectangle2 rectangle1 is diagRectangle rectangle2 is diagRectangle Connector is diagConnector Connector.Beginning.ConnectionPoint = rectangle1.ConnectionPoint(100, 50) Connector.Beginning.Drawing = shapeNone Connector.Ending.ConnectionPoint = rectangle2.ConnectionPoint(0, 50) Connector.Beginning.Drawing = shapeTriangle
Properties Properties specific to diagEnd variables The following properties can be used to handle the end of a connector: | | | Property name | Type used | Effect |
---|
ConnectionPoint | diagConnectionPoint | Point the connector will snap to. | Drawing | Integer constant | Arrow drawing: - shapeNone: The end has no particular shape.
- shapeSquare: The end is a square.
- shapeRoundedSquare: The end is a rounded square.
- shapeArrow: The end is an arrow.
- shapeDiamond: The end is a diamond.
- shapeCircle: The end is a circle.
- shapeTriangle: The end is a triangle.
| SnapMode | Integer constant | How the connector will snap to the target shape: - connectorSnapToAuto: The connection point is automatically determined according to the position of the connector and the shape.
- connectorSnapToShape: The end of the connector will snap to the center of the shape.
- connectorSnapToConnectionPoint: The connector will snap to a connection point.
- connectorSnapToBoundingBox: The end of the connector will snap to a point of the bounding box of the shape.
| X | Real | X-coordinate of the end in the diagram. | Y | Real | Y-coordinate of the end in the diagram. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|