Skip to main content
Version: 20 R6 BETA

VP Get spans

VP Get spans ( rangeObj : Object ) : Object

ParameterTypeDescription
rangeObjObject->Range object
ResultObject<-Object of cell spans in the defined range

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.

Example

You want to center the text for the spanned cells in this 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)

See also

VP ADD SPAN
VP REMOVE SPAN