Add
Inhalt
[
Ausblenden
]Add(string, string)
Fügt WebVTT-Untertitel am Ende der Sammlung hinzu.
public ICaptions Add(string label, string filePath)
Parameter | Typ | Beschreibung |
---|---|---|
label | String | Das Label der Untertitel. |
filePath | String | Der Pfad zur WebVTT-Datei. |
Rückgabewert
Die hinzugefügte ICaptions
Instanz.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | Wird ausgelöst, wenn filePath null ist. |
ArgumentException | Wird ausgelöst, wenn filePath leer ist. |
Siehe auch
- Schnittstelle ICaptions
- Klasse CaptionsCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides
Add(string, Stream)
Fügt WebVTT-Untertitel am Ende der Sammlung aus einem Stream hinzu.
public ICaptions Add(string label, Stream stream)
Parameter | Typ | Beschreibung |
---|---|---|
label | String | Das Label der Untertitel. |
stream | Stream | Der Eingabestream, der Daten im WebVTT-Format enthält. |
Rückgabewert
Die hinzugefügte ICaptions
Instanz.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | Wird ausgelöst, wenn stream null ist. |
ArgumentException | Wird ausgelöst, wenn die Eingabedaten nicht im WebVTT-Format sind. |
Siehe auch
- Schnittstelle ICaptions
- Klasse CaptionsCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides