| TextLocation Class |
Namespace: Sdl.FileTypeSupport.Framework.BilingualApi
The TextLocation type exposes the following members.
| Name | Description | |
|---|---|---|
| TextLocation |
Constructs an uninitialized location object.
| |
| TextLocation(IAbstractMarkupData) |
Constructs from a markup data item; the location will reference the
position just in front of the item.
| |
| TextLocation(TextLocation) |
Protected constructor used in cloning
| |
| TextLocation(IText, Int32) |
Constructs from a markup data text item; the location will reference the
specified character offset into the text.
| |
| TextLocation(Location, Int32) |
Initializes using the specified location and text offset.
|
| Name | Description | |
|---|---|---|
| IsValid | True if the text location is a valid location
| |
| Location |
The location of the item referred to. If this is an IText the
TextOffset property determines the location inside that text.
The root of the location should be a IParagraph container.
| |
| TextOffset |
| Name | Description | |
|---|---|---|
| Clone |
Returns a deep clone of the object.
| |
| Equals |
Objects are considered equal if they refer to the
same location and text offset.
(Overrides ObjectEquals(Object).) | |
| GetHashCode |
Hash code is computed by combining the hashes of the location and the text offset.
(Overrides ObjectGetHashCode.) | |
| ToString |
Should be used for debugging purposes only.
(Overrides ObjectToString.) |
Consists of a Location and a text offset (0-based). The text offset is used only when the location references a text item.