CssTransformValue Class
A <transform-list> value (https://drafts.css-houdini.org/css-typed-om-1/#csstransformvalue): a list of transform components.
public sealed class CssTransformValue : CssStyleValue, IEnumerable<CssTransformComponent>, IReadOnlyCollection<CssTransformComponent>, IReadOnlyList<CssTransformComponent>, IEnumerable- Inheritance
CssStyleValueCssTransformValue- Implements
Constructors
| Name | Description |
|---|---|
| CssTransformValue(IEnumerable<CssTransformComponent>) | https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-csstransformvalue |
CssTransformValue(IEnumerable<CssTransformComponent>)
CssTransformValue.cshttps://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-csstransformvalue
public CssTransformValue(IEnumerable<CssTransformComponent> transforms)Properties
| Name | Description |
|---|---|
| Count | Gets the number of transform components. |
| Is2D | Whether all the components are 2D (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-is2d). |
| Length | Gets the number of transform components. |
Count
CssTransformValue.csWhether all the components are 2D (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-is2d).
public bool Is2D { get; }Length
CssTransformValue.csIndexers
| Name | Description |
|---|---|
| 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
this[int]
CssTransformValue.csGets the transform component at the given index.
public CssTransformComponent this[int index] { get; }this[uint]
CssTransformValue.csGets 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
| Name | Description |
|---|---|
| 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.csReturns 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)
CssTransformComponent IReadOnlyList<CssTransformComponent>.get_Item(int index)No documentation is available.
System.Collections.IEnumerable.GetEnumerator()
CssTransformValue.csToMatrix()
CssTransformValue.csReturns the product of the matrices of the components (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformvalue-tomatrix).
public DomMatrix ToMatrix()