Table of Contents

Class IsNotEqualToVisibilityCondition

Namespace
Kentico.Xperience.Admin.Base.Forms
Assembly
Kentico.Xperience.Admin.Base.dll

Represents a visibility condition which displays or hides the declaring property by whether the dependent property's value is not equal to a value given by CompareToValue. If Comparison is set, values are compared as strings using that comparator, otherwise System.StringComparison.Ordinal is used. If values to compare are arrays then their elements are compared regardless the order. Otherwise values are compared using object.Equals(object, object) method.

[VisibilityConditionAttribute(typeof(VisibleIfNotEqualToAttribute))]
public class IsNotEqualToVisibilityCondition : IsEqualToVisibilityCondition, IVisibilityCondition
Inheritance
object
IsNotEqualToVisibilityCondition
Implements
Inherited Members
Extension Methods

Methods

Evaluate(IFormFieldValueProvider)

Evaluates the visibility condition and returns the result.

public override bool Evaluate(IFormFieldValueProvider formFieldValueProvider)

Parameters

formFieldValueProvider IFormFieldValueProvider

Provider of values of other form fields for contextual evaluation. Only fields logically preceding the current field are available.

Returns

bool

Returns true is the visibility condition is met (i.e. the associated component is to be displayed), otherwise returns false.