|
|
|
|
|
- Properties specific to diagPolygon variables
diagPolygon (Variable type) In french: diagPolygone
The diagPolygon type is used to define all the advanced characteristics of a shape of type Polygon. You can define and change the characteristics of this shape using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. MyShape is diagPolygon // Set dimensions, position ... MyShape.Point[1].X = 0 MyShape.Point[1].Y = 0 MyShape.Point[2].X = 25 MyShape.Point[2].Y = 25 MyShape.Point[3].X = 50 MyShape.Point[3].Y = 75 MyShape.Point[4].X = 100 MyShape.Point[4].Y = 20 MyShape.X = 50 MyShape.Y = 100 MyShape.Width = 350 MyShape.Height = 150 MyShape.Open = True // Reference the displayed diagram MyDiagram is Diagram <- DIAGEDT_MyDiagram // Add the rectangle shape to the diagram Add(MyDiagram.Shape, MyShape)
Properties Properties specific to diagPolygon variables Note: The diagPolygon type inherits from the diagShape type, all the properties of the diagShape type are available for the diagPolygon. These properties appear in italics in the list below. The following properties can be used to handle a shape of type Polygon: | | | Property name | Type used | Effect |
---|
ActionAllowed | diagActionAllowed or constant | - diagActionAllowed variable used to define the changes the user can make to the shape.
- constant diagActionNo: no action will be allowed on the form.
- Constant diagActionToute (default value): all possible actions will be allowed on the shape.
| Angle | Real | Angle of rotation of the shape (in degrees). | Background | Constant, integer or Color | Background color of the shape. The Color property is used to define the background color of the shape. This property can correspond to: - an RGB color (returned by RGB),
- an HSL color (returned by HSL),
- a WLanguage preset color.
- a variable of type Color. In this case, the opacity specified in the variable is taken into account.
| Border | diagBorder | Characteristics of the shape border. The available properties are: - Color: border color.
- Thickness: edge thickness.
- Type: type of border.
| Comment | Character string | Note about the shape. This note is not displayed. | ConnectionPoint | Array of diagConnectionPoint | List of connection points of the shape. | New in version 2025Extra | Variant | Allows you to store advanced information without affecting the execution of the application. You can store values of any type (array, etc.). It is also possible to add members to the Extra property. Example:
MyVariable.Extra.Info1 = Value MyVariable.Extra[Info2] = Value2 MyVariable.Extra.Date = DateSys() | Height | Real | Height of the box that contains the shape before rotation or zoom, expressed in pixels. | Name | Character string | Shape name. This name will be used for searching, for example, if the shape is in a library. | Note | Character string | Note associated with the shape. | Opacity | Integer | Percentage of opacity of the shape. This value ranges from invisible (0) to completely opaque (100). | Open | Boolean | - True if the first and last point of the polygon should not meet.
- False otherwise.
| Point | Array of diagPoint | Polygon points. | Shadow | Boolean | - True if the shape has a shadow,
- False otherwise.
| Text | diagText | Text (with formatting) inside the shape. | Width | Real | Width of the box that contains the shape before rotation or zoom, expressed in pixels. | X | Real | X-coordinate of the box that contains the shape before rotation or zoom, expressed in pixels. This X-coordinate is relative to the parent of the shape. | Y | Real | Y-coordinate of the box that contains the shape before rotation or zoom, expressed in pixels. This Y-coordinate is relative to the parent of the shape. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|