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
| Name | Description |
|---|---|
| Auto | Gets the auto value. |
| IsAuto | Gets a value indicating whether the value is auto. |
| Number | Gets the number, or NaN when the value is auto. |
| Value | Gets the value: a Double, or the string auto. |
Auto
VttCue.csIsAuto
VttCue.csNumber
VttCue.csValue
VttCue.csMethods
| Name | Description |
|---|---|
| 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.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(LineAndPositionSetting other)Parameters
otherLineAndPositionSetting- 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.csFromAutoKeyword(AutoKeyword)
VttCue.csCreates a LineAndPositionSetting from the auto keyword.
public static LineAndPositionSetting FromAutoKeyword(AutoKeyword value)FromDouble(double)
VttCue.csCreates a LineAndPositionSetting from a number.
public static LineAndPositionSetting FromDouble(double value)GetHashCode()
VttCue.csToString()
VttCue.csOperators
| Name | Description |
|---|---|
| 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.csDetermines whether two LineAndPositionSetting values are equal.
public static bool operator ==(LineAndPositionSetting left, LineAndPositionSetting right)op_Implicit overloads
implicit operator LineAndPositionSetting(AutoKeyword)
VttCue.csConverts the auto keyword to a LineAndPositionSetting.
public static implicit operator LineAndPositionSetting(AutoKeyword value)implicit operator LineAndPositionSetting(double)
VttCue.csConverts a number to a LineAndPositionSetting.
public static implicit operator LineAndPositionSetting(double value)operator !=(LineAndPositionSetting, LineAndPositionSetting)
VttCue.csDetermines whether two LineAndPositionSetting values are not equal.
public static bool operator !=(LineAndPositionSetting left, LineAndPositionSetting right)