CaptionsCollection

CaptionsCollection class

表示关闭字幕的集合。

public sealed class CaptionsCollection : ICaptionsCollection

Properties

NameDescription
Count { get; }返回集合中元素的数量。只读 Int32。
Item { get; }返回指定索引处的关闭字幕。只读 ICaptions

Methods

NameDescription
Add(string, Stream)从流中将 WebVTT 关闭字幕添加到集合的末尾。
Add(string, string)将 WebVTT 关闭字幕添加到集合的末尾。
Clear()从集合中移除所有关闭字幕。
GetEnumerator()返回一个枚举数,用于迭代集合。
Remove(ICaptions)从集合中移除指定的关闭字幕。
RemoveAt(int)移除指定索引处的关闭字幕。

See Also