Table of Contents

Class ResizeTimelineSegment

Namespace
Artemis.UI.Shared.Services.ProfileEditor.Commands
Assembly
Artemis.UI.Shared.dll

Represents a profile editor command that can be used to change the length of a timeline segment.

public class ResizeTimelineSegment : IProfileEditorCommand
Inheritance
object
ResizeTimelineSegment
Implements

Constructors

ResizeTimelineSegment(SegmentType, RenderProfileElement, TimeSpan)

Creates a new instance of the ResizeTimelineSegment class.

public ResizeTimelineSegment(ResizeTimelineSegment.SegmentType segmentType, RenderProfileElement profileElement, TimeSpan length)

Parameters

segmentType ResizeTimelineSegment.SegmentType

The type of segment to resize.

profileElement RenderProfileElement

The render profile element whose segment to resize.

length TimeSpan

The 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

segmentType ResizeTimelineSegment.SegmentType

The type of segment to resize.

profileElement RenderProfileElement

The render profile element whose segment to resize.

length TimeSpan

The new length of the segment

originalLength TimeSpan

The original length of the segment

Properties

DisplayName

Gets the name of the command

public string DisplayName { get; }

Property Value

string

Methods

Execute()

Executes the command

public void Execute()

Undo()

Undoes the command

public void Undo()