Class ValidationHelper
Provides helper methods for validation of property editor values based on data type configuration.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PropertyEditors.Validation
Assembly: Umbraco.Core.dll
Syntax
public static class ValidationHelper
Methods
View SourceIsValueValidForStep(Decimal, Decimal, Decimal)
Checks if a provided value is valid based on the configured step and minimum values.
Declaration
public static bool IsValueValidForStep(decimal value, decimal min, decimal step)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The provided value. |
System. |
min | The configured minimum value. |
System. |
step | The configured step value. |
Returns
Type | Description |
---|---|
System. |
True if the value is valid otherwise false. |