- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
/**
* @private
* Storage for the isTruncated property.
*/
private var _isTruncated:Boolean = false;
/**
* A read-only property reporting whether the text has been truncated.
*
* <p>Truncating text means replacing excess text
* with a truncation indicator such as "...".
* The truncation indicator is locale-dependent;
* it is specified by the "truncationIndicator" resource
* in the "core" resource bundle.</p>
*
* <p>If <code>maxDisplayedLines</code> is 0, no truncation occurs.
* Instead, the text will simply be clipped
* if it doesn't fit within the component's bounds.</p>
*
* <p>If <code>maxDisplayedLines</code> is is a positive integer,
* the text will be truncated if necessary to reduce
* the number of lines to this integer.</p>
*
* <p>If <code>maxDisplayedLines</code> is -1, the text will be truncated
* to display as many lines as will completely fit within the height
* of the component.</p>
*
* <p>Truncation is only performed if the <code>lineBreak</code>
* style is <code>"toFit"</code>; the value of this property
* is ignored if <code>lineBreak</code> is <code>"explicit"</code>.</p>
*
* @default false
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
*/
public function get isTruncated():Boolean
{
// For some reason, the compiler needs an explicit cast to Boolean
// to avoid a warning even though at runtime "is Boolean" is true.
return Boolean(_isTruncated);
}
Во-первых, неправда.
Во-вторых, как бы это было печально, если бы было правдой.
qlqRjbp 25.08.2021 09:40 # 0