Określa priorytet etykiety w przypadku nakładania się z inną etykietą. Etykieta o niższym priorytecie nie jest renderowana. Domyślna wartość to 1000.
Przykłady
Przykłady Oznaczania Punktów
Domyślnie SimpleLabeling rysuje tekst nad punktami:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aby kontrolować pozycję tekstu względem cechy punktowej, należy ustawić właściwość placement:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
W bardziej zaawansowanych scenariuszach możesz chcieć wybrać różne etykietowanie dla cech. Oto jak to zrobić:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Domyślnie SimpleLabeling rysuje etykietę w pobliżu środka linii:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aby obrócić etykiety, aby były równoległe do linii, można użyć LineLabelPlacement z LineLabelAlignment.Parallel:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jeśli chcesz, aby teksty precyzyjnie podążały za linią, można użyć LineLabelPlacement z LineLabelAlignment.Curved:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jeśli nie chcesz, aby teksty nakładały się na linię, użyj LineLabelPlacement.Offset:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
W bardziej zaawansowanych scenariuszach możesz chcieć dostosować styl etykiet dynamicznie w oparciu o wartości atrybutów cech. Oto jak to zrobić:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters