VP Get stylesheets
VP Get stylesheets ( vpAreaName : Text { ; sheet : Integer } ) : Collection
Parámetros | Tipo | Descripción | ||
---|---|---|---|---|
vpAreaName | Text | -> | Nombre de objeto formulario área 4D View Pro | |
sheet | Integer | -> | Alcance objetivo (por defecto = hoja actual) | |
Result | Collection | <- | Colección de objetos de hojas de estilo |
Descripción
The VP Get stylesheets
command returns the collection of defined style sheet objects from the designated sheet.
En vpAreaName, pase el nombre de la propiedad del área 4D View Pro. Si pasa un nombre que no existe, se devuelve un error.
You can define where to get the style sheets in the optional sheet parameter using the sheet index (counting begins at 0) or with the following constants:
vk current sheet
vk workbook
Ejemplo
El siguiente código devolverá una colección de todos los objetos estilo de la hoja actual:
$styles:=VP Get stylesheets("ViewProArea")
En este caso, la hoja actual utiliza dos objetos estilo:
[
{
backColor:green,
borderLeft:{color:green,style:10},
borderTop:{color:green,style:10},
borderRight:{color:green,style:10},
borderBottom:{color:green,style:10},
name:GreenDashDotStyle
},
{
backColor:red,
textIndent:10,
name:RedIndent
}
]