GemBox.Presentation
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    AudioCDTime Struct

    Namespace:
    GemBox.Presentation.Media
    Assembly:
    GemBox.Presentation.dll

    Represents a CD Audio time used to specify CD track and optionally an offset (in seconds) from the start of the specified CD track.

    • C#
    • VB.NET
    public struct AudioCDTime : IComparable<AudioCDTime>, IEquatable<AudioCDTime>
    Public Structure AudioCDTime
        Implements IComparable(Of AudioCDTime), IEquatable(Of AudioCDTime)
    Implements
    System.IComparable<AudioCDTime>
    System.IEquatable<AudioCDTime>

    Constructors

    AudioCDTime(Int32)

    Initializes a new instance of the AudioCDTime structure with the specified CD track.

    • C#
    • VB.NET
    public AudioCDTime(int track)
    Public Sub New(track As Integer)
    Parameters
    track
    System.Int32

    The CD track.

    Exceptions
    System.ArgumentOutOfRangeException

    Parameter track is less than 1.

    AudioCDTime(Int32, Int32)

    Initializes a new instance of the AudioCDTime structure with the specified CD track and the time offset (in seconds) from the start of the specified CD track.

    • C#
    • VB.NET
    public AudioCDTime(int track, int time)
    Public Sub New(track As Integer, time As Integer)
    Parameters
    track
    System.Int32

    The CD track.

    time
    System.Int32

    The time offset (in seconds) from the start of the specified CD track.

    Exceptions
    System.ArgumentOutOfRangeException

    Parameter track is less than 1 or parameter time is less than zero.

    Properties

    Time

    Gets the time offset (in seconds) from the start of the CD Track.

    • C#
    • VB.NET
    public readonly int Time { get; }
    Public ReadOnly Property Time As Integer
    Property Value
    System.Int32

    The time offset (in seconds) from the start of the CD Track.

    Track

    Gets the CD track.

    • C#
    • VB.NET
    public readonly int Track { get; }
    Public ReadOnly Property Track As Integer
    Property Value
    System.Int32

    The CD track.

    Methods

    CompareTo(AudioCDTime)

    Compares the value of this instance to a specified AudioCDTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified AudioCDTime value.

    • C#
    • VB.NET
    public int CompareTo(AudioCDTime other)
    Public Function CompareTo(other As AudioCDTime) As Integer
    Parameters
    other
    AudioCDTime

    The object to compare to the current instance.

    Returns
    System.Int32

    A signed number indicating the relative values of this instance and the other parameter.

    If returned value is less than zero, then this instance is earlier than other; else, if it is zero, then this instance is the same as other; else (if it is greater than zero) this instance is later than other.

    Equals(AudioCDTime)

    Determines whether the other AudioCDTime is equal to this AudioCDTime instance.

    • C#
    • VB.NET
    public bool Equals(AudioCDTime other)
    Public Function Equals(other As AudioCDTime) As Boolean
    Parameters
    other
    AudioCDTime

    The other CD Audio time to compare with this CD Audio time instance.

    Returns
    System.Boolean

    true if the other AudioCDTime is equal to this AudioCDTime instance; otherwise, false.

    Equals(Object)

    Determines whether the specified System.Object is equal to this AudioCDTime instance.

    • C#
    • VB.NET
    public override bool Equals(object obj)
    Public Overrides Function Equals(obj As Object) As Boolean
    Parameters
    obj
    System.Object

    The System.Object to compare with this CD Audio time instance.

    Returns
    System.Boolean

    true if the specified System.Object is a AudioCDTime and is equal to this AudioCDTime instance; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this AudioCDTime instance.

    • C#
    • VB.NET
    public override int GetHashCode()
    Public Overrides Function GetHashCode As Integer
    Returns
    System.Int32

    An integer value that specifies a hash value for this AudioCDTime instance.

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a System.String that represents this AudioCDTime instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this AudioCDTime instance.

    Overrides
    System.ValueType.ToString()
    Remarks

    This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).

    Operators

    Equality(AudioCDTime, AudioCDTime)

    Determines whether first and second AudioCDTimes are equal.

    • C#
    • VB.NET
    public static bool operator ==(AudioCDTime first, AudioCDTime second)
    Public Shared Operator =(first As AudioCDTime, second As AudioCDTime) As Boolean
    Parameters
    first
    AudioCDTime

    The first CD Audio time.

    second
    AudioCDTime

    The second CD Audio time.

    Returns
    System.Boolean

    true if first and second CD Audio times are equal; otherwise, false.

    GreaterThan(AudioCDTime, AudioCDTime)

    Determines whether first AudioCDTime is later than second AudioCDTime.

    • C#
    • VB.NET
    public static bool operator>(AudioCDTime first, AudioCDTime second)
    Public Shared Operator>(first As AudioCDTime, second As AudioCDTime) As Boolean
    Parameters
    first
    AudioCDTime

    The first CD Audio time.

    second
    AudioCDTime

    The second CD Audio time.

    Returns
    System.Boolean

    true if first CD Audio time is later than second CD Audio time; otherwise, false.

    GreaterThanOrEqual(AudioCDTime, AudioCDTime)

    Determines whether first AudioCDTime is later than or equal to second AudioCDTime.

    • C#
    • VB.NET
    public static bool operator >=(AudioCDTime first, AudioCDTime second)
    Public Shared Operator >=(first As AudioCDTime, second As AudioCDTime) As Boolean
    Parameters
    first
    AudioCDTime

    The first CD Audio time.

    second
    AudioCDTime

    The second CD Audio time.

    Returns
    System.Boolean

    true if first CD Audio time is later than or equal to second CD Audio time; otherwise, false.

    Inequality(AudioCDTime, AudioCDTime)

    Determines whether first and second AudioCDTimes are not equal.

    • C#
    • VB.NET
    public static bool operator !=(AudioCDTime first, AudioCDTime second)
    Public Shared Operator <>(first As AudioCDTime, second As AudioCDTime) As Boolean
    Parameters
    first
    AudioCDTime

    The first CD Audio time.

    second
    AudioCDTime

    The second CD Audio time.

    Returns
    System.Boolean

    true if first and second CD Audio times are not equal; otherwise, false.

    LessThan(AudioCDTime, AudioCDTime)

    Determines whether first AudioCDTime is earlier than second AudioCDTime.

    • C#
    • VB.NET
    public static bool operator <(AudioCDTime first, AudioCDTime second)
    Public Shared Operator <(first As AudioCDTime, second As AudioCDTime) As Boolean
    Parameters
    first
    AudioCDTime

    The first CD Audio time.

    second
    AudioCDTime

    The second CD Audio time.

    Returns
    System.Boolean

    true if first CD Audio time is earlier than second CD Audio time; otherwise, false.

    LessThanOrEqual(AudioCDTime, AudioCDTime)

    Determines whether first AudioCDTime is earlier than or equal to second AudioCDTime.

    • C#
    • VB.NET
    public static bool operator <=(AudioCDTime first, AudioCDTime second)
    Public Shared Operator <=(first As AudioCDTime, second As AudioCDTime) As Boolean
    Parameters
    first
    AudioCDTime

    The first CD Audio time.

    second
    AudioCDTime

    The second CD Audio time.

    Returns
    System.Boolean

    true if first CD Audio time is earlier than or equal to second CD Audio time; otherwise, false.

    Implements

    System.IComparable<T>
    System.IEquatable<T>
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.