Utils.

IsValid(Thickness, bool, bool, bool, bool) Method

Summary

Verifies if this Thickness contains only valid values The set of validity checks is passed as parameters.
Namespace
MahApps.Metro.Controls
Containing Type
Utils

Syntax

public static bool IsValid(this Thickness thick, bool allowNegative, bool allowNaN, bool allowPositiveInfinity, bool allowNegativeInfinity)

Parameters

Name Type Description
thick Thickness Thickness value
allowNegative bool allows negative values
allowNaN bool allows Double.NaN
allowPositiveInfinity bool allows Double.PositiveInfinity
allowNegativeInfinity bool allows Double.NegativeInfinity

Return Value

Type Description
bool Whether or not the thickness complies to the range specified