• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Caption

Represents a caption/subtitle track associated with a media shape. Maps to the OOXML p:subTitles element.

Inheritance
object
Caption
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX