SubLib Subtitle Library

SubtitleCollection.AddNewAfter Method 

Creates a subtitle based on the subtitle at the specified index and adds it to the collection, inserting it right after that index.

public bool AddNewAfter(
   int index,
   SubtitleProperties subtitleProperties
);

Parameters

index
The zero-based index after which the subtitle should be inserted.
subtitleProperties
The SubtitleProperties of the subtitles.

Return Value

True if the subtitle could be added, false otherwise.

Remarks

The newly created subtitle's times will be based on the specified subtitle. Its start time will be the start time of the existing subtitle plus MinTimeBetweenSubtitles. Its duration will be MaxSingleLineSubtitleDuration.

See Also

SubtitleCollection Class | SubLib Namespace