Class Caption
Represents a caption/subtitle track associated with a media shape.
Maps to the OOXML p:subTitles element.
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class Caption
Constructors
Caption(string, byte[])
Initializes a new caption with the specified label and raw data.
Declaration
public Caption(string label, byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | The display label for this caption track. |
| byte[] | data | The caption data bytes. |
Caption(string, Stream)
Initializes a new caption with the specified label and data stream.
Declaration
public Caption(string label, Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | The display label for this caption track. |
| Stream | stream | The caption data stream (e.g. WebVTT or SRT bytes). |
Properties
Data
Gets the raw caption data bytes, or null when no data was provided.
Declaration
public byte[] Data { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Label
Gets the display label for this caption track.
Declaration
public string Label { get; }
Property Value
| Type | Description |
|---|---|
| string |