Click or drag to resize
VisibilityConditionAttribute Class
Denotes that visibility of the decorated property in a form depends either on a value of another property or on a custom visibility condition. The other property value is utilized during evaluation of the given visibility condition to indicate whether the decorated property's form component should be visible in a form. Either predefined visibility condition via ComparisonTypeEnum or a custom visibility condition can be used. When utilizing the dependee property value, the custom visibility condition type must inherit from AnotherPropertyVisibilityConditionTValue to ensure correct functionality, otherwise VisibilityCondition can be used.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Kentico.Forms.Web.MvcVisibilityConditionAttribute

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public sealed class VisibilityConditionAttribute : Attribute

The VisibilityConditionAttribute type exposes the following members.

Constructors
  NameDescription
Public methodVisibilityConditionAttribute(Type, String)
Initializes a new instance of the VisibilityConditionAttribute class.
Public methodVisibilityConditionAttribute(String, ComparisonTypeEnum, Object)
Initializes a new instance of the VisibilityConditionAttribute class.
Public methodVisibilityConditionAttribute(String, Type, String)
Initializes a new instance of the VisibilityConditionAttribute class.
Top
Properties
  NameDescription
Public propertyStringComparison
Determines string values comparison aspects.
Top
See Also