|
|
|
|
|
- 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.
MaForme is diagRectangle
MaForme.X = 100
MaForme.Y = 100
MaForme.Width = 350
MaForme.Height = 150
MaForme.Background.Color = PastelRed
MaForme.Text.Caption = "Rectangle"
MaForme.Text.HorizontalAlignment = haCenter
MaForme.Text.VerticalAlignment = vaMiddle
MaForme.Text.Color = Gold
MaForme.Text.Font.Bold = True
MonDiagramme is Diagram <- EDIAG_MonDiagramme
Add(MonDiagramme.Shape, MaForme)
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 in conjunction with the 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 centered.
- 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.
- cvTop: Text is placed at the top of the form.
- cvMiddle Text is placed in the middle of the form.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|