Class MediaSegment
Represents a media segment with start and end time offsets.
Used for trim (playback window) and fade (fade-in/fade-out) settings.
Maps to the OOXML p:trim and p:fade elements.
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public class MediaSegment
Constructors
MediaSegment()
Initializes a new segment with no start or end offset.
Declaration
public MediaSegment()
MediaSegment(int?, int?)
Initializes a new segment with the specified start and end offsets.
Declaration
public MediaSegment(int? startMilliseconds, int? endMilliseconds)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | startMilliseconds | Start offset in milliseconds. |
| int? | endMilliseconds | End offset in milliseconds. |
Properties
EndMilliseconds
Gets or sets the end offset in milliseconds. For Trim, this is the trim-from-end offset. For Fade, this is the fade-out duration.
Declaration
public int? EndMilliseconds { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
HasValues
Gets whether this segment has any value set.
Declaration
public bool HasValues { get; }
Property Value
| Type | Description |
|---|---|
| bool |
StartMilliseconds
Gets or sets the start offset in milliseconds. For Trim, this is the trim-from-start offset. For Fade, this is the fade-in duration.
Declaration
public int? StartMilliseconds { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |