Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTIndex.InsertSegment

Syntax

CTSegment InsertSegment(int BeforeSegment, CTField Field,

SEG_MODE SegMode)

CTSegment InsertSegment(int BeforeSegment, int offset, int length,

SEG_MODE SegMode)

Parameters

  • BeforeSegment [in] Insert the new segment before this segment.
  • Field [in] The segment object to be inserted.
  • SegMode [in] The field segment mode. The valid values for the segment mode are shown in "Segment Modes".
  • offset [in] The segment offset to be inserted.
  • length [in] The segment length to be inserted.

Description

Inserts a new segment to the index, in a specified position.

Return

Returns a segment object

See Also

AddSegment(), DelSegment(), GetSegmentCount()

TOCIndex