C# Class SubLib.Core.Domain.Subtitle

Represents a subtitle, including its time settings, text and text style.
显示文件 Open project: GNOME/gnome-subtitles Class Usage Examples

Private Properties

Property Type Description
ClearTranslation void
SetFieldsForDeepClone void
Subtitle SubLib.Core.Timing
UpdateEndFrameFromTimes void
UpdateEndFrameFromTimes void
UpdateEndTimeFromFrames void
UpdateEndTimeFromFrames void
UpdateFramesFromTimes void
UpdateFramesFromTimes void
UpdateStartFrameFromTimes void
UpdateStartFrameFromTimes void
UpdateStartTimeFromFrames void
UpdateStartTimeFromFrames void
UpdateTimesFromFrames void
UpdateTimesFromFrames void

Public Methods

Method Description
Clone ( SubtitleProperties propertiesClone ) : Subtitle

SubtitleProperties is not cloned and should be set afterwards.

Subtitle ( SubtitleProperties properties ) : SubLib.Core.Timing

Initializes a new instance of the Subtitle class, given the global subtitles' properties.

Subtitle ( SubtitleProperties properties, SubtitleText text, Style style ) : SubLib.Core.Timing

Initializes a new instance of the Subtitle class, given the global subtitles' properties and the subtitle's text and style.

Subtitle ( SubtitleProperties properties, System.TimeSpan startTime, System.TimeSpan endTime ) : SubLib.Core.Timing

Initializes a new instance of the Subtitle class, given the global subtitles' properties and its start and end times.

Subtitle ( SubtitleProperties properties, int startFrame, int endFrame ) : SubLib.Core.Timing

Initializes a new instance of the Subtitle class, given the global subtitles' properties and its start and end frames.

ToString ( ) : string

Private Methods

Method Description
ClearTranslation ( ) : void
SetFieldsForDeepClone ( SubtitleProperties properties, Times times, Frames frames, SubtitleText text, SubtitleText translation, Style style ) : void
Subtitle ( ) : SubLib.Core.Timing
UpdateEndFrameFromTimes ( ) : void
UpdateEndFrameFromTimes ( float frameRate ) : void
UpdateEndTimeFromFrames ( ) : void
UpdateEndTimeFromFrames ( float frameRate ) : void
UpdateFramesFromTimes ( ) : void
UpdateFramesFromTimes ( float frameRate ) : void
UpdateStartFrameFromTimes ( ) : void
UpdateStartFrameFromTimes ( float frameRate ) : void
UpdateStartTimeFromFrames ( ) : void
UpdateStartTimeFromFrames ( float frameRate ) : void
UpdateTimesFromFrames ( ) : void
UpdateTimesFromFrames ( float frameRate ) : void

Method Details

Clone() public method

SubtitleProperties is not cloned and should be set afterwards.
public Clone ( SubtitleProperties propertiesClone ) : Subtitle
propertiesClone SubtitleProperties
return Subtitle

Subtitle() public method

Initializes a new instance of the Subtitle class, given the global subtitles' properties.
public Subtitle ( SubtitleProperties properties ) : SubLib.Core.Timing
properties SubtitleProperties The subtitles' properties.
return SubLib.Core.Timing

Subtitle() public method

Initializes a new instance of the Subtitle class, given the global subtitles' properties and the subtitle's text and style.
public Subtitle ( SubtitleProperties properties, SubtitleText text, Style style ) : SubLib.Core.Timing
properties SubtitleProperties The subtitles' properties.
text SubtitleText The subtitle's text.
style Style The subtitle's style.
return SubLib.Core.Timing

Subtitle() public method

Initializes a new instance of the Subtitle class, given the global subtitles' properties and its start and end times.
public Subtitle ( SubtitleProperties properties, System.TimeSpan startTime, System.TimeSpan endTime ) : SubLib.Core.Timing
properties SubtitleProperties The subtitles' properties.
startTime System.TimeSpan The subtitle's start time.
endTime System.TimeSpan The subtitle's end time.
return SubLib.Core.Timing

Subtitle() public method

Initializes a new instance of the Subtitle class, given the global subtitles' properties and its start and end frames.
public Subtitle ( SubtitleProperties properties, int startFrame, int endFrame ) : SubLib.Core.Timing
properties SubtitleProperties The subtitles' properties.
startFrame int The subtitle's start frame.
endFrame int The subtitle's end frame.
return SubLib.Core.Timing

ToString() public method

public ToString ( ) : string
return string