FormattedText

FormattedText class

فئة تمثل نصًا منسقًا. يحتوي على معلومات حول النص ولونه وحجمه ونمطه.

public sealed class FormattedText

المنشئون

اسموصف
FormattedText()تهيئة النص المنسق .
FormattedText(string)تهيئة النص المنسق .
FormattedText(string, Color, Color)تهيئة النص المنسق .
FormattedText(string, Color, FontStyle, EncodingType, bool, float)تهيئة النص المنسق .
FormattedText(string, Color, string, EncodingType, bool, float)تهيئة النص المنسق .
FormattedText(string, FontColor, FontStyle, EncodingType, bool, float)تهيئة النص المنسق .
FormattedText(string, Color, Color, FontStyle, EncodingType, bool, float)تهيئة النص المنسق .
FormattedText(string, Color, Color, string, EncodingType, bool, float)تهيئة النص المنسق .
FormattedText(string, Color, FontStyle, EncodingType, bool, float, float)تهيئة النص المنسق .
FormattedText(string, FontColor, FontColor, FontStyle, EncodingType, bool, float)تهيئة النص المنسق .
FormattedText(string, FontColor, FontStyle, EncodingType, bool, float, float)تهيئة النص المنسق .
FormattedText(string, Color, Color, FontStyle, EncodingType, bool, float, float)تهيئة النص المنسق .
FormattedText(string, FontColor, FontColor, FontStyle, EncodingType, bool, float, float)تهيئة النص المنسق .

الخصائص

اسموصف
TextHeight { get; }الحصول على ارتفاع النص.
TextWidth { get; }الحصول على عرض النص.

طُرق

اسموصف
AddNewLineText(string)يضيف سطرًا جديدًا إلى كائن FormattedText ويعين newLineText إلى نص السطر التالي.
AddNewLineText(string, float)يضيف سطرًا جديدًا إلى كائن FormattedText ويعين newLineText إلى نص السطر التالي.

أنظر أيضا