ViewSchedule.MergeSegments
Description:
Merges two adjacent segments into one.
Merges two adjacent segments into one.
Remarks:
Only adjacent segments can be merged. The moved segment will be deleted with all its instances on sheet and all the data will be merged into the target segment with height expanded.
Only adjacent segments can be merged. The moved segment will be deleted with all its instances on sheet and all the data will be merged into the target segment with height expanded.
public void MergeSegments(
int movedSegmentIndex,
int targetSegmentIndex
)
-
Int32movedSegmentIndexThe index of the moved segment.
-
Int32targetSegmentIndexThe index of the target segment.
-
Only two adjacent segments can be merged. -or- The segment index should start from 0 and be less than the total segment count.