Class RuleBasedLabeling

RuleBasedLabeling class

Applies a labeling to feature according to user-defined rules.

public class RuleBasedLabeling : Labeling, IReadOnlyList<LabelingRule>

Constructors

NameDescription
RuleBasedLabeling()The default constructor.

Properties

NameDescription
Count { get; }Gets the number of rules.
Item { get; }Gets the rule at the specified index .

Methods

NameDescription
Add(LabelingRule)Adds a rule.
Add(Func<Feature, bool>, Labeling)Adds new LabelingRule.
AddElseRule(Labeling)Adds a labeling that will be applied to features that don’t match any filtering rule.
GetEnumerator()Returns an enumerator that iterates through rules.

See Also