Table of Contents

Enum ComparisonTypeEnum

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Contains the predefined comparison types which are supposed to be utilized for specifying visibility condition of a form component via the VisibilityConditionAttribute.

[Obsolete("This API is only available for legacy Form Builder components that provide backward compatibility when transitioning from older versions. The API will be removed when support for the Form Builder compatibility mode is dropped.")]
public enum ComparisonTypeEnum
Extension Methods

Fields

IsEmpty = 1

Examines the related property value whether it is empty or null. Only works with properties of types either of string or System.Collections.Generic.IEnumerable<T>.

IsEqualTo = 4

Examines the related property value whether it is equal to a value of the decorated property. The System.Collections.Generic.EqualityComparer<T>.Default is used to compare values.

IsFalse = 7

Examines the related property value whether it is false. Only works with a property of bool type.

IsNotEmpty = 3

Examines the related property value whether it is not empty or null. Only works with properties of types either of string or System.Collections.Generic.IEnumerable<T>.

IsNotEqualTo = 5

Examines the related property value whether it is not equal to a value of the decorated property. The System.Collections.Generic.EqualityComparer<T>.Default is used to compare values.

IsNotNull = 2

Examines the related property value whether it is not null. Only works with a property of a reference type.

IsNull = 0

Examines the related property value whether it is null. Only works with a property of a reference type.

IsTrue = 6

Examines the related property value whether it is true. Only works with a property of bool type.