C# Class SubLib.Core.Domain.Subtitles

Represents the root class of all the subtitles.
A Subtitles class is created using the SubtitleFactory.
Inheritance: ICloneable
Mostrar archivo Open project: GNOME/gnome-subtitles Class Usage Examples

Public Methods

Method Description
Clone ( ) : object
GetAvailableType ( SubtitleType type ) : SubtitleTypeInfo

Get information about an available subtitle type.

IsSubtitleExtension ( string dottedExtension ) : bool
ToString ( ) : string

Protected Methods

Method Description
Subtitles ( SubtitleCollection collection, SubtitleProperties properties ) : SubLib.IO.SubtitleFormats

Initializes a new instance of the Subtitles class.

Private Methods

Method Description
GetSubtitleText ( int subtitleNumber, SubtitleTextType textType ) : SubtitleText
UpdateFramesFromTimes ( float frameRate ) : void
UpdateTimesFromFrames ( float frameRate ) : void

Method Details

Clone() public method

public Clone ( ) : object
return object

GetAvailableType() public static method

Get information about an available subtitle type.
public static GetAvailableType ( SubtitleType type ) : SubtitleTypeInfo
type SubtitleType The subtitle type.
return SubtitleTypeInfo

IsSubtitleExtension() public static method

public static IsSubtitleExtension ( string dottedExtension ) : bool
dottedExtension string
return bool

Subtitles() protected method

Initializes a new instance of the Subtitles class.
protected Subtitles ( SubtitleCollection collection, SubtitleProperties properties ) : SubLib.IO.SubtitleFormats
collection SubtitleCollection A collection of subtitles.
properties SubtitleProperties The subtitles' properties.
return SubLib.IO.SubtitleFormats

ToString() public method

public ToString ( ) : string
return string