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

NameDescription
ValueGets the value: a CssNumericValue, a String or a CssKeywordValue.

Gets the value: a CssNumericValue, a String or a CssKeywordValue.

public object Value { get; }

Property value

object

Methods

NameDescription
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.cs

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

public bool Equals(CssPerspectiveValue other)
Parameters
other CssPerspectiveValue
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.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.

FromCssKeywordValue(CssKeywordValue)

CssTransformValue.cs

Creates a CssPerspectiveValue from a CssKeywordValue.

public static CssPerspectiveValue FromCssKeywordValue(CssKeywordValue value)

Parameters

value CssKeywordValue

Returns

CssPerspectiveValue

FromCssNumericValue(CssNumericValue)

CssTransformValue.cs

Creates a CssPerspectiveValue from a CssNumericValue.

public static CssPerspectiveValue FromCssNumericValue(CssNumericValue value)

Parameters

value CssNumericValue

Returns

CssPerspectiveValue

FromString(string)

CssTransformValue.cs

Creates a CssPerspectiveValue from a string.

public static CssPerspectiveValue FromString(string value)

Parameters

value string

Returns

CssPerspectiveValue

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.

Operators

NameDescription
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.cs

Determines whether two CssPerspectiveValue values are equal.

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

Parameters

left CssPerspectiveValue
right CssPerspectiveValue

Returns

bool

op_Implicit overloads

implicit operator CssPerspectiveValue(CssKeywordValue)

CssTransformValue.cs

Converts a CssKeywordValue to a CssPerspectiveValue.

public static implicit operator CssPerspectiveValue(CssKeywordValue value)
Parameters
value CssKeywordValue
Returns

CssPerspectiveValue

implicit operator CssPerspectiveValue(CssNumericValue)

CssTransformValue.cs

Converts a CssNumericValue to a CssPerspectiveValue.

public static implicit operator CssPerspectiveValue(CssNumericValue value)
Parameters
value CssNumericValue
Returns

CssPerspectiveValue

implicit operator CssPerspectiveValue(string)

CssTransformValue.cs

Converts a string to a CssPerspectiveValue.

public static implicit operator CssPerspectiveValue(string value)
Parameters
value string
Returns

CssPerspectiveValue

operator !=(CssPerspectiveValue, CssPerspectiveValue)

CssTransformValue.cs

Determines whether two CssPerspectiveValue values are not equal.

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

Parameters

left CssPerspectiveValue
right CssPerspectiveValue

Returns

bool