Class FilterRangeBase<TValue, TFilter>
- Namespace
- ATAS.Indicators
- Assembly
- ATAS.Indicators.dll
Represents an abstract base class for filters that represent a range of values with custom JSON serialization/deserialization.
public abstract class FilterRangeBase<TValue, TFilter> : Filter<FilterRangeValue<TValue>, TFilter>, IFilterValue, IFilter where TFilter : FilterBase, IFilterValue
Type Parameters
TValueThe type of values in the range.
TFilterThe derived filter class that implements the IFilterValue interface.
- Inheritance
-
objectFilter<FilterRangeValue<TValue>, TFilter>FilterRangeBase<TValue, TFilter>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
FilterRangeBase()
Initializes a new instance of the FilterRangeBase<TValue, TFilter> class with default settings.
protected FilterRangeBase()
FilterRangeBase(bool, bool)
Initializes a new instance of the FilterRangeBase<TValue, TFilter> class with the specified settings.
protected FilterRangeBase(bool enabledVisible, bool asScale = false)
Parameters
enabledVisibleboolA value indicating whether the filter's Enabled property is visible.
asScaleboolA value indicating whether the filter represents a scalar value.
Methods
ValueOnChanging(FilterRangeValue<TValue>?, FilterRangeValue<TValue>?)
Invoked when the value of the filter is changing.
protected override FilterRangeValue<TValue> ValueOnChanging(FilterRangeValue<TValue>? oldValue, FilterRangeValue<TValue>? newValue)
Parameters
oldValueFilterRangeValue<TValue>The old value of the filter.
newValueFilterRangeValue<TValue>The new value of the filter.
Returns
- FilterRangeValue<TValue>
The new value to be set for the filter.