4D v18VP Get stylesheet |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v18
VP Get stylesheet
|
VP Get stylesheet ( vpAreaName ; styleName {; scope} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
vpAreaName | Text |
![]() |
4D View Pro area form object name | |||||
styleName | Text |
![]() |
Name of style | |||||
scope | Longint |
![]() |
Target scope (default = current sheet) | |||||
Function result | Object |
![]() |
Style sheet object | |||||
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}
}
4D View Pro Style Objects and Style Sheets
VP ADD STYLESHEET
VP Get stylesheets
VP REMOVE STYLESHEET
Product: 4D
Theme: 4D View Pro Language
Number:
9755
Created: 4D v17 R6
4D View Pro Reference ( 4D v18)