|
|
|
|
- Propiedades específicas de las variables de tipo diagText
diagText (Tipo de variable)
El tipo diagText permite definir todas las características avanzadas de un texto asociado a una forma en un diagrama. Las características del texto se pueden definir y cambiar mediante diferentes propiedades WLanguage. Observación: Para obtener más información sobre la declaración de este tipo de variable y el uso de propiedades WLanguage, consulte Declarar una 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)
Propiedades Propiedades específicas de las variables de tipo diagText Las siguientes propiedades pueden utilizarse para manipular el texto de una forma: | | | Nombre de la propiedad | Tipo utilizado | Efecto |
---|
BackgroundColor | Color | Color que aparece detrás del texto. | Caption | Character string | Texto mostrado. Observación: No utilice esta propiedad junto con la propiedad CaptionHTML. | CaptionHTML | Character string | Texto mostrado en formato HTML. Este texto puede contener etiquetas de formato HTML. Observación: No utilice esta propiedad junto con la propiedad Caption. | Color | Color | Color del texto. | Font | Font | Características de la fuente: negrita, cursiva, etc. | HorizontalAlignment | Constante de tipo Integer | Alineación horizontal del texto: - haCenter: El texto se centra.
- haRight: El texto se alinea a la derecha.
- haLeft: El texto se alinea a la izquierda.
| Margin | Real | Margen alrededor del texto, expresado en pixeles. | VerticalAlignment | Constante de tipo Integer | Alineación vertical del texto: - vaBottom: El texto se ubica abajo de la forma.
- vaTop: El texto se ubica arriba de la forma.
- vaMiddle: El texto se ubica en el centro de la forma.
|
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|