| 包 | flashx.textLayout.factory |
| 类 | public final class TruncationOptions |
| 继承 | TruncationOptions Object |
| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
公共属性
| 属性 | 由以下参数定义 | ||
|---|---|---|---|
![]() | constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | |
| lineCountLimit : int
要创建的最大行数。 | TruncationOptions | ||
| truncationIndicator : String
一个字符串,用于指示由于行数限制内容无法完全显示。 | TruncationOptions | ||
| truncationIndicatorFormat : flashx.textLayout.formats:ITextLayoutFormat
应用于截断指示器字符串的样式。 | TruncationOptions | ||
公共方法
| 方法 | 由以下参数定义 | ||
|---|---|---|---|
TruncationOptions(truncationIndicator:String, lineCountLimit:int, truncationIndicatorFormat:flashx.textLayout.formats:ITextLayoutFormat = null)
创建 TruncationOptions 对象。 | TruncationOptions | ||
![]() |
表示对象是否已经定义了指定的属性。 | Object | |
![]() |
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
表示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() |
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | |
![]() |
返回指定对象的字符串表示形式。 | Object | |
![]() |
返回指定对象的原始值。 | Object | |
公共常量
| 常量 | 由以下参数定义 | ||
|---|---|---|---|
| HORIZONTAL_ELLIPSIS : String = "…" [静态]
定义 truncationIndicator 属性值 \u2026,它表示一个水平省略号。 | TruncationOptions | ||
| NO_LINE_COUNT_LIMIT : int = -1 [静态]
定义 lineCountLimit 属性值 -1,它表示没有限制。 | TruncationOptions | ||
属性详细信息
lineCountLimit | 属性 |
truncationIndicator | 属性 |
truncationIndicatorFormat | 属性 |
truncationIndicatorFormat:flashx.textLayout.formats:ITextLayoutFormat| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
应用于截断指示器字符串的样式。
实现
public function get truncationIndicatorFormat():flashx.textLayout.formats:ITextLayoutFormat public function set truncationIndicatorFormat(value:flashx.textLayout.formats:ITextLayoutFormat):void构造函数详细信息
TruncationOptions | () | 构造函数 |
public function TruncationOptions(truncationIndicator:String, lineCountLimit:int, truncationIndicatorFormat:flashx.textLayout.formats:ITextLayoutFormat = null)| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
创建 TruncationOptions 对象。
参数truncationIndicator:String (default = NaN) — 用于指示文本已被截断的字符串。该字符串显示在合成文本的末尾。默认值为水平省略号 (U+2026)。
| |
lineCountLimit:int (default = NaN) — 以允许的最大行数形式指定截断条件。默认值 NO_LINE_COUNT_LIMIT 表示没有行数限制。
| |
truncationIndicatorFormat:flashx.textLayout.formats:ITextLayoutFormat (default = null) — 为截断指示符指定格式。null 格式(默认值)指定截断指示符采用紧邻截断点前的内容的格式。使用简单字符串作为输入的 TextLineFactory 方法也会忽略此参数,并实现默认行为。
|
常量详细信息
HORIZONTAL_ELLIPSIS | 常量 |
public static const HORIZONTAL_ELLIPSIS:String = "…"| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
定义 truncationIndicator 属性值 \u2026,它表示一个水平省略号。
相关 API 元素
NO_LINE_COUNT_LIMIT | 常量 |
public static const NO_LINE_COUNT_LIMIT:int = -1| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
定义 lineCountLimit 属性值 -1,它表示没有限制。
相关 API 元素
Tue Jun 12 2018, 11:04 AM Z
隐藏继承的公共属性
显示继承的公共属性