Aller au contenu principal
Version: Next

VP Get default style

VP Get default style ( vpAreaName : Text { ; sheet : Integer } ) : Object

ParamètresTypeDescription
vpAreaNameText->Nom d'objet formulaire zone 4D View Pro
sheetInteger->Numéro d'indice de la feuille (feuille courante si omis)
RésultatObject<-Default style settings

Description

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 method. For more information about style properties, see Style Objects & Style Sheets.

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 column count in the optional sheet parameter using the sheet index (counting begins at 0). If omitted or if you pass vk current sheet, the current spreadsheet is used.

Exemple

Pour lire les détails du style par défaut de ce document :

Le code suivant :

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

will return this information in the $defaultStyle object:

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

Voir également

VP Get cell style
VP SET DEFAULT STYLE