Deletes a schedule segment.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public void DeleteSegment( int segmentIndex )
Parameters
- segmentIndex Int32
- Zero-based index of the segment.
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. |
