| SegmentPositionCompare Method |
Compares two segment positions and returns an indication of their sort order.
Namespace: Sdl.LanguagePlatform.CoreAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntaxpublic static int Compare(
SegmentPosition a,
SegmentPosition b
)
Public Shared Function Compare (
a As SegmentPosition,
b As SegmentPosition
) As Integer
public:
static int Compare(
SegmentPosition^ a,
SegmentPosition^ b
)
static member Compare :
a : SegmentPosition *
b : SegmentPosition -> int
Parameters
- a
- Type: Sdl.LanguagePlatform.CoreSegmentPosition
The first of the two items to compare. - b
- Type: Sdl.LanguagePlatform.CoreSegmentPosition
The second of the two items to compare.
Return Value
Type:
Int32An int value less than zero if a precedes b, zero if a denotes the same position as b, and greater than zero if a follows b.
See Also
Comments