Class CSSTransformValue
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The CSSTransformValue interface of the CSS Typed Object Model API represents transform-list values as used by the CSS 'transform' property.
[Value("CSSTransformValue")]
public class CSSTransformValue : CSSStyleValue
- Inheritance
-
CSSTransformValue
- Inherited Members
Remarks
Constructors
CSSTransformValue()
public CSSTransformValue()
CSSTransformValue(List<CSSTransformComponent>)
The CSSTransformValue() constructor
creates a new CSSTransformValue object which represents a list of
individual transform objects.
public CSSTransformValue(List<CSSTransformComponent> transforms)
Parameters
transformsList<CSSTransformComponent>
Remarks
Properties
Is2D
The read-only is2D property of the
CSSTransformValue interface returns whether the transform is 2D or 3D.
[Value("is2D")]
public bool Is2D { get; }
Property Value
- bool
A boolean. True indicates that the transform is a 2D transform, false that it is a 3D
transform.
Remarks
In the case of the CSSTransformValue this property returns
true unless any of the individual functions return false for Is2D, in which
case it returns false.
this[int]
public CSSTransformComponent this[int i] { get; set; }
Parameters
iint
Property Value
Length
The read-only length property of the
CSSTransformValue interface returns the number of transform components in
the list.
[Value("length")]
public ulong Length { get; }
Property Value
- ulong
An integer representing the number of transform components in the list.
Remarks
Methods
ToMatrix()
The toMatrix() method of the
CSSTransformValue interface returns a 'DOMMatrix' object.
[Value("toMatrix")]
public DOMMatrix ToMatrix()
Returns
- DOMMatrix
A 'DOMMatrix' object.