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

Home

 
4D v19
VP Get default style

VP Get default style 


 

VP Get default style ( vpAreaName {; sheet} ) -> Function result 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name
sheet  Longint in Sheet index (default = curret sheet)
Function result  Object in Style object

The VP Get default style command returns a default style object for a sheet. The returned object contains basic document rendering properties as well as the default style settings (if any) previously set by the VP SET DEFAULT STYLE command. For more information about style properties, see 4D View Pro Style Objects and Style Sheets.

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 the optional sheet parameter, you can designate a specific spreadsheet to retrieve the style from (counting begins at 0). If omitted, the current spreadsheet is used by default. You can explicitly select the current spreadsheet with the following constant:

 

Constant Type Value Comment
vk current sheet Longint -1 Designates current sheet of the 4D View Pro area (default)

Example  

To get the details about the default style for this document:

 

 

This code: 

 $defaultStyle:=VP Get default style("myDoc")
 

will return this information in the $defaultStyle object:


{
backColor:#E6E6FA,
hAlign:0,
vAlign:0,
font:12pt papyrus
}



See also 

VP Get cell style
VP SET DEFAULT STYLE

 
PROPERTIES 

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R6

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)