Help / WLanguage / WLanguage functions / Controls, pages and windows / Diagram editor functions / Types of variables
  • Properties specific to diagEnd variables
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
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 specific to diagEnd variables

The following properties can be used to handle the end of a connector:
Property nameType usedEffect
ConnectionPointdiagConnectionPointPoint the connector will snap to.
DrawingInteger constantArrow 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.
SnapModeInteger constantHow 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.
XRealX-coordinate of the end in the diagram.
YRealY-coordinate of the end in the diagram.
Minimum version required
  • Version 27
This page is also available for…
Click [Add] to post a comment

Last update: 05/23/2023

Send a report | Local help