Struct EpubNarrationTimestamp
Represents a timestamp of the beginning or the end of the narration audio clip.
Inherited Members
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public readonly struct EpubNarrationTimestamp : IComparable, IComparable<EpubNarrationTimestamp>, IEquatable<EpubNarrationTimestamp>
Constructors
View SourceEpubNarrationTimestamp(int, int, int, int)
Initializes a new instance of the EpubNarrationTimestamp structure.
Declaration
public EpubNarrationTimestamp(int hour, int minute, int second, int millisecond)
Parameters
| Type | Name | Description |
|---|---|---|
| int | hour | The hours part of the timestamp. |
| int | minute | The minutes part of the timestamp. |
| int | second | The seconds part of the timestamp. |
| int | millisecond | The milliseconds part of the timestamp. |
Properties
View SourceHour
Gets the hours part of the timestamp.
Declaration
public int Hour { get; }
Property type: int
View SourceMillisecond
Gets the milliseconds part of the timestamp.
Declaration
public int Millisecond { get; }
Property type: int
View SourceMinute
Gets the minutes part of the timestamp.
Declaration
public int Minute { get; }
Property type: int
View SourceSecond
Gets the seconds part of the timestamp.
Declaration
public int Second { get; }
Property type: int
Methods
View SourceCompareTo(object?)
Compares the value of this instance to a specified object that contains a specified EpubNarrationTimestamp value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified EpubNarrationTimestamp value.
Declaration
public int CompareTo(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | A boxed object to compare, or null. |
Returns
| Type | Description |
|---|---|
| int | A signed number indicating the relative values of this instance and the |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The type of the |
CompareTo(EpubNarrationTimestamp)
Compares the value of this instance to a specified EpubNarrationTimestamp value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified EpubNarrationTimestamp value.
Declaration
public int CompareTo(EpubNarrationTimestamp other)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | other | The object to compare to the current instance. |
Returns
| Type | Description |
|---|---|
| int | A signed number indicating the relative values of this instance and the |
Equals(object?)
Returns a value indicating whether this instance is equal to a specified object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare to this instance. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
View SourceEquals(EpubNarrationTimestamp)
Returns a value indicating whether the value of this instance is equal to the value of the specified EpubNarrationTimestamp instance.
Declaration
public bool Equals(EpubNarrationTimestamp other)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | other | The object to compare to this instance. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer hash code. |
Overrides
View SourceToString()
Converts the value of the current EpubNarrationTimestamp object to its equivalent string representation.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string representation of the value of the current EpubNarrationTimestamp object in |
Overrides
View SourceToTimeSpan()
Converts the value of the current EpubNarrationTimestamp object to its equivalent TimeSpan representation.
Declaration
public TimeSpan ToTimeSpan()
Returns
| Type | Description |
|---|---|
| TimeSpan | A TimeSpan representation of the value of the current EpubNarrationTimestamp object. |
Operators
View Sourceoperator ==(EpubNarrationTimestamp, EpubNarrationTimestamp)
Determines whether two specified instances of EpubNarrationTimestamp are equal.
Declaration
public static bool operator ==(EpubNarrationTimestamp left, EpubNarrationTimestamp right)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | left | The first object to compare. |
| EpubNarrationTimestamp | right | The second object to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator >(EpubNarrationTimestamp, EpubNarrationTimestamp)
Determines whether one specified EpubNarrationTimestamp is later than another specified EpubNarrationTimestamp.
Declaration
public static bool operator >(EpubNarrationTimestamp left, EpubNarrationTimestamp right)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | left | The first object to compare. |
| EpubNarrationTimestamp | right | The second object to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator >=(EpubNarrationTimestamp, EpubNarrationTimestamp)
Determines whether one specified EpubNarrationTimestamp is the same or later than another specified EpubNarrationTimestamp.
Declaration
public static bool operator >=(EpubNarrationTimestamp left, EpubNarrationTimestamp right)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | left | The first object to compare. |
| EpubNarrationTimestamp | right | The second object to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator !=(EpubNarrationTimestamp, EpubNarrationTimestamp)
Determines whether two specified instances of EpubNarrationTimestamp are not equal.
Declaration
public static bool operator !=(EpubNarrationTimestamp left, EpubNarrationTimestamp right)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | left | The first object to compare. |
| EpubNarrationTimestamp | right | The second object to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator <(EpubNarrationTimestamp, EpubNarrationTimestamp)
Determines whether one specified EpubNarrationTimestamp is earlier than another specified EpubNarrationTimestamp.
Declaration
public static bool operator <(EpubNarrationTimestamp left, EpubNarrationTimestamp right)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | left | The first object to compare. |
| EpubNarrationTimestamp | right | The second object to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator <=(EpubNarrationTimestamp, EpubNarrationTimestamp)
Determines whether one specified EpubNarrationTimestamp is the same or earlier than another specified EpubNarrationTimestamp.
Declaration
public static bool operator <=(EpubNarrationTimestamp left, EpubNarrationTimestamp right)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | left | The first object to compare. |
| EpubNarrationTimestamp | right | The second object to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator -(EpubNarrationTimestamp, EpubNarrationTimestamp)
Subtracts a specified EpubNarrationTimestamp from another specified EpubNarrationTimestamp and returns a time interval.
Declaration
public static TimeSpan operator -(EpubNarrationTimestamp first, EpubNarrationTimestamp second)
Parameters
| Type | Name | Description |
|---|---|---|
| EpubNarrationTimestamp | first | The timestamp value to subtract from (the minuend). |
| EpubNarrationTimestamp | second | The timestamp value to subtract (the subtrahend). |
Returns
| Type | Description |
|---|---|
| TimeSpan | The time interval between |