Table of Contents

Class FilterEnum<TEnum>

Namespace
ATAS.Indicators
Assembly
ATAS.Indicators.dll

Represents a filter whose value is a member of the enumeration TEnum.

public class FilterEnum<TEnum> : Filter<TEnum, FilterEnum<TEnum>>, IFilterValue, IFilterEnum, IFilter where TEnum : struct, Enum

Type Parameters

TEnum

The enumeration type of the filter value.

Inheritance
object
Filter<TEnum, FilterEnum<TEnum>>
FilterEnum<TEnum>
Implements
Inherited Members
Extension Methods

Constructors

FilterEnum()

Initializes a new instance of the FilterEnum<TEnum> class with default parameters.

public FilterEnum()

FilterEnum(bool, bool)

Initializes a new instance of the FilterEnum<TEnum> class with the specified parameters.

public FilterEnum(bool enabledVisible, bool asScalar = false)

Parameters

enabledVisible bool

Specifies whether the "Enabled" property is visible to users.

asScalar bool

Specifies whether the filter operates in scalar mode.

Properties

EnumType

Gets the enumeration type of the filter value, TEnum.

public Type EnumType { get; }

Property Value

Type

Methods

GetStringValue()

Gets the display name of the current value: the name from its Display, LocalizedDisplayName or DisplayName attribute, or the enumeration member name if it has none.

Added in ATAS 8.0.15.

public override string GetStringValue()

Returns

string

The display name of Value.