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

Home

 
4D v19
VP Get spans

VP Get spans 


 

VP Get spans ( rangeObj ) -> Function result 
Parameter Type   Description
rangeObj  Object in Range object
Function result  Object in Object of cell spans in the defined range

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  

To center the text for the spanned cells in this document:

use this code:

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

 
PROPERTIES 

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)