RuleBasedLabeling Class
Contents
[
Hide
]Summary: Applies a labeling to feature according to user-defined rules.
Module: aspose.gis.rendering.labelings
Full Name: aspose.gis.rendering.labelings.RuleBasedLabeling
Inheritance: Labeling
Aspose.PSD Version: 25.9.0
Constructors
| Name | Description |
|---|---|
| RuleBasedLabeling() | Initializes a new instance of the RuleBasedLabeling class |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| null [static] | NullLabeling | r | Gets an instance of NullLabeling. |
Methods
| Name | Description |
|---|---|
| add(rule) | Adds a rule. |
| add_else_rule(labeling) | Adds a labeling that will be applied to features that don’t match any filtering rule. |
Constructor: RuleBasedLabeling()
RuleBasedLabeling()
Initializes a new instance of the RuleBasedLabeling class
Method: add(rule)
add(rule)
Adds a rule.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rule | LabelingRule | Rule to add. |
Method: add_else_rule(labeling)
add_else_rule(labeling)
Adds a labeling that will be applied to features that don’t match any filtering rule.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| labeling | Labeling | A labeling. |