CssScale Class

scale(), scaleX(), scaleY(), scaleZ() and scale3d() (https://drafts.css-houdini.org/css-typed-om-1/#cssscale).

public sealed class CssScale : CssTransformComponent
Inheritance
CssTransformComponent CssScale

Constructors

NameDescription
CssScale(CssNumberish, CssNumberish, CssNumberish?)https://drafts.css-houdini.org/css-typed-om-1/#dom-cssscale-cssscale

CssScale(CssNumberish, CssNumberish, CssNumberish?)

CssTransformValue.cs

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

public CssScale(CssNumberish x, CssNumberish y, CssNumberish? z = null)

Properties

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

Gets or sets the scale factor along the X axis.

public CssNumberish X { get; set; }

Gets or sets the scale factor along the Y axis.

public CssNumberish Y { get; set; }

Gets or sets the scale factor along the Z axis.

public CssNumberish Z { get; set; }

Methods

NameDescription
ToString()https://drafts.css-houdini.org/css-typed-om-1/#serialize-a-cssscale: scale(x) when x and y are equal.

https://drafts.css-houdini.org/css-typed-om-1/#serialize-a-cssscale: scale(x) when x and y are equal.

public override string ToString()

Returns

string