اولویت برچسب را در صورت همپوشانی با برچسب دیگر مشخص میکند. برچسبی که اولویت کمتری دارد رندر نمیشود. مقدار پیشفرض 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