SubLib Subtitle Library

SubtitleCollection.AddNewAt Method 

Creates a subtitle and adds it to the collection, inserting it at the specified index.

public bool AddNewAt(
   int index,
   SubtitleProperties subtitleProperties
);

Parameters

index
The zero-based index at 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 start time will be zero and its duration will be MaxSingleLineSubtitleDuration.

See Also

SubtitleCollection Class | SubLib Namespace