Class ResizeTimelineSegment
Represents a profile editor command that can be used to change the length of a timeline segment.
public class ResizeTimelineSegment : IProfileEditorCommand
- Inheritance
-
objectResizeTimelineSegment
- Implements
Constructors
ResizeTimelineSegment(SegmentType, RenderProfileElement, TimeSpan)
Creates a new instance of the ResizeTimelineSegment class.
public ResizeTimelineSegment(ResizeTimelineSegment.SegmentType segmentType, RenderProfileElement profileElement, TimeSpan length)
Parameters
segmentTypeResizeTimelineSegment.SegmentTypeThe type of segment to resize.
profileElementRenderProfileElementThe render profile element whose segment to resize.
lengthTimeSpanThe new length of the segment
ResizeTimelineSegment(SegmentType, RenderProfileElement, TimeSpan, TimeSpan)
Creates a new instance of the ResizeTimelineSegment class.
public ResizeTimelineSegment(ResizeTimelineSegment.SegmentType segmentType, RenderProfileElement profileElement, TimeSpan length, TimeSpan originalLength)
Parameters
segmentTypeResizeTimelineSegment.SegmentTypeThe type of segment to resize.
profileElementRenderProfileElementThe render profile element whose segment to resize.
lengthTimeSpanThe new length of the segment
originalLengthTimeSpanThe original length of the segment
Properties
DisplayName
Gets the name of the command
public string DisplayName { get; }
Property Value
Methods
Execute()
Executes the command
public void Execute()
Undo()
Undoes the command
public void Undo()