Click or drag to resize
SegmentRange Class
Represents the range of a segment, indicated by two specified positions. The segment positions are inclusive ("into" semantics).
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.CoreSegmentRange

Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public class SegmentRange

The SegmentRange type exposes the following members.

Constructors
  NameDescription
Public methodSegmentRange
Initializes a new instance with default values.
Public methodSegmentRange(SegmentPosition, SegmentPosition)
Initializes a new instance with the provided positions. No checks are performed to verify that the start position precedes the end position.
Public methodSegmentRange(Int32, Int32, Int32)
Initializes a new instance of with the given parameters.
Top
Properties
  NameDescription
Public propertyFrom
Gets or sets the start position.
Public propertyInto
Gets or sets the end position.
Public propertyLength
Gets the length of this range if start and end positions are in the same text run, and -1 otherwise.
Top
Methods
  NameDescription
Public methodStatic memberCompare
Compares two segment ranges and returns a value indicating their order.
Public methodContains
Tests whether the other range is entirely included in this range (peripheral positions may be identical).
Public methodDuplicate
Creates a new instance that is a deep copy of this instance.
Public methodEquals(Object)
Equals(object)
(Overrides ObjectEquals(Object).)
Public methodEquals(SegmentRange)
Compares the current range to another segment range.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
GetHashCode(object)
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsInside
Tests whether the segment position p is inside this range.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOverlapsWith
Tests whether this segment range overlaps with another range.
Public methodToString (Overrides ObjectToString.)
Top
See Also
Community
Edit

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