מציין את העדיפות של התווית במקרה שהיא חופפת לתווית אחרת. התווית בעדיפות נמוכה יותר אינה מעובדת. ברירת המחדל היא 1000.
דוגמאות
דוגמאות תיוג נקודות
כברירת מחדל, SimpleLabeling מצייר טקסט על נקודות:
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
כדי לשלוט במיקום הטקסט ביחס לתכונת הנקודה, יש להגדיר את המאפיין 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
לתרחישים מתקדמים יותר, ייתכן שתרצה לבחור תיוגים שונים לתכונות. הנה איך לעשות את זה:
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
כברירת מחדל, SimpleLabeling מצייר תווית ליד מרכז הקו:
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
כדי לסובב תוויות כך שהן מקבילות לקווים, ניתן להשתמש ב-LineLabelPlacement עם 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
אם אתה רוצה שהטקסטים יעקבו אחר הקו במדויק, ניתן להשתמש ב-LineLabelPlacement עם 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
אם אינך רוצה שהטקסטים יחפפו עם הקו, השתמש ב-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
לתרחישים מתקדמים יותר, ייתכן שתרצה להתאים את סגנון התוויות באופן דינמי בהתבסס על ערכי המאפיינים של התכונה. הנה איך לעשות את זה:
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