com.spire.doc.fields
Class TextRange
java.lang.Object
com.spire.doc.OwnerHolder
com.spire.doc.documents.xml.DocumentSerializable
com.spire.doc.DocumentObject
com.spire.doc.DocumentBase
com.spire.doc.fields.ParagraphBase
com.spire.doc.fields.TextRange
- All Implemented Interfaces:
- IDocumentObject, IDocumentSerializable, IParagraphBase, ITextRange
- Direct Known Subclasses:
- Field
public class TextRange
- extends ParagraphBase
- implements ITextRange
| Methods inherited from class com.spire.doc.fields.ParagraphBase |
applyCharacterFormat, applyStyle, getChildObjects, getDeleteRevision, getInsertRevision, getNextWidgetSibling, getOwnerParagraph, getPreviousWidgetSibling, getStyleName, isDeleteRevision, isInsertRevision |
TextRange
public TextRange(IDocument doc)
- Initializes a new instance of the class.
- Parameters:
doc - The doc.
getDocumentObjectType
public DocumentObjectType getDocumentObjectType()
- Gets the type of the document object.
- Specified by:
getDocumentObjectType in interface IDocumentObject- Specified by:
getDocumentObjectType in class DocumentObject
- Returns:
- The type of the document object.
getText
public java.lang.String getText()
- Returns or sets text.
- Specified by:
getText in interface ITextRange
- Returns:
- String
setText
public void setText(java.lang.String value)
- Returns or sets text.
- Specified by:
setText in interface ITextRange
- Parameters:
value - String
getCharacterFormat
public CharacterFormat getCharacterFormat()
- Gets the character format.
- Specified by:
getCharacterFormat in interface ITextRange- Overrides:
getCharacterFormat in class ParagraphBase
- Returns:
- The paragraph item character format.