CssUnparsedValue Class
A value that references custom properties (https://drafts.css-houdini.org/css-typed-om-1/#cssunparsedvalue): a list of strings and CssVariableReferenceValue objects, e.g. calc(42px + var(--foo)) is the string "calc(42px + ", a reference to --foo and the string ")".
public sealed class CssUnparsedValue : CssStyleValue, IEnumerable<CssUnparsedSegment>, IReadOnlyCollection<CssUnparsedSegment>, IReadOnlyList<CssUnparsedSegment>, IEnumerable- Inheritance
CssStyleValueCssUnparsedValue- Implements
Constructors
| Name | Description |
|---|---|
| CssUnparsedValue(IEnumerable<CssUnparsedSegment>) | https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-cssunparsedvalue |
CssUnparsedValue(IEnumerable<CssUnparsedSegment>)
CssUnparsedValue.cshttps://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-cssunparsedvalue
public CssUnparsedValue(IEnumerable<CssUnparsedSegment> members)Properties
| Name | Description |
|---|---|
| Count | Gets the number of segments. |
| Length | Gets the number of segments. |
Count
CssUnparsedValue.csLength
CssUnparsedValue.csIndexers
| Name | Description |
|---|---|
| this[int] | Gets the segment at the given index. |
| this[uint] | Gets or sets a segment (https://drafts.css-houdini.org/css-typed-om-1/#cssunparsedvalue-indexed-property): setting the index that follows the last segment appends a segment, a greater index throws a RangeError. |
ItemAt overloads
this[int]
CssUnparsedValue.csGets the segment at the given index.
public CssUnparsedSegment this[int index] { get; }this[uint]
CssUnparsedValue.csGets or sets a segment (https://drafts.css-houdini.org/css-typed-om-1/#cssunparsedvalue-indexed-property): setting the index that follows the last segment appends a segment, a greater index throws a RangeError.
public CssUnparsedSegment this[uint index] { get; set; }Methods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Css.TypedOm.CssUnparsedSegment>.get_Item(int) | |
| System.Collections.IEnumerable.GetEnumerator() | |
| ToString() | https://drafts.css-houdini.org/css-typed-om-1/#unparsedvalue-serialization: the concatenation of the segments; an empty comment separates two tokens that would otherwise be parsed as one (e.g. two identifiers). |
GetEnumerator()
CssUnparsedValue.csReturns an enumerator that iterates through the collection.
public IEnumerator<CssUnparsedSegment> GetEnumerator()Returns
IEnumerator<CssUnparsedSegment> An enumerator that can be used to iterate through the collection.
System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Css.TypedOm.CssUnparsedSegment>.get_Item(int)
CssUnparsedSegment IReadOnlyList<CssUnparsedSegment>.get_Item(int index)No documentation is available.