ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Diagram editor functions / Types of variables
  • Properties specific to diagShape variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
diagBorder (Type of variable)
In french: diagBordure
The diagBorder type is used to define all the advanced characteristics of a border (or borders) of a shape used in a diagram. The characteristics of this border 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.
CAUTION: This type cannot be used directly. It must be used only via the diagShape type (or one of its derived types).
Example
// Create a rectangle shape
MyShape is diagRectangle
 
// Set the dimensions, position and background color
MyShape.X = 100
MyShape.Y = 100
MyShape.Width = 350
MyShape.Height = 150
MyShape.Background.Color = PastelRed
MyShape.Border.Color = Black
MyShape.Border.Thickness = 2
MyShape.Border.Type = LineDash
 
// Reference the displayed diagram
MyDiagram is Diagram <- DIAGEDT_MyDiagram
 
// Add the rectangle shape to the diagram
Add(MyDiagram.Shape, MyShape)
Properties

Properties specific to diagShape variables

The following properties can be used to handle the border of a shape:
Property nameType usedEffect
ColorIntegerBorder color.
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.
ThicknessRealBorder line thickness.
TypeIntegerType of the border line:
  • LineSolid:
  • LineDotted:
  • LineDash:
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/23/2023

Send a report | Local help