Class Rule

Rule class

A user-defined rule for RuleBasedSymbolizer.

public class Rule

Properties

NameDescription
Filter { get; }Determines if “filter-rule” should apply symbolizer to the feature. If returns true symbolizer 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”.
Symbolizer { get; }Symbolizer to apply to the feature.

Methods

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

See Also