CssTransformComponent Class

A <transform-function> (https://drafts.css-houdini.org/css-typed-om-1/#csstransformcomponent).

public abstract class CssTransformComponent

Properties

NameDescription
Is2DWhether 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; }

Methods

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

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

public DomMatrix ToMatrix()

ToString()

The serialization of the component (https://drafts.css-houdini.org/css-typed-om-1/#transformvalue-serialization).

public abstract override string ToString()

Returns

string