|
|
|
|
|
- Properties specific to diagText variables
diagText (Variable type) In french: diagTexte
The diagText type is used to define all the advanced characteristics of a text associated with a shape in a diagram. You can define and change the characteristics of this text 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 diagRectangle
MyShape.X = 100
MyShape.Y = 100
MyShape.Width = 350
MyShape.Height = 150
MyShape.Background.Color = PastelRed
MyShape.Text.Caption = "Rectangle"
MyShape.Text.HorizontalAlignment = haCenter
MyShape.Text.VerticalAlignment = vaMiddle
MyShape.Text.Color = Gold
MyShape.Text.Font.Bold = True
MyDiagram is Diagram <- DIAGEDT_MyDiagram
Add(MyDiagram.Shape, MyShape)
Properties Properties specific to diagText variables The following properties can be used to handle the text of a shape: | | | Property name | Type used | Effect |
---|
BackgroundColor | Color | Color displayed behind the text. | Caption | Character string | Text displayed. Note: This property must not be used at the same time as the property LabelHTML. | CaptionHTML | Character string | Text displayed in HTML format. This text can contain HTML formatting tags. Note: This property must not be used in conjunction with the property label . | Color | Color | Text color. | Font | Font | Font characteristics: bold, italic, ... | HorizontalAlignment | Integer constant | Horizontal text alignment: - chCentre: Text is centred.
- chRight: Text is right-aligned.
- chLeft: Text is left-aligned.
| Margin | Real | Margin around the text, expressed in pixels. | VerticalAlignment | Integer constant | Vertical text alignment: - cvBas: Text is placed at the bottom of the form.
- cvHaut: Text is placed at the top of the form.
- cvMilieu: Text is placed in the middle of the shape.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|