Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: text ::
interface XTextRangeCompare
Description compares the positions of two TextRanges within a Text. Only TextRange instances within the same Text can be compared.

Methods' Summary
compareRegionStarts |
compareRegionEnds |

Methods' Details
compareRegionStarts
short
compareRegionStarts( | [in] XTextRange | xR1,
| [in] XTextRange | xR2 )
raises( | ::com::sun::star::lang::IllegalArgumentException );
Returns 1 if xR1 starts before xR2, 0 if xR1 starts at the same position as xR2 and -1 if xR1 starts behind xR2. Throws com::sun::star::lang::IllegalArgumentException if either xR1 or xR2 is not within this text.
compareRegionEnds
short
compareRegionEnds( | [in] XTextRange | xR1,
| [in] XTextRange | xR2 )
raises( | ::com::sun::star::lang::IllegalArgumentException );
Returns 1, if xR1 ends before xR2, 0, if xR1 ends at the same position as xR2 and -1, if xR1 ends behind xR2. Throws com::sun::star::lang::IllegalArgumentException if either xR1 or xR2 is not within this text.

Top of Page

Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.