Rule.CreateFilterRule

Rule.CreateFilterRule method

Creates new rule that applies a symbolizer to feature whenever it passes filter.

public static Rule CreateFilterRule(Func<Feature, bool> filter, VectorSymbolizer symbolizer)
ParameterTypeDescription
filterFunc`2Determines when symbolizer should be used.
symbolizerVectorSymbolizerSymbolizer to apply.

Return Value

New Rule object.

Exceptions

exceptioncondition
ArgumentNullExceptionFilter is null.

See Also