Skip to main content

IRangeControlClient.ValidateRange(NormalizedRangeInfo) Method

Validates a range when it is changed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

void ValidateRange(
    NormalizedRangeInfo info
)

Parameters

Name Type Description
info DevExpress.XtraEditors.NormalizedRangeInfo

A NormalizedRangeInfo object that contains information on the current range.

Remarks

The ValidateRange method is called when range bounds are about to be changed. You need to check these bounds and correct them if necessary. The new bounds must be assigned back to the info.Range.Minimum and info.Range.Maximum properties.

The bounds specified by the info.Range property are normalized, i.e., the values are in the range [0, 1], where the values 0 and 1 correspond to the start and end of the range, respectively.

See Also