The Free and Open Productivity Suite
QA Volunteers Needed -- Help us test OpenOffice

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for Apache OpenOffice version 3.4.

:: com :: sun :: star :: text ::

interface XTextRange
Description
describes the object's position in a text.

It represents a text range. The beginning and end of the range may be identical.


Methods' Summary
getText  
getStart  
getEnd  
getString  
setString the whole string of characters of this piece of text is replaced.  
Methods' Details
getText
XText
getText();

Returns
the text interface in which the text position is contained.
getStart
XTextRange
getStart();

Returns
a text range which contains only the start of this text range.
getEnd
XTextRange
getEnd();

Returns
a text range which contains only the end of this text range.
getString
string
getString();

Returns
the string that is included in this text range.
setString
[oneway] void
setString( [in] string  aString );

Description
the whole string of characters of this piece of text is replaced.

All styles are removed when applying this method.

Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us | Donate

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