com.spire.doc.documents
Class TextBodySelection

java.lang.Object
  extended by com.spire.doc.documents.TextBodySelection

public class TextBodySelection
extends java.lang.Object

Represents a selection of part of text body.


Constructor Summary
TextBodySelection(IBody textBody, int itemStartIndex, int itemEndIndex, int pItemStartIndex, int pItemEndIndex)
          Initializes a new instance of the class.
TextBodySelection(ParagraphBase itemStart, ParagraphBase itemEnd)
          Initializes a new instance of the class.
 
Method Summary
 int getItemEndIndex()
          Gets or sets the end index of the text body item.
 int getItemStartIndex()
          Gets or sets the start index of the text body item.
 int getParagraphItemEndIndex()
          Gets or sets the end index of the paragraph item.
 int getParagraphItemStartIndex()
          Gets or sets the start index of the paragraph item.
 Body getTextBody()
          Gets the text body.
 void setItemEndIndex(int value)
          Gets or sets the end index of the text body item.
 void setItemStartIndex(int value)
          Gets or sets the start index of the text body item.
 void setParagraphItemEndIndex(int value)
          Gets or sets the end index of the paragraph item.
 void setParagraphItemStartIndex(int value)
          Gets or sets the start index of the paragraph item.
 

Constructor Detail

TextBodySelection

public TextBodySelection(ParagraphBase itemStart,
                         ParagraphBase itemEnd)
Initializes a new instance of the class.

Parameters:
itemStart - The item start.
itemEnd - The item end.

TextBodySelection

public TextBodySelection(IBody textBody,
                         int itemStartIndex,
                         int itemEndIndex,
                         int pItemStartIndex,
                         int pItemEndIndex)
Initializes a new instance of the class.

Parameters:
textBody - The text body.
itemStartIndex - Start index of the item.
itemEndIndex - End index of the item.
pItemStartIndex - Start index of the paragraph item.
pItemEndIndex - End index of the paragraph item.
Method Detail

getTextBody

public Body getTextBody()
Gets the text body.

Returns:
The text body.

getItemStartIndex

public int getItemStartIndex()
Gets or sets the start index of the text body item.

Returns:
The start index of the item.

setItemStartIndex

public void setItemStartIndex(int value)
Gets or sets the start index of the text body item.


getItemEndIndex

public int getItemEndIndex()
Gets or sets the end index of the text body item.

Returns:
The end index of the item.

setItemEndIndex

public void setItemEndIndex(int value)
Gets or sets the end index of the text body item.


getParagraphItemStartIndex

public int getParagraphItemStartIndex()
Gets or sets the start index of the paragraph item.

Returns:
The start index of the item.

setParagraphItemStartIndex

public void setParagraphItemStartIndex(int value)
Gets or sets the start index of the paragraph item.


getParagraphItemEndIndex

public int getParagraphItemEndIndex()
Gets or sets the end index of the paragraph item.

Returns:
The end index of the item.

setParagraphItemEndIndex

public void setParagraphItemEndIndex(int value)
Gets or sets the end index of the paragraph item.