Click or drag to resize
NumericComparisonTypeSelectorComponent Class
Selector component for numeric comparison.
Inheritance Hierarchy
SystemObject
  Kentico.Forms.Web.MvcFormComponent
    Kentico.Forms.Web.MvcFormComponentComparisonTypeSelectorPropertiesNumericFieldComparisonTypes, NumericFieldComparisonTypes
      Kentico.Forms.Web.MvcComparisonTypeSelectorComponentNumericFieldComparisonTypes
        Kentico.Forms.Web.MvcNumericComparisonTypeSelectorComponent

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public class NumericComparisonTypeSelectorComponent : ComparisonTypeSelectorComponent<NumericFieldComparisonTypes>

The NumericComparisonTypeSelectorComponent type exposes the following members.

Constructors
  NameDescription
Public methodNumericComparisonTypeSelectorComponent
Top
Fields
  NameDescription
Public fieldStatic memberIDENTIFIER
Represents the NumericComparisonTypeSelectorComponent identifier.
Top
Properties
  NameDescription
Public propertyBaseProperties
Gets the form component's properties as its base type.
(Inherited from FormComponentTProperties, TValue.)
Public propertyComparisonType
Represents the selector value in the resulting HTML.
(Inherited from ComparisonTypeSelectorComponentTComparisonEnum.)
Public propertyComparisonTypes
Gets enumeration of available comparison types to populate the selector.
(Inherited from ComparisonTypeSelectorComponentTComparisonEnum.)
Public propertyCustomAutopostHandling
If true, prevents built-in visibility condition handling for this component.
(Inherited from FormComponent.)
Public propertyDefinition
Gets or sets the definition under which the form component is registered in the system.
(Inherited from FormComponent.)
Public propertyHasDependingFields
Gets or sets a value indicating whether there are another form components whose visibility condition depends on this component's value.
(Inherited from FormComponent.)
Public propertyLabelForPropertyName
Gets name of the ComparisonType property.
(Inherited from ComparisonTypeSelectorComponentTComparisonEnum.)
Public propertyName
Gets or sets the name of the corresponding form field. The name is used as a prefix when naming the HTML input.
(Inherited from FormComponent.)
Public propertyProperties
Gets the form component's properties.
(Inherited from FormComponentTProperties, TValue.)
Public propertyPropertiesType
Gets the properties type of the form component.
(Inherited from FormComponent.)
Public propertyShowPartialValidationMessages
Also shows validation errors of partial values of the component. If false, each individual component should contain validation message in its partial view.
(Inherited from FormComponent.)
Top
Methods
  NameDescription
Public methodBindContext

Binds contextual information to the form component. The actual type of context depends on where the component is being used.

The component can throw an exception if being used in a context for which it is not designed. The base implementation provided by this class must be called prior to throwing an exception, however.

(Inherited from FormComponent.)
Public methodGetDisplayName
Returns non-localized string representing component name. Component Name is returned in case of empty Label.
(Inherited from FormComponent.)
Public methodGetModelPropertyCustomAttributesT
Gets a collection of custom attributes applied to the model's property this form component represents.
(Inherited from FormComponent.)
Public methodGetObjectValue
Gets the value of the form component. The GetValue method can be used directly to obtain the typed value.
(Inherited from FormComponentTProperties, TValue.)
Protected methodGetResourceStringNamePrefix
Gets resource string name prefix for enum named enumName.
(Inherited from ComparisonTypeSelectorComponentTComparisonEnum.)
Protected methodGetSelectListItems
Gets enumeration of select list items whose value is the underlying type's value and text is a localized enum value. Item whose value corresponds to ComparisonType has its Selected flag set to true.
(Inherited from ComparisonTypeSelectorComponentTComparisonEnum.)
Public methodGetValue
Gets value representing the currently selected enum value.
(Inherited from ComparisonTypeSelectorComponentTComparisonEnum.)
Public methodLoadProperties
Loads properties of the form component. The actual properties type must match the PropertiesType.
(Inherited from FormComponentTProperties, TValue.)
Public methodModifyMetadata
Modifies modelMetadata according to the current object.
(Inherited from FormComponent.)
Public methodSetObjectValue
Sets the value of the form component. The value must be of proper type or an exception is thrown. The SetValue(TValue) method can be used directly to set the typed default value.
(Inherited from FormComponentTProperties, TValue.)
Public methodSetValue
Sets the currently selected enum value.
(Inherited from ComparisonTypeSelectorComponentTComparisonEnum.)
Public methodValidate
Determines whether the specified object is valid. Only invoked if validation by validation attributes passes for all fields.
(Inherited from FormComponent.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetBizFormComponentContext
Gets BizFormComponentContext of a form component, if such a context was bound to the component.
(Defined by FormComponentExtensions.)
Top
See Also