Class LabelingRule

LabelingRule class

A user-defined rule for RuleBasedLabeling.

public class LabelingRule

Properties

NameDescription
Filter { get; }Determines if “filter-rule” should apply labeling to the feature. If returns true labeling is used; otherwise, feature is skipped.
IsElseRule { get; }Gets a value indicating whether this rule is “else-rule”.
IsFilterRule { get; }Gets a value indicating whether this rule is “filter-rule”.
Labeling { get; }Labeling to apply to the feature.

Methods

NameDescription
static CreateElseRule(Labeling)Creates new rule that applies a labeling to feature whenever it doesn’t match any filter rule.
static CreateFilterRule(Func<Feature, bool>, Labeling)Creates new rule that applies a labeling to feature whenever it passes filter.

See Also