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:
- IRunAttrSource, IDocumentObject, IParagraphBase, ITextRange
- Direct Known Subclasses:
- Field
public class TextRange
- extends ParagraphBase
- implements ITextRange
TextRange
public TextRange(IDocument doc)
- Initializes a new instance of the
TextRange
class.
- Parameters:
doc
- 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 text.
- Specified by:
getText
in interface ITextRange
- Returns:
- String
setText
public void setText(java.lang.String value)
- 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:
- CharacterFormat