| SegmentRange Class |
Namespace: Sdl.LanguagePlatform.Core
The SegmentRange type exposes the following members.
| Name | Description | |
|---|---|---|
| SegmentRange |
Initializes a new instance with default values.
| |
| SegmentRange(SegmentPosition, SegmentPosition) |
Initializes a new instance with the provided positions. No checks are performed
to verify that the start position precedes the end position.
| |
| SegmentRange(Int32, Int32, Int32) |
Initializes a new instance of with the given parameters.
|
| Name | Description | |
|---|---|---|
| From |
Gets or sets the start position.
| |
| Into |
Gets or sets the end position.
| |
| Length |
Gets the length of this range if start and end positions are in the same text run,
and -1 otherwise.
|
| Name | Description | |
|---|---|---|
| Compare |
Compares two segment ranges and returns a value indicating their order.
| |
| Contains |
Tests whether the other range is entirely included in this range (peripheral positions may be identical).
| |
| Duplicate |
Creates a new instance that is a deep copy of this instance.
| |
| Equals(Object) | Equals(object) (Overrides ObjectEquals(Object).) | |
| Equals(SegmentRange) |
Compares the current range to another segment range.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | GetHashCode(object) (Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsInside |
Tests whether the segment position p is inside this range.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OverlapsWith |
Tests whether this segment range overlaps with another range.
| |
| ToString | (Overrides ObjectToString.) |