Add()
Contents
[
Hide
]CaptionsCollection::Add(System::String, System::String) method
Adds WebVTT closed captions to the end of the collection.
System::SharedPtr<ICaptions> Aspose::Slides::CaptionsCollection::Add(System::String label, System::String filePath) override
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. |
CaptionsCollection::Add(System::String, System::SharedPtr<System::IO::Stream>) method
Adds WebVTT closed captions to the end of the collection from a stream.
System::SharedPtr<ICaptions> Aspose::Slides::CaptionsCollection::Add(System::String label, System::SharedPtr<System::IO::Stream> stream) override
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 CaptionsCollection
- Class Stream
- Namespace Aspose::Slides
- Library Aspose.Slides