RSS

Вторник, 05.11.2024, 14:32
Главная » WoW API » API Виджеты » Строка, использующая шрифт »

width = FontString:GetStringWidth()

[ править ]
Returns the width of the text displayed in the font string.
[клоны]
Returns the width of the text displayed in the font string. This value is based on the text currently displayed; e.g. a short text label results in a smaller width than a longer block of text. Very long blocks of text that don't fit the font string's dimensions all result in similar widths, because this method measures the width of the text displayed, which is truncated with an ellipsis ("…").


Signature:
Code
width = FontString:GetStringWidth()

Returns:
  • width - Width of the text currently displayed in the font string (in pixels) (number)

Также смотрите: Строка, использующая шрифт
Ссылки: http://wowprogramming.com/docs/widgets/FontString/GetStringWidth