CssPerspectiveValue Struct
The CSSPerspectiveValue typedef: (CSSNumericValue or CSSKeywordish) (https://drafts.css-houdini.org/css-typed-om-1/#typedefdef-cssperspectivevalue).
public readonly struct CssPerspectiveValue : IEquatable<CssPerspectiveValue>- Implements
Properties
| Name | Description |
|---|---|
| Value | Gets the value: a CssNumericValue, a String or a CssKeywordValue. |
Value
CssTransformValue.csGets the value: a CssNumericValue, a String or a CssKeywordValue.
public object Value { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(CssPerspectiveValue) | 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. |
| FromCssKeywordValue(CssKeywordValue) | Creates a CssPerspectiveValue from a CssKeywordValue. |
| FromCssNumericValue(CssNumericValue) | Creates a CssPerspectiveValue from a CssNumericValue. |
| FromString(string) | Creates a CssPerspectiveValue from a string. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(CssPerspectiveValue)
CssTransformValue.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(CssPerspectiveValue other)Parameters
otherCssPerspectiveValue- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
CssTransformValue.csFromCssKeywordValue(CssKeywordValue)
CssTransformValue.csCreates a CssPerspectiveValue from a CssKeywordValue.
public static CssPerspectiveValue FromCssKeywordValue(CssKeywordValue value)FromCssNumericValue(CssNumericValue)
CssTransformValue.csCreates a CssPerspectiveValue from a CssNumericValue.
public static CssPerspectiveValue FromCssNumericValue(CssNumericValue value)FromString(string)
CssTransformValue.csCreates a CssPerspectiveValue from a string.
public static CssPerspectiveValue FromString(string value)GetHashCode()
CssTransformValue.csOperators
| Name | Description |
|---|---|
| operator ==(CssPerspectiveValue, CssPerspectiveValue) | Determines whether two CssPerspectiveValue values are equal. |
| implicit operator CssPerspectiveValue(CssKeywordValue) | Converts a CssKeywordValue to a CssPerspectiveValue. |
| implicit operator CssPerspectiveValue(CssNumericValue) | Converts a CssNumericValue to a CssPerspectiveValue. |
| implicit operator CssPerspectiveValue(string) | Converts a string to a CssPerspectiveValue. |
| operator !=(CssPerspectiveValue, CssPerspectiveValue) | Determines whether two CssPerspectiveValue values are not equal. |
operator ==(CssPerspectiveValue, CssPerspectiveValue)
CssTransformValue.csDetermines whether two CssPerspectiveValue values are equal.
public static bool operator ==(CssPerspectiveValue left, CssPerspectiveValue right)op_Implicit overloads
implicit operator CssPerspectiveValue(CssKeywordValue)
CssTransformValue.csConverts a CssKeywordValue to a CssPerspectiveValue.
public static implicit operator CssPerspectiveValue(CssKeywordValue value)implicit operator CssPerspectiveValue(CssNumericValue)
CssTransformValue.csConverts a CssNumericValue to a CssPerspectiveValue.
public static implicit operator CssPerspectiveValue(CssNumericValue value)implicit operator CssPerspectiveValue(string)
CssTransformValue.csConverts a string to a CssPerspectiveValue.
public static implicit operator CssPerspectiveValue(string value)operator !=(CssPerspectiveValue, CssPerspectiveValue)
CssTransformValue.csDetermines whether two CssPerspectiveValue values are not equal.
public static bool operator !=(CssPerspectiveValue left, CssPerspectiveValue right)