Utils.ToAbsVector4(Thickness) Method

Definition

Converts the Thickness object to Vector4. If the Thickness object contains negative components they will be converted to positive values. If the Thickness object's component have values NaN, PositiveInfinity or NegativeInfinity, then Vector4.Zero will be returned.

C#
public static System.Numerics.Vector4 ToAbsVector4 (this Windows.UI.Xaml.Thickness thickness);

Parameters

thickness
Thickness

Thickness object

Returns

Vector2

Applies to

Produit Versions
Windows Community Toolkit 7.0.0, 7.1.0