Add
Contents
[
Hide
]Add(string, string)
Adds WebVTT closed captions to the end of the collection.
public ICaptions Add(string label, string filePath)
Parameter | Type | Description |
---|---|---|
label | String | The label of the closed captions. |
filePath | String | The path to the WebVTT file. |
Return Value
The added ICaptions
instance.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown if filePath is null . |
ArgumentException | Thrown if filePath is empty. |
See Also
- interface ICaptions
- interface ICaptionsCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
Add(string, Stream)
Adds WebVTT closed captions to the end of the collection from a stream.
public ICaptions Add(string label, Stream stream)
Parameter | Type | Description |
---|---|---|
label | String | The label of the closed captions. |
stream | Stream | The input stream containing data in WebVTT format. |
Return Value
The added ICaptions
instance.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown if stream is null . |
ArgumentException | Thrown if the input data is not in WebVTT format. |
See Also
- interface ICaptions
- interface ICaptionsCollection
- namespace Aspose.Slides
- assembly Aspose.Slides