Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: table ::

unpublished interface XMergeableCellRange
Usage Restrictions
not published
Description
represents a range of cells that can possibly be merged or unmerged.

Methods' Summary
merge merges the area specified by this range.  
split splits the cells in this range. This will be done by inserting rows and columns if needed or unmerging cells taht are already splitted.  
isMergeable  
Methods' Details
merge
void
merge()
raises( ::com::sun::star::lang::NoSupportException );

Description
merges the area specified by this range.
Throws
::com::sun::star::lang::NoSupportException if a merge is not possible for this range. You can use isMergeable() to check if a merge is possible.
split
void
split( [in] long  Columns,
[in] long  Rows )
raises( ::com::sun::star::lang::NoSupportException,
::com::sun::star::lang::IllegalArgumentException );

Description
splits the cells in this range. This will be done by inserting rows and columns if needed or unmerging cells taht are already splitted.
Parameter Columns
this is the number of columns that will be added to each cell. Zero means no new columns
Parameter Rows
this is the number of rows that will be added to each cell. Zero means no new rows
Throws
::com::sun::star::lang::IllegalArgumentException if at least one of the parameters is less than zero.
Throws
::com::sun::star::lang::NoSupportException if a split is not possible for this range.
isMergeable
boolean
isMergeable();

Returns
true if all cells from this range can be merged to one or false otherwise.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.