The VP Get stylesheet command returns the styleName style sheet object containing the property values which have been defined.
In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.
In styleName, pass the name of the style sheet to get.
You can define where to get the style sheet in the optional scope parameter using the sheet index (counting begins at 0) or with the following constants:
Constant |
Value |
Comment |
vk current sheet |
-1 |
Designates current sheet of the 4D View Pro area (default) |
vk workbook |
-2 |
Designates the entire workbook of the 4D View Pro area. |
The following code:
$style:=VP Get stylesheet("ViewProArea";"GreenDashDotStyle")
will return the GreenDashDotStyle style object from the current sheet:
{
backColor:green,
borderBottom:{color:green,style:10},
borderLeft:{color:green,style:10},
borderRight:{color:green,style:10},
borderTop:{color:green,style:10}
}