This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
VP Get stylesheet

VP Get stylesheet 


 

VP Get stylesheet ( vpAreaName ; styleName {; scope} ) -> Function result 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name
styleName  Text in Name of style
scope  Longint in Target scope (default = current sheet)
Function result  Object in 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.

Example  

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}
}



See also 

4D View Pro Style Objects and Style Sheets
VP ADD STYLESHEET
VP Get stylesheets
VP REMOVE STYLESHEET

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language
Number: 9755

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R6

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)