AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Editor de diagramas / Tipos de 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:
Versión mínima requerida
  • Versión 27
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 23/05/2023

Señalar un error o enviar una sugerencia | Ayuda local