Class CSSTranslate
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The CSSTranslate interface of the CSS Typed Object Model API represents the translate() value of the individual {{CSSXRef('transform')}} property in CSS. It inherits properties and methods from its parent 'CSSTransformValue'.
[Value("CSSTranslate")]
public class CSSTranslate : CSSTransformComponent
- Inheritance
-
CSSTranslate
- Inherited Members
Remarks
Constructors
CSSTranslate()
public CSSTranslate()
CSSTranslate(CSSNumericValue, CSSNumericValue, CSSNumericValue)
The CSSTranslate() constructor creates a
new CSSTranslate object representing the translate() value of the
individual 'transform' property in CSS.
public CSSTranslate(CSSNumericValue x, CSSNumericValue y, CSSNumericValue z = null)
Parameters
Remarks
Properties
X
The x property of the
CSSTranslate interface gets and sets the abscissa or x-axis of the
translating vector.
[Value("x")]
public CSSNumericValue X { get; set; }
Property Value
Remarks
Y
The y property of the
CSSTranslate interface gets and sets the ordinate or y-axis of the
translating vector.
[Value("y")]
public CSSNumericValue Y { get; set; }
Property Value
Remarks
Z
The z property of the
CSSTranslate interface representing the z-component of the translating
vector. A positive value moves the element towards the viewer, and a negative value
farther away.
[Value("z")]
public CSSNumericValue Z { get; set; }
Property Value
Remarks
If this value is present then the transform is a 3D transform and the is2D
property will be set to false.