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 ")".

Inheritance
CssStyleValue CssUnparsedValue
Implements

Constructors

NameDescription
CssUnparsedValue(IEnumerable<CssUnparsedSegment>)https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-cssunparsedvalue

CssUnparsedValue(IEnumerable<CssUnparsedSegment>)

CssUnparsedValue.cs

https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-cssunparsedvalue

public CssUnparsedValue(IEnumerable<CssUnparsedSegment> members)

Properties

NameDescription
CountGets the number of segments.
LengthGets the number of segments.

Gets the number of segments.

public int Count { get; }

Property value

int

Gets the number of segments.

public uint Length { get; }

Indexers

NameDescription
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

Gets the segment at the given index.

public CssUnparsedSegment this[int index] { get; }
Parameters
index int
Property value

CssUnparsedSegment

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.

public CssUnparsedSegment this[uint index] { get; set; }

Methods

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

Returns 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)

Parameters

index int

Returns

CssUnparsedSegment

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

CssUnparsedValue.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.

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).

public override string ToString()

Returns

string