VP Get stylesheets
VP Get stylesheets ( vpAreaName : Text { ; sheet : Integer } ) : Collection
Paramètres | Type | Description | ||
---|---|---|---|---|
vpAreaName | Text | -> | Nom d'objet formulaire zone 4D View Pro | |
sheet | Integer | -> | Cible (par défaut = feuille courante) | |
Résultat | Collection | <- | Collection d'objets feuille de style |
Description
The VP Get stylesheets
command returns the collection of defined style sheet objects from the designated sheet.
In vpAreaName, pass the name property of the 4D View Pro area. Si vous passez un nom inexistant, une erreur est retournée.
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
Exemple
Le code suivant retournera une collection de tous les objets style de la feuille courante :
$styles:=VP Get stylesheets("ViewProArea")
Dans ce cas, la feuille courante utilise deux objets style :
[
{
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
}
]