Aller au contenu principal
Version: Next

VP Get spans

VP Get spans ( rangeObj : Object ) : Object

ParamètresTypeDescription
rangeObjObject->Objet plage
RésultatObject<-Objet de cellules fusionnées (cell spans) dans la plage définie

Description

The VP Get spans command retrieves the cell spans in the designated rangeObj.

In rangeObj, pass a range of cell spans you want to retrieve. If rangeObj does not contain a cell span, an empty range is returned.

Exemple

Pour centrer le texte des cellules fusionnées dans ce document :

// Search for all cell spans 
$range:=VP Get spans(VP All("ViewProArea"))

//center text
$style:=New object("vAlign";vk vertical align center;"hAlign";vk horizontal align center)
VP SET CELL STYLE($range;$style)

Voir également

VP ADD SPAN
VP REMOVE SPAN