CssUnparsedSegment Struct
The CSSUnparsedSegment typedef: (USVString or CSSVariableReferenceValue) (https://drafts.css-houdini.org/css-typed-om-1/#typedefdef-cssunparsedsegment).
public readonly struct CssUnparsedSegment : IEquatable<CssUnparsedSegment>- Implements
Properties
| Name | Description |
|---|---|
| StringValue | Gets the segment as a string, or null when it is a variable reference. |
| Value | Gets the value: a String or a CssVariableReferenceValue. |
| VariableReference | Gets the segment as a variable reference, or null when it is a string. |
StringValue
CssUnparsedValue.csValue
CssUnparsedValue.csVariableReference
CssUnparsedValue.csGets the segment as a variable reference, or null when it is a string.
public CssVariableReferenceValue? VariableReference { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(CssUnparsedSegment) | 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. |
| FromCssVariableReferenceValue(CssVariableReferenceValue) | Creates a CssUnparsedSegment from a CssVariableReferenceValue. |
| FromString(string) | Creates a CssUnparsedSegment from a string. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(CssUnparsedSegment)
CssUnparsedValue.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(CssUnparsedSegment other)Parameters
otherCssUnparsedSegment- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
CssUnparsedValue.csFromCssVariableReferenceValue(CssVariableReferenceValue)
CssUnparsedValue.csCreates a CssUnparsedSegment from a CssVariableReferenceValue.
public static CssUnparsedSegment FromCssVariableReferenceValue(CssVariableReferenceValue value)FromString(string)
CssUnparsedValue.csCreates a CssUnparsedSegment from a string.
public static CssUnparsedSegment FromString(string value)GetHashCode()
CssUnparsedValue.csOperators
| Name | Description |
|---|---|
| operator ==(CssUnparsedSegment, CssUnparsedSegment) | Determines whether two CssUnparsedSegment values are equal. |
| implicit operator CssUnparsedSegment(CssVariableReferenceValue) | Converts a CssVariableReferenceValue to a CssUnparsedSegment. |
| implicit operator CssUnparsedSegment(string) | Converts a string to a CssUnparsedSegment. |
| operator !=(CssUnparsedSegment, CssUnparsedSegment) | Determines whether two CssUnparsedSegment values are not equal. |
operator ==(CssUnparsedSegment, CssUnparsedSegment)
CssUnparsedValue.csDetermines whether two CssUnparsedSegment values are equal.
public static bool operator ==(CssUnparsedSegment left, CssUnparsedSegment right)op_Implicit overloads
implicit operator CssUnparsedSegment(CssVariableReferenceValue)
CssUnparsedValue.csConverts a CssVariableReferenceValue to a CssUnparsedSegment.
public static implicit operator CssUnparsedSegment(CssVariableReferenceValue value)implicit operator CssUnparsedSegment(string)
CssUnparsedValue.csConverts a string to a CssUnparsedSegment.
public static implicit operator CssUnparsedSegment(string value)operator !=(CssUnparsedSegment, CssUnparsedSegment)
CssUnparsedValue.csDetermines whether two CssUnparsedSegment values are not equal.
public static bool operator !=(CssUnparsedSegment left, CssUnparsedSegment right)