CssTransformValue Class

A <transform-list> value (https://drafts.css-houdini.org/css-typed-om-1/#csstransformvalue): a list of transform components.

Inheritance
CssStyleValue CssTransformValue
Implements

Constructors

NameDescription
CssTransformValue(IEnumerable<CssTransformComponent>)https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-csstransformvalue

CssTransformValue(IEnumerable<CssTransformComponent>)

CssTransformValue.cs

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

public CssTransformValue(IEnumerable<CssTransformComponent> transforms)

Properties

NameDescription
CountGets the number of transform components.
Is2DWhether all the components are 2D (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-is2d).
LengthGets the number of transform components.

Gets the number of transform components.

public int Count { get; }

Property value

int

Whether all the components are 2D (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-is2d).

public bool Is2D { get; }

Gets the number of transform components.

public uint Length { get; }

Indexers

NameDescription
this[int]Gets the transform component at the given index.
this[uint]Gets or sets a transform component (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-__getter__-index-index): setting the index that follows the last component appends a component, a greater index throws a RangeError.

ItemAt overloads

Gets the transform component at the given index.

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

CssTransformComponent

Gets or sets a transform component (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-__getter__-index-index): setting the index that follows the last component appends a component, a greater index throws a RangeError.

public CssTransformComponent 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.CssTransformComponent>.get_Item(int)
System.Collections.IEnumerable.GetEnumerator()
ToMatrix()Returns the product of the matrices of the components (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-tomatrix).
ToString()https://drafts.css-houdini.org/css-typed-om-1/#serialize-a-csstransformvalue: the components separated by spaces.

GetEnumerator()

CssTransformValue.cs

Returns an enumerator that iterates through the collection.

public IEnumerator<CssTransformComponent> GetEnumerator()

Returns

IEnumerator<CssTransformComponent> An enumerator that can be used to iterate through the collection.

System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Css.TypedOm.CssTransformComponent>.get_Item(int)

Parameters

index int

Returns

CssTransformComponent

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

CssTransformValue.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.

Returns the product of the matrices of the components (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-tomatrix).

public DomMatrix ToMatrix()

https://drafts.css-houdini.org/css-typed-om-1/#serialize-a-csstransformvalue: the components separated by spaces.

public override string ToString()

Returns

string