com.mindoo.remote.api.symphony.document
Interface IRemoteTextSections


public interface IRemoteTextSections

This class represents all the sections in a document.

Access

To get all the sections of a document, use the Sections property in the Document class.

Usage

TextSections provides access to sections and provides a method to insert new sections.


Method Summary
 IRemoteTextSection add(java.lang.String name, IRemoteTextRange position)
          This method inserts a new section into the text document.
 IRemoteTextSection add(java.lang.String name, IRemoteTextRange position, int count)
          This method inserts a new section into the text document.
 IRemoteSymphonyApplication getApplication()
          This property represents the Lotus Symphony application.
 int getCount()
          This property returns the number of sections in a document.
 IRemoteTextSection item(int index)
          This method gets a section of the document according to an index.
 

Method Detail

getApplication

IRemoteSymphonyApplication getApplication()
                                          throws RemoteEclipseAPIException
This property represents the Lotus Symphony application.

Returns:
application
Throws:
RemoteEclipseAPIException

getCount

int getCount()
             throws RemoteEclipseAPIException
This property returns the number of sections in a document.

Returns:
count
Throws:
RemoteEclipseAPIException

add

IRemoteTextSection add(java.lang.String name,
                       IRemoteTextRange position)
                       throws RemoteEclipseAPIException
This method inserts a new section into the text document.

Parameters:
name - Specifies the name of the section. If the name already exists in another section, a default name is generated for the section. The default name is the string "Section" with a index suffix. For example, "Section1".
position - Specifies the position before which the new section is to be inserted. Sections can be inserted only before the range of paragraphs, cells, and sections, otherwise this method throws an exception.
Returns:
A TextSection object that represents a section.
Throws:
RemoteEclipseAPIException

add

IRemoteTextSection add(java.lang.String name,
                       IRemoteTextRange position,
                       int count)
                       throws RemoteEclipseAPIException
This method inserts a new section into the text document.

Parameters:
name - Specifies the name of the section. If the name already exists in another section, a default name is generated for the section. The default name is the string "Section" with a index suffix. For example, "Section1".
position - Specifies the position before which the new section is to be inserted. Sections can be inserted only before the range of paragraphs, cells, and sections, otherwise this method throws an exception.
count - Specifies how many columns the new section contains. The default value is 1. The maximum column count of a section is 99. If the value of this parameter is larger than 99 or smaller than 1, this method throws an exception.
Returns:
A TextSection object that represents a section.
Throws:
RemoteEclipseAPIException

item

IRemoteTextSection item(int index)
                        throws RemoteEclipseAPIException
This method gets a section of the document according to an index.

Parameters:
index - Specifies the index of the section, starting at 1.
Returns:
A TextSection object that represents a section.
Throws:
RemoteEclipseAPIException