Saltar al contenido principal
Versión: 20 R5 BETA

VP Get stylesheets

VP Get stylesheets ( vpAreaName : Text { ; sheet : Integer } ) : Collection

ParámetrosTipoDescripción
vpAreaNameText->Nombre de objeto formulario área 4D View Pro
sheetInteger->Alcance objetivo (por defecto = hoja actual)
ResultCollection<-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
}
]

Ver también

VP ADD STYLESHEET
VP Get stylesheet
VP REMOVE STYLESHEET