|
|
|
|
- Properties specific to diagText variables
diagText (Type of variable) In french: diagTexte
The diagText type is used to define all the advanced characteristics of a text associated with a shape in a diagram. The characteristics of this text 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.
// 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 // Text MyShape.Text.Caption = "Rectangle" MyShape.Text.HorizontalAlignment = haCenter MyShape.Text.VerticalAlignment = vaMiddle MyShape.Text.Color = Gold MyShape.Text.Font.Bold = 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 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. Remark: Do not use this property along with the CaptionHTML property. | CaptionHTML | Character string | Text displayed in HTML format. This text can contain HTML formatting tags. Remark: Do not use this property along with the Caption property. | Color | Color | Text color. | Font | Font | Font characteristics: bold, italic, etc. | HorizontalAlignment | Integer constant | Horizontal text alignment: - haCenter: The text is centered.
- haRight: The text is aligned to the right.
- haLeft: The text is aligned to the left.
| Margin | Real | Margin around the text, expressed in pixels. | VerticalAlignment | Integer constant | Vertical text alignment: - vaBottom: The text is placed at the bottom of the shape.
- vaTop: The text is placed at the top of the shape.
- vaMiddle: The text is placed in the center of the shape.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|