Click or drag to resize
TextLocation Class
Reference to a location inside the bilingual content model that may be inside a text node
Inheritance Hierarchy
SystemObject
  Sdl.FileTypeSupport.Framework.BilingualApiTextLocation

Namespace: Sdl.FileTypeSupport.Framework.BilingualApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public class TextLocation : ICloneable

The TextLocation type exposes the following members.

Constructors
  NameDescription
Public methodTextLocation
Constructs an uninitialized location object.
Public methodTextLocation(IAbstractMarkupData)
Constructs from a markup data item; the location will reference the position just in front of the item.
Protected methodTextLocation(TextLocation)
Protected constructor used in cloning
Public methodTextLocation(IText, Int32)
Constructs from a markup data text item; the location will reference the specified character offset into the text.
Public methodTextLocation(Location, Int32)
Initializes using the specified location and text offset.
Top
Properties
  NameDescription
Public propertyIsValid
True if the text location is a valid location
Public propertyLocation
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.
Public propertyTextOffset
When the Location property refers to an IText item, this property indicates the 0-based character index inside the text that the text position refers to. This property should be a valid 0-based index into the text. It should be less than or equal to the number of characters in the text.
Top
Methods
  NameDescription
Public methodClone
Returns a deep clone of the object.
Public methodEquals
Objects are considered equal if they refer to the same location and text offset.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Hash code is computed by combining the hashes of the location and the text offset.
(Overrides ObjectGetHashCode.)
Public methodToString
Should be used for debugging purposes only.
(Overrides ObjectToString.)
Top
Remarks

Consists of a Location and a text offset (0-based). The text offset is used only when the location references a text item.

See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments