CssStyleValueOrString Struct
The (CSSStyleValue or USVString) union of StylePropertyMap.Set and StylePropertyMap.Append.
public readonly struct CssStyleValueOrString : IEquatable<CssStyleValueOrString>- Implements
Properties
| Name | Description |
|---|---|
| Value | Gets the value: a CssStyleValue or a String. |
Value
StylePropertyMap.csMethods
| Name | Description |
|---|---|
| Equals(CssStyleValueOrString) | 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. |
| FromCssStyleValue(CssStyleValue) | Creates a CssStyleValueOrString from a CssStyleValue. |
| FromString(string) | Creates a CssStyleValueOrString from a string. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(CssStyleValueOrString)
StylePropertyMap.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(CssStyleValueOrString other)Parameters
otherCssStyleValueOrString- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
StylePropertyMap.csFromCssStyleValue(CssStyleValue)
StylePropertyMap.csCreates a CssStyleValueOrString from a CssStyleValue.
public static CssStyleValueOrString FromCssStyleValue(CssStyleValue value)FromString(string)
StylePropertyMap.csCreates a CssStyleValueOrString from a string.
public static CssStyleValueOrString FromString(string value)GetHashCode()
StylePropertyMap.csOperators
| Name | Description |
|---|---|
| operator ==(CssStyleValueOrString, CssStyleValueOrString) | Determines whether two CssStyleValueOrString values are equal. |
| implicit operator CssStyleValueOrString(CssStyleValue) | Converts a CssStyleValue to a CssStyleValueOrString. |
| implicit operator CssStyleValueOrString(string) | Converts a string to a CssStyleValueOrString. |
| operator !=(CssStyleValueOrString, CssStyleValueOrString) | Determines whether two CssStyleValueOrString values are not equal. |
operator ==(CssStyleValueOrString, CssStyleValueOrString)
StylePropertyMap.csDetermines whether two CssStyleValueOrString values are equal.
public static bool operator ==(CssStyleValueOrString left, CssStyleValueOrString right)op_Implicit overloads
implicit operator CssStyleValueOrString(CssStyleValue)
StylePropertyMap.csConverts a CssStyleValue to a CssStyleValueOrString.
public static implicit operator CssStyleValueOrString(CssStyleValue value)implicit operator CssStyleValueOrString(string)
StylePropertyMap.csConverts a string to a CssStyleValueOrString.
public static implicit operator CssStyleValueOrString(string value)operator !=(CssStyleValueOrString, CssStyleValueOrString)
StylePropertyMap.csDetermines whether two CssStyleValueOrString values are not equal.
public static bool operator !=(CssStyleValueOrString left, CssStyleValueOrString right)