CssTransformComponent Class
A <transform-function> (https://drafts.css-houdini.org/css-typed-om-1/#csstransformcomponent).
public abstract class CssTransformComponentProperties
| Name | Description |
|---|---|
| Is2D | Whether the component is a 2D transform (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformcomponent-is2d). Setting it does nothing for the skews (always 2D) and the perspective (always 3D). |
Whether the component is a 2D transform (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformcomponent-is2d). Setting it does nothing for the skews (always 2D) and the perspective (always 3D).
public bool Is2D { get; set; }Property value
See also
Methods
| Name | Description |
|---|---|
| ToMatrix() | Returns the equivalent 4x4 matrix of the component (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformcomponent-tomatrix). The lengths must be compatible with px (a relative length or a percentage throws a TypeError). |
| ToString() | The serialization of the component (https://drafts.css-houdini.org/css-typed-om-1/#transformvalue-serialization). |
ToMatrix()
CssTransformValue.csReturns the equivalent 4x4 matrix of the component (https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformcomponent-tomatrix). The lengths must be compatible with px (a relative length or a percentage throws a TypeError).
public DomMatrix ToMatrix()