ViewSchedule.DeleteSegment
Method
Description:
Deletes a schedule segment.
Deletes a schedule segment.
Remarks:
If the last segment is deleted, the previous one will be the last one and its height will be modified to unlimited. If one segment is deleted when there are only two segments, all the instances will be deleted and the schedule will become unsplit again.
If the last segment is deleted, the previous one will be the last one and its height will be modified to unlimited. If one segment is deleted when there are only two segments, all the instances will be deleted and the schedule will become unsplit again.
Parameters
Parameter | Type | Description |
---|---|---|
segmentIndex | Int32 | Zero-based index of the segment. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentException | The segment index should start from 0 and be less than the total segment count. |
InvalidOperationException | This ViewSchedule is not split yet. |