LineAndPositionSetting Struct

The (double or AutoKeyword) union of the line and of the position of a WebVTT cue (https://w3c.github.io/webvtt/#typedefdef-lineandpositionsetting): a number, or auto.

public readonly struct LineAndPositionSetting : IEquatable<LineAndPositionSetting>
Implements

Properties

NameDescription
AutoGets the auto value.
IsAutoGets a value indicating whether the value is auto.
NumberGets the number, or NaN when the value is auto.
ValueGets the value: a Double, or the string auto.

Gets the auto value.

public static LineAndPositionSetting Auto { get; }

IsAuto

VttCue.cs

Gets a value indicating whether the value is auto.

public bool IsAuto { get; }

Property value

bool

Number

VttCue.cs

Gets the number, or NaN when the value is auto.

public double Number { get; }

Property value

double

Gets the value: a Double, or the string auto.

public object Value { get; }

Property value

object

Methods

NameDescription
Equals(LineAndPositionSetting)Indicates whether the current object is equal to another object of the same type.
Equals(object?)Indicates whether this instance and a specified object are equal.
FromAutoKeyword(AutoKeyword)Creates a LineAndPositionSetting from the auto keyword.
FromDouble(double)Creates a LineAndPositionSetting from a number.
GetHashCode()Returns the hash code for this instance.
ToString()Returns the fully qualified type name of this instance.

Equals overloads

Equals(LineAndPositionSetting)

VttCue.cs

Indicates whether the current object is equal to another object of the same type.

public bool Equals(LineAndPositionSetting other)
Parameters
other LineAndPositionSetting
An object to compare with this object.
Returns

bool true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

VttCue.cs

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)
Parameters
obj object?
The object to compare with the current instance.
Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.

FromAutoKeyword(AutoKeyword)

VttCue.cs

Creates a LineAndPositionSetting from the auto keyword.

public static LineAndPositionSetting FromAutoKeyword(AutoKeyword value)

Parameters

value AutoKeyword

Returns

LineAndPositionSetting

FromDouble(double)

VttCue.cs

Creates a LineAndPositionSetting from a number.

public static LineAndPositionSetting FromDouble(double value)

Parameters

value double

Returns

LineAndPositionSetting

GetHashCode()

VttCue.cs

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int A 32-bit signed integer that is the hash code for this instance.

ToString()

VttCue.cs

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string The fully qualified type name.

Operators

NameDescription
operator ==(LineAndPositionSetting, LineAndPositionSetting)Determines whether two LineAndPositionSetting values are equal.
implicit operator LineAndPositionSetting(AutoKeyword)Converts the auto keyword to a LineAndPositionSetting.
implicit operator LineAndPositionSetting(double)Converts a number to a LineAndPositionSetting.
operator !=(LineAndPositionSetting, LineAndPositionSetting)Determines whether two LineAndPositionSetting values are not equal.

operator ==(LineAndPositionSetting, LineAndPositionSetting)

VttCue.cs

Determines whether two LineAndPositionSetting values are equal.

public static bool operator ==(LineAndPositionSetting left, LineAndPositionSetting right)

op_Implicit overloads

implicit operator LineAndPositionSetting(AutoKeyword)

VttCue.cs

Converts the auto keyword to a LineAndPositionSetting.

public static implicit operator LineAndPositionSetting(AutoKeyword value)
Parameters
value AutoKeyword
Returns

LineAndPositionSetting

implicit operator LineAndPositionSetting(double)

VttCue.cs

Converts a number to a LineAndPositionSetting.

public static implicit operator LineAndPositionSetting(double value)
Parameters
value double
Returns

LineAndPositionSetting

operator !=(LineAndPositionSetting, LineAndPositionSetting)

VttCue.cs

Determines whether two LineAndPositionSetting values are not equal.

public static bool operator !=(LineAndPositionSetting left, LineAndPositionSetting right)