RuleBasedLabeling.Add
Add(Func<Feature, bool>, Labeling)
添加新的 LabelingRule。
public void Add(Func<Feature, bool> filter, Labeling labeling)
| 参数 | 类型 | 描述 |
|---|---|---|
| 过滤器 | Func`2 | 确定何时应将标签应用于特征。 |
| 标注 | 标注 | 当 filter 返回 true 时对特征应用的标签。 |
另见
- class Feature
- class Labeling
- class RuleBasedLabeling
- namespace Aspose.Gis.Rendering.Labelings
- assembly Aspose.GIS
Add(LabelingRule)
添加一条规则。
public void Add(LabelingRule rule)
| 参数 | 类型 | 描述 |
|---|---|---|
| 规则 | LabelingRule | 要添加的规则。 |
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 参数为 null。 |
另见
- class LabelingRule
- class RuleBasedLabeling
- namespace Aspose.Gis.Rendering.Labelings
- assembly Aspose.GIS