包 | flashx.textLayout.formats |
类 | public class ListMarkerFormat |
继承 | ListMarkerFormat TextLayoutFormat Object |
实现 | IListMarkerFormat |
语言版本: | ActionScript 3.0 |
运行时版本: | Flash Player 10, AIR 1.5 |
相关 API 元素
公共属性
属性 | 由以下参数定义 | ||
---|---|---|---|
afterContent : * 指定在标记后的字符串。 | ListMarkerFormat | ||
alignmentBaseline : *
指定主要基线对齐到的基线。 | TextLayoutFormat | ||
backgroundAlpha : *
背景的 Alpha(透明度)值(如果在层叠期间未定义,则使用默认值)。 | TextLayoutFormat | ||
backgroundColor : *
文本的背景颜色(如果在层叠期间未定义,则使用默认值)。 | TextLayoutFormat | ||
baselineShift : *
从 dominantBaseline 值偏移基线的数量。 | TextLayoutFormat | ||
beforeContent : * 指定在标记前的字符串。 | ListMarkerFormat | ||
blockProgression : *
指定线位置的垂直或水平行进。 | TextLayoutFormat | ||
breakOpportunity : *
控制在将连续文本断开为多行时允许行断开的位置。 | TextLayoutFormat | ||
cffHinting : *
用于此文本的 CFF 提示的类型。 | TextLayoutFormat | ||
clearFloats : *
控制文本在浮点周围的环绕方式。 | TextLayoutFormat | ||
color : *
文本的颜色。 | TextLayoutFormat | ||
columnCount : *
文本列数(如果在层叠期间未定义,则使用默认值)。 | TextLayoutFormat | ||
columnGap : *
指定要在列之间留出的装订线空间量(以像素为单位),如果在层叠期间未定义,则使用默认值。 | TextLayoutFormat | ||
columnWidth : *
列宽(以像素为单位)(如果在层叠期间未定义,则使用默认值)。 | TextLayoutFormat | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
content : *
控制标记的内容。 | ListMarkerFormat | ||
coreStyles : Object [只读] 返回此 TextLayoutFormat 的 coreStyles。 | TextLayoutFormat | ||
counterIncrement : *
控制增加计数器的值。 | ListMarkerFormat | ||
counterReset : *
控制重置计数器的值。 | ListMarkerFormat | ||
digitCase : *
用于此文本的数字大小写类型。 | TextLayoutFormat | ||
digitWidth : *
用于此文本的数字宽度类型。 | TextLayoutFormat | ||
direction : *
指定文本在文本块中的默认双向嵌入级别。 | TextLayoutFormat | ||
dominantBaseline : *
指定该元素的哪条基线紧贴到 alignmentBaseline 以确定元素在该行上的垂直位置。 | TextLayoutFormat | ||
firstBaselineOffset : *
指定容器中第一行的基线位置。 | TextLayoutFormat | ||
fontFamily : *
要使用的字体的名称或用逗号分隔的字体名称列表。 | TextLayoutFormat | ||
fontLookup : *
要使用的字体查找。 | TextLayoutFormat | ||
fontSize : *
文本的大小(以像素为单位)。 | TextLayoutFormat | ||
fontStyle : *
文本的样式。 | TextLayoutFormat | ||
fontWeight : *
文本的粗细。 | TextLayoutFormat | ||
justificationRule : *
用于将段落文本两端对齐的规则。 | TextLayoutFormat | ||
justificationStyle : *
段落两端对齐所用的样式。 | TextLayoutFormat | ||
kerning : *
字距调整可调整某些字符对之间的像素以提高可读性。 | TextLayoutFormat | ||
leadingModel : *
指定行距模型,它是行距基准和行距方向的组合。 | TextLayoutFormat | ||
ligatureLevel : *
控制可以在该文本中使用字体中定义的哪些连字。 | TextLayoutFormat | ||
lineBreak : *
控制容器内的换行(如果在层叠期间未定义,则使用默认值)。 | TextLayoutFormat | ||
lineHeight : *
文本的行距控制。 | TextLayoutFormat | ||
lineThrough : *
若为 true,则应用删除线(一条穿过文本中间的直线)。 | TextLayoutFormat | ||
linkActiveFormat : *
定义用于处于正常状态的链接的格式属性。 | TextLayoutFormat | ||
linkHoverFormat : *
定义当鼠标在链接边界内(悬停)时用于悬停状态链接的格式属性。 | TextLayoutFormat | ||
linkNormalFormat : *
定义用于处于正常状态的链接的格式属性。 | TextLayoutFormat | ||
listAutoPadding : *
指定当列表相应侧的内边距值为 auto 时,列表开始边缘的自动缩进。 | TextLayoutFormat | ||
listMarkerFormat : *
定义列表标记的格式属性。 | TextLayoutFormat | ||
listStylePosition : *
合法值为 ListStylePosition.INSIDE、ListStylePosition.OUTSIDE、FormatValue.INHERIT。默认值未定义,指示未设置。如果在层叠期间未定义,则此属性从一个祖代继承值。 | TextLayoutFormat | ||
listStyleType : *
合法值为 ListStyleType.UPPER_ALPHA、ListStyleType.LOWER_ALPHA、ListStyleType.UPPER_ROMAN、ListStyleType.LOWER_ROMAN、ListStyleType.NONE、ListStyleType.DISC、ListStyleType.CIRCLE、ListStyleType.SQUARE、ListStyleType.BOX、ListStyleType.CHECK、ListStyleType.DIAMOND、ListStyleType.HYPHEN、ListStyleType.ARABIC_INDIC、ListStyleType.BENGALI、ListStyleType.DECIMAL、ListStyleType.DECIMAL_LEADING_ZERO、ListStyleType.DEVANAGARI、ListStyleType.GUJARATI、ListStyleType.GURMUKHI、ListStyleType.KANNADA、ListStyleType.PERSIAN、ListStyleType.THAI、ListStyleType.URDU、ListStyleType.CJK_EARTHLY_BRANCH、ListStyleType.CJK_HEAVENLY_STEM、ListStyleType.HANGUL、ListStyleType.HANGUL_CONSTANT、ListStyleType.HIRAGANA、ListStyleType.HIRAGANA_IROHA、ListStyleType.KATAKANA、ListStyleType.KATAKANA_IROHA、ListStyleType.LOWER_ALPHA、ListStyleType.LOWER_GREEK、ListStyleType.LOWER_LATIN、ListStyleType.UPPER_ALPHA、ListStyleType.UPPER_GREEK、ListStyleType.UPPER_LATIN、FormatValue.INHERIT。默认值未定义,指示未设置。如果在层叠期间未定义,则此属性从一个祖代继承值。 | TextLayoutFormat | ||
locale : *
文本的区域设置。 | TextLayoutFormat | ||
paddingBottom : *
底部边界区(像素数)。 | TextLayoutFormat | ||
paddingLeft : *
左侧边界区(像素数)。 | TextLayoutFormat | ||
paddingRight : *
右侧边界区(像素数)。 | TextLayoutFormat | ||
paddingTop : *
顶部边界区(像素数)。 | TextLayoutFormat | ||
paragraphEndIndent : *
一个数字,指定段落结束边缘的缩进量(像素数)。 | TextLayoutFormat | ||
paragraphSpaceAfter : *
一个数字,指定在段落后留出的空白(像素数)。 | TextLayoutFormat | ||
paragraphSpaceBefore : *
一个数字,指定在段落前留出的空白(像素数)。 | TextLayoutFormat | ||
paragraphStartIndent : *
一个数字,指定段落开始边缘的缩进量(像素数)。 | TextLayoutFormat | ||
renderingMode : *
用于此文本的呈现模式。 | TextLayoutFormat | ||
styleName : *
为元素指定一个标识类,从而可以通过引用 styleName 来设置元素样式。 | TextLayoutFormat | ||
styles : Object [只读] 返回此 TextLayoutFormat 的样式。 | TextLayoutFormat | ||
suffix : *
控制在 ListItemElement 的生成文本中的后缀应用。 | ListMarkerFormat | ||
tabStops : *
指定与段落关联的制表位。 | TextLayoutFormat | ||
textAlign : *
段落中的行与容器的对齐方式。 | TextLayoutFormat | ||
textAlignLast : *
两端对齐文本中段落最后一行(或唯一的一行)与容器的对齐方式。 | TextLayoutFormat | ||
textAlpha : *
文本的 Alpha(透明度)值。 | TextLayoutFormat | ||
textDecoration : *
文本上的装饰。 | TextLayoutFormat | ||
textIndent : *
一个数字,指定段落第一行的缩进量(以像素为单位)。 | TextLayoutFormat | ||
textJustify : *
指定文本两端对齐的选项。 | TextLayoutFormat | ||
textRotation : *
确定要旋转此文本的度数。 | TextLayoutFormat | ||
trackingLeft : *
像素数(或字体大小的百分比,如 120%),指示应用于每个字符左侧的间隙数(手动字距调整)。 | TextLayoutFormat | ||
trackingRight : *
像素数(或字体大小的百分比,如 120%)表示要应用到每个字符右边的间距的量(手动字距调整)。 | TextLayoutFormat | ||
typographicCase : *
用于此文本的印刷大小写的类型。 | TextLayoutFormat | ||
userStyles : Object [只读] 返回此 TextLayoutFormat 的 userStyles。 | TextLayoutFormat | ||
verticalAlign : *
垂直对齐或两端对齐(如果在层叠期间未定义,则使用默认值)。 | TextLayoutFormat | ||
whiteSpaceCollapse : *
将文本导入到 TextFlow 中时压缩或保留空白。 | TextLayoutFormat | ||
wordSpacing : *
指定在两端对齐期间使用的单词之间的最佳间距、最小间距和最大间距(作为普通间距宽度的乘数)。 | TextLayoutFormat |
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
ListMarkerFormat(initialValues:IListMarkerFormat = null) 创建能保存列表标记所有属性的 ListMarkerFormat。 | ListMarkerFormat | ||
使用 incoming ITextLayoutFormat 实例中设置的属性值替换该 TextLayoutFormat 对象中的属性值。 | TextLayoutFormat | ||
将 incoming ITextLayoutFormat 实例中的属性值与该 TextLayoutFormat 对象的值串联。 | TextLayoutFormat | ||
将 incoming ITextLayoutFormat 实例中的属性值与该 TextLayoutFormat 对象的值串联。 | TextLayoutFormat | ||
将 TextLayoutFormat 设置从 values ITextLayoutFormat 实例复制到该 TextLayoutFormat 对象中。 | TextLayoutFormat | ||
[静态]
创建一个新的 ListMarkerFormat 对象。 | ListMarkerFormat | ||
[静态]
创建新 TextLayoutFormat 对象。 | TextLayoutFormat | ||
返回由指定样式名称的 styleProp 参数指定的样式的值。 | TextLayoutFormat | ||
表示对象是否已经定义了指定的属性。 | Object | ||
isEqual(p1:flashx.textLayout.formats:ITextLayoutFormat, p2:flashx.textLayout.formats:ITextLayoutFormat):Boolean [静态]
将 ITextLayoutFormat 实例 p1 中的属性与 ITextLayoutFormat 实例 p2 的属性相比较,如果所有属性匹配,则返回 true。 | TextLayoutFormat | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
将该 TextLayoutFormat 对象中的属性设置为 undefined(如果这些属性与 incoming ITextLayoutFormat 实例中的属性不匹配)。 | TextLayoutFormat | ||
将该 TextLayoutFormat 对象中的属性设置为 undefined(如果这些属性与 incoming ITextLayoutFormat 实例中的属性匹配)。 | TextLayoutFormat | ||
设置循环操作动态属性的可用性。 | Object | ||
将 styleProp 参数指定的样式设置为 newValue 参数指定的值。 | TextLayoutFormat | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object |
属性详细信息
afterContent | 属性 |
beforeContent | 属性 |
content | 属性 |
content:*
语言版本: | ActionScript 3.0 |
运行时版本: | Flash Player 10, AIR 1.5 |
控制标记的内容。
该字符串的合法值为:
none
- 无标记。counter(ordered)
- 显示标记。counter(ordered,ListStyleType)
- 显示标记但将 listStyleType 更改为指定的值。counters(ordered)
- 从顶级父 ListElement 开始,在每个指定了 listStyleType(由后缀分开)的计数器中创建已排序计数器的值字符串。这用于大纲数字(如 I.1.、I.2. 等)。counters(ordered,"<string>")
- 除由 <string> 代替每个已排序计数器的后缀外,与上一个值相似。counters(ordered,"<string>",ListStyleType)
- 除使用指定的值代替每个计数器的listStyleType
外,与上一个值相似。
如果未定义,则此属性的默认值为“counter(ordered)”
。
实现
public function get content():*
public function set content(value:any):void
引发
RangeError — 当设置的值不在此属性的范围内时
|
counterIncrement | 属性 |
counterIncrement:*
语言版本: | ActionScript 3.0 |
运行时版本: | Flash Player 10, AIR 1.5 |
控制增加计数器的值。
该字符串的合法值为:
none
- 无增量。ordered
- 计数器的增量值为 1。ordered integer
- 计数器增量值为integer
。
如果未定义,则此属性的默认值为“ordered 1”
。
注意:counterIncrement
属性会在 counterReset
属性之前应用。
实现
public function get counterIncrement():*
public function set counterIncrement(value:any):void
引发
RangeError — 当设置的值不在此属性的范围内时
|
counterReset | 属性 |
counterReset:*
语言版本: | ActionScript 3.0 |
运行时版本: | Flash Player 10, AIR 1.5 |
控制重置计数器的值。
此属性的合法值为:
none
- 无重置。ordered
- 将计数器重置为零。ordered integer
- 将计数器重置为integer
。
如果未定义
,则此属性的默认值为“none”。
注意:counterReset
属性会在 counterIncrement
属性前应用。
实现
public function get counterReset():*
public function set counterReset(value:any):void
引发
RangeError — 当设置的值不在此属性的范围内时
|
suffix | 属性 |
suffix:*
语言版本: | ActionScript 3.0 |
运行时版本: | Flash Player 10, AIR 1.5 |
控制在 ListItemElement 的生成文本中的后缀应用。
合法值包括:
flashx.textLayout.formats.Suffix.NONE
- 无后缀。flashx.textLayout.formats.Suffix.AUTO
- 添加后缀时遵循 CSS 规则。
默认值为 Suffix.AUTO
。
实现
public function get suffix():*
public function set suffix(value:any):void
引发
RangeError — 当设置的值不在此属性的范围内时
|
相关 API 元素
构造函数详细信息
ListMarkerFormat | () | 构造函数 |
public function ListMarkerFormat(initialValues:IListMarkerFormat = null)
语言版本: | ActionScript 3.0 |
运行时版本: | Flash Player 10, AIR 1.5 |
创建能保存列表标记所有属性的 ListMarkerFormat。
参数initialValues:IListMarkerFormat (default = null ) — 从其复制初始值的可选实例。
|
方法详细信息
createListMarkerFormat | () | 方法 |
public static function createListMarkerFormat(initialValues:Object):ListMarkerFormat
语言版本: | ActionScript 3.0 |
运行时版本: | Flash Player 10, AIR 1.5 |
创建一个新的 ListMarkerFormat 对象。所有设置都是空的,或通过提供的 initialValues
对象进行初始化(可选)。
参数
initialValues:Object — 从其复制初始值的可选实例。如果对象类型为 IListMarkerFormat 或 ITextLayoutFormat,则复制这些值。否则,initialValues 参数会看作 Dictionary 或 Object,并将其迭代。
|
ListMarkerFormat — 新的 ListMarkerFormat 对象。
|
相关 API 元素
Tue Jun 12 2018, 11:04 AM Z