CssTranslate Class

translate(), translateX(), translateY(), translateZ() and translate3d() (https://drafts.css-houdini.org/css-typed-om-1/#csstranslate).

public sealed class CssTranslate : CssTransformComponent
Inheritance
CssTransformComponent CssTranslate

Constructors

NameDescription
CssTranslate(CssNumericValue, CssNumericValue, CssNumericValue?)https://drafts.css-houdini.org/css-typed-om-1/#dom-csstranslate-csstranslate

CssTranslate(CssNumericValue, CssNumericValue, CssNumericValue?)

CssTransformValue.cs

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

public CssTranslate(CssNumericValue x, CssNumericValue y, CssNumericValue? z = null)

Properties

NameDescription
XGets or sets the translation along the X axis.
YGets or sets the translation along the Y axis.
ZGets or sets the translation along the Z axis.

Gets or sets the translation along the X axis.

public CssNumericValue X { get; set; }

Gets or sets the translation along the Y axis.

public CssNumericValue Y { get; set; }

Gets or sets the translation along the Z axis.

public CssNumericValue Z { get; set; }

Methods

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

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

public override string ToString()

Returns

string