Add()
Contents
[
Hide
]ICaptionsCollection::Add(System::String, System::String) method
Adds WebVTT closed captions to the end of the collection.
virtual System::SharedPtr<ICaptions> Aspose::Slides::ICaptionsCollection::Add(System::String label, System::String filePath)=0
Arguments
| Parameter | Type | Description |
|---|---|---|
| label | System::String | The label of the closed captions. |
| filePath | System::String | The path to the WebVTT file. |
Return Value
The added ICaptions instance.
Exceptions
| Exception | Description |
|---|---|
| System::ArgumentNullException | Thrown if filePath is null. |
| System::ArgumentException | Thrown if filePath is empty. |
ICaptionsCollection::Add(System::String, System::SharedPtr<System::IO::Stream>) method
Adds WebVTT closed captions to the end of the collection from a stream.
virtual System::SharedPtr<ICaptions> Aspose::Slides::ICaptionsCollection::Add(System::String label, System::SharedPtr<System::IO::Stream> stream)=0
Arguments
| Parameter | Type | Description |
|---|---|---|
| label | System::String | The label of the closed captions. |
| stream | System::SharedPtr<System::IO::Stream> | The input stream containing data in WebVTT format. |
Return Value
The added ICaptions instance.
Exceptions
| Exception | Description |
|---|---|
| System::ArgumentNullException | Thrown if stream is null. |
| System::ArgumentException | Thrown if the input data is not in WebVTT format. |
See Also
- Typedef SharedPtr
- Class ICaptions
- Class String
- Class ICaptionsCollection
- Class Stream
- Namespace Aspose::Slides
- Library Aspose.Slides