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