用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: AIR 30.0 和更早版本, Flash Player 30.0 和更早版本, Flash Lite 4
Flex 4.6 和更早版本, Flash Pro CS6 和更早版本
隐藏过滤条件
spark.components 

Grid  - AS3 Flex

x

顶级
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

语言元素

全局常量
全局函数
运算符
语句、关键字和指令
特殊类型

附录

新增内容
编译器错误
编译器警告
运行时错误
迁移到 ActionScript 3
支持的字符集
仅适用于 MXML 的标签
Motion XML 元素
Timed Text 标记
不推荐使用的元素的列表
AccessibilityImplementation 常量
如何使用 ActionScript 示例
法律声明
spark.components
public class Grid
继承Grid Inheritance Group Inheritance GroupBase Inheritance UIComponent Inheritance FlexSprite Inheritance Sprite Inheritance DisplayObjectContainer Inheritance InteractiveObject Inheritance DisplayObject Inheritance EventDispatcher Inheritance Object
实现 IDataGridElement

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

Grid 控件在可滚动表或“网格”中显示一列称为其数据提供程序的数据项(每行一个项)。由 GridColumn 对象定义的每个网格的列基于相应行的项显示值。网格的数据提供程序是可以更改的,说明可以添加、删除或更改其项。同样,列的列表也是可以更改的。

Grid 组件旨在用作 DataGrid 外观部件或其它自定义组合组件的元素。因此,它的外观不可以设置,它不包含滚动条且不提供默认的鼠标或键盘事件处理。

每个可见 Grid 单元格都由使用 itemRenderer 属性创建的 GridItemRenderer 实例显示。为每列指定一个项呈示器。显示前,每个项呈示器实例会使用相应行的数据提供程序项的值进行配置。根据需要创建项呈示器,然后使创建开销保持最低值、能够共用和重复使用。

Grid 控件根据 selectionMode 属性支持选定内容。可使用选择方法(如 setSelectedIndexselectionContainsIndex())以编程方式修改或查询所选行或单元格的索引集。

Grid 控件基于 selectionMode 属性以及对应行索引和列索引属性(如 hoverRowIndexcolumnRowIndex)显示悬停、插入标记和选定内容指示符。指示符可以是任何可视元素。实现 IGridVisualElement 的指示符可以根据在其中使用的行和列来对自身进行配置。

Grid 控件支持平滑滚动。其垂直和水平滚动位置定义网格的可视部件的像素原点,网格的布局仅根据需要显示尽可能多的单元格项呈示器来填充可用空间。

Grid 控件支持基于项呈示器的内容自动计算其高度的高度可变的行。此支持称为网格虚拟化,因为从(像素)滚动位置到行和列索引的映射通常基于有关网格单元格的首选大小的不完整信息。Grid 缓存已滚动到视图的计算的行高度并基于单个 typicalItem 估算其余值。

不支持 DataGrid 项呈示器中的转换。GridItemRenderer 类已禁用了其 transitions 属性,因此对此进行设置也无效。

MXML 语法expanded隐藏 MXML 语法

The <s:Grid> tag inherits all of the tag attributes of its superclass and adds the following tag attributes:

  <s:Grid 
    Properties
  />
  

默认 MXML 属性mxmlContent

相关 API 元素



公共属性
 属性由以下参数定义
 InheritedaccessibilityDescription : String
一个方便的存取器,用于访问此 UIComponent 的 accessibilityProperties 对象的 description 属性。
UIComponent
 InheritedaccessibilityEnabled : Boolean
一个方便的存取器,用于访问此 UIComponent 的 accessibilityProperties 对象的 silent 属性。
UIComponent
 InheritedaccessibilityImplementation : AccessibilityImplementation
InteractiveObject 实例的当前辅助功能实现 (AccessibilityImplementation)。
InteractiveObject
 InheritedaccessibilityName : String
一个方便的存取器,用于访问此 UIComponent 的 accessibilityProperties 对象的 name 属性。
UIComponent
 InheritedaccessibilityProperties : AccessibilityProperties
此显示对象的当前辅助功能选项。
DisplayObject
 InheritedaccessibilityShortcut : String
一个方便的存取器,用于访问此 UIComponent 的 accessibilityProperties 对象的 shortcut 属性。
UIComponent
 InheritedactiveEffects : Array
[只读] 组件上当前播放的效果列表,如 EffectInstance 实例的 Array。
UIComponent
 Inheritedalpha : Number
表示指定对象的 Alpha 透明度值。
DisplayObject
  anchorColumnIndex : int
下一个结合 Shift 键选择的锚点的列索引。
Grid
  anchorRowIndex : int
下一个结合 Shift 键选择的锚点的行索引。
Grid
 InheritedautoLayout : Boolean
如果为 true,则在更改子项的位置或大小时完成度量和布局。
GroupBase
 InheritedautomationDelegate : Object
处理自动化相关功能的委托对象。
UIComponent
 InheritedautomationEnabled : Boolean
[只读] 如果此组件启用了自动化,则为 true;否则为 false。
UIComponent
 InheritedautomationName : String
可用作此对象的标识符的名称。
UIComponent
 InheritedautomationOwner : DisplayObjectContainer
[只读] 用于自动化目的的此组件的所有者。
UIComponent
 InheritedautomationParent : DisplayObjectContainer
[只读] 用于自动化目的的此组件的父级。
UIComponent
 InheritedautomationTabularData : Object
[只读] IAutomationTabularData 接口的实现,可用于检索数据。
UIComponent
 InheritedautomationValue : Array
[只读] 此值通常对应于对象的经呈示的外观,当对象在应用中以可视方式显示时,此值使标识符与该对象相关联。
UIComponent
 InheritedautomationVisible : Boolean
[只读] 如果此组件对于自动化是可见的,则为 true;否则为 false。
UIComponent
 Inheritedbaseline : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。
UIComponent
 InheritedbaselinePosition : Number
[覆盖] [只读] 组件第一行文本的基线的 y 坐标。
Group
 InheritedbaselinePositionElement : IVisualElement
用于计算 GroupBase 的 baselinePosition 的元素
Group
 InheritedblendMode : String
[覆盖] BlendMode 类中的一个值,用于指定要使用的混合模式。
Group
 InheritedblendShader : Shader
[只写] 设置用于混合前景和背景的着色器。
DisplayObject
 Inheritedbottom : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。
UIComponent
 InheritedbuttonMode : Boolean
指定此 sprite 的按钮模式。
Sprite
 InheritedcacheAsBitmap : Boolean
如果设置为 true,则 Flash 运行时将缓存显示对象的内部位图表示形式。
DisplayObject
 Inherited    cacheAsBitmapMatrix : Matrix
如果为非 null,则 Matrix 对象会定义显示对象在 cacheAsBitmap 设置为 true 时的呈现方式。
DisplayObject
 InheritedcacheHeuristic : Boolean
[只写] 供 Flex 使用,表示建议为对象实施位图缓存。
UIComponent
 InheritedcachePolicy : String
指定此对象的位图缓存策略。
UIComponent
  caretColumnIndex : int
如果 showCaretIndicator 为 true,则为 caretIndicator 的列索引。
Grid
  caretIndicator : IFactory
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,则为针对插入标记行显示的单个可视元素;如果 selectionMode 是 GridSelectionMode.SINGLE_CELL 或 GridSelectionMode.MULTIPLE_CELLS,则为针对插入标记单元格显示的可视元素。
Grid
  caretRowIndex : int
如果 showCaretIndicator 为 true,则为 caretIndicator 的行索引。
Grid
 InheritedclassName : String
[只读] 此实例的类的名称,如“Button”。
UIComponent
 InheritedclipAndEnableScrolling : Boolean
如果为 true,指定将子代剪切到视区的边界。
GroupBase
  columns : IList
由该网格显示的 GridColumn 对象列表。
Grid
  columnSeparator : IFactory
显示在各列之间的可视元素。
Grid
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 InheritedcontentHeight : Number
[只读] 视域的内容的高度。
GroupBase
 InheritedcontentMouseX : Number
[只读] 返回鼠标在内容坐标系中的 x 位置。
UIComponent
 InheritedcontentMouseY : Number
[只读] 返回内容坐标系中鼠标的 y 位置。
UIComponent
 InheritedcontentWidth : Number
[只读] 视域的内容的宽度。
GroupBase
 InheritedcontextMenu : NativeMenu
指定与此对象相关联的上下文菜单。
InteractiveObject
 InheritedcurrentState : String
组件的当前视图状态。
UIComponent
 InheritedcursorManager : ICursorManager
[只读] 获取控制此组件及其同级组件的光标的 CursorManager。
UIComponent
  dataGrid : DataGrid
如果该 Grid 用作网格外观部件,则为 DataGrid 控件。
Grid
  dataProvider : IList
与网格中的行对应的数据项的列表。
Grid
  dataTipField : String
数据提供程序中显示为数据提示的字段名称。
Grid
  dataTipFunction : Function
指定在数据提供程序每个项目上运行的回调函数,以确定其数据提示。
Grid
 Inheriteddepth : Number
确定容器内各项目的呈示顺序。
UIComponent
 Inheriteddescriptor : UIComponentDescriptor
引用 UIComponentDescriptor(如果有),过去曾通过 createComponentFromDescriptor() 方法使用它来创建此 UIComponent 实例。
UIComponent
 InheriteddesignLayer : DesignLayer
指定与该可视元素关联的可选 DesignLayer 实例。
UIComponent
 Inheriteddocument : Object
引用与此 UIComponent 相关联的文档对象。
UIComponent
 InheriteddoubleClickEnabled : Boolean
[覆盖] 指定 UIComponent 对象是否接收 doubleClick 事件。
UIComponent
 InheriteddropTarget : DisplayObject
[只读] 指定拖动 sprite 时经过的显示对象,或放置 sprite 的显示对象。
Sprite
 Inheritedenabled : Boolean
组件是否可以接受用户交互。
UIComponent
 InheritederrorString : String
当验证程序监视组件并且验证失败时,组件的错误提示中将显示的文本。
UIComponent
 InheritedexplicitHeight : Number
指定该组件在组件坐标中显式高度(以像素为单位)的数字。
UIComponent
 InheritedexplicitMaxHeight : Number
布局过程中父级要考虑的组件最大建议高度。
UIComponent
 InheritedexplicitMaxWidth : Number
布局过程中父级要考虑的组件最大建议宽度。
UIComponent
 InheritedexplicitMinHeight : Number
布局过程中父级要考虑的组件最小建议高度。
UIComponent
 InheritedexplicitMinWidth : Number
布局过程中父级要考虑的组件最小建议宽度。
UIComponent
 InheritedexplicitWidth : Number
指定该组件在组件坐标中显式宽度(以像素为单位)的数字。
UIComponent
 Inheritedfilters : Array
包含当前与显示对象关联的每个滤镜对象的索引数组。
DisplayObject
 InheritedflexContextMenu : IFlexContextMenu
此 UIComponent 的上下文菜单。
UIComponent
 InheritedfocusEnabled : Boolean
指示切换到此组件时,是否可以获得焦点。
UIComponent
 InheritedfocusManager : IFocusManager
获取控制此组件及其同级组件的焦点的 FocusManager。
UIComponent
 InheritedfocusPane : Sprite
与此对象相关联的焦点窗格。
UIComponent
 InheritedfocusRect : Object
指定此对象是否显示焦点矩形。
InteractiveObject
 Inheritedgraphics : Graphics
[只读] 指定属于此 sprite 的 Graphics 对象,在此 sprite 中可执行矢量绘图命令。
Sprite
 InheritedhasFocusableChildren : Boolean
一个标志,指示子对象是否能够获得焦点。
UIComponent
 InheritedhasLayoutMatrix3D : Boolean
[只读] 如果元素具有 3D 矩阵,则为 true。
UIComponent
 Inheritedheight : Number
[覆盖] 指定组件在父坐标中的高度的数字(以像素为单位)。
UIComponent
 InheritedhitArea : Sprite
指定一个 sprite 用作另一个 sprite 的点击区域。
Sprite
 InheritedhorizontalCenter : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。
UIComponent
 InheritedhorizontalScrollPosition : Number
组件的坐标系中视域原点(默认值为 (0,0),与组件的左上角相对应)的 x 坐标。
GroupBase
  hoverColumnIndex : int
如果 showHoverIndicator 为 true,则指定 hoverIndicator 的列索引。
Grid
  hoverIndicator : IFactory
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS。
Grid
  hoverRowIndex : int
如果 showHoverIndicator 为 true,则指定 hoverIndicator 的列索引。
Grid
 Inheritedid : String
组件 ID。
UIComponent
 InheritedincludeInLayout : Boolean
指定此组件是否包含在父容器的布局中。
UIComponent
 InheritedinheritingStyles : Object
此组件的继承样式链的开头内容。
UIComponent
 Inheritedinitialized : Boolean
一个标志,用于确定某个对象是否已通过布局的所有三个阶段:提交、测量和布局(假设每个阶段都是必需的)。
UIComponent
 InheritedinstanceIndex : int
[只读] 重复组件的索引。
UIComponent
 InheritedinstanceIndices : Array
一个 Array,包含从此 UIComponent 对象的父文档引用该对象所需的索引。
UIComponent
 Inheritedis3D : Boolean
[只读] 当元素为 3D 时,则为 true。
UIComponent
 InheritedisDocument : Boolean
[只读] 如果此 UIComponent 实例为文档对象,则为 true。
UIComponent
 InheritedisPopUp : Boolean
PopUpManager 将其设置为 true 以指示已弹出该组件。
UIComponent
  itemRenderer : IFactory
项呈示器,用于不指定项呈示器的列。
Grid
 Inheritedlayout : LayoutBase
此容器的 layout 对象。
GroupBase
 InheritedlayoutMatrix3D : Matrix3D
[只写] 用于相对于其同级组件计算组件的布局的转换矩阵。
UIComponent
 Inheritedleft : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。
UIComponent
 InheritedloaderInfo : LoaderInfo
[只读] 返回一个 LoaderInfo 对象,其中包含加载此显示对象所属的文件的相关信息。
DisplayObject
 InheritedluminosityClip : Boolean
控制发光度遮罩是否剪辑设置了遮罩的内容的属性。
GroupBase
 InheritedluminosityInvert : Boolean
控制计算由发光度遮罩设置遮罩的图形元素的 RGB 颜色值的属性。
GroupBase
 InheritedmaintainProjectionCenter : Boolean
如果为 true,则该组件将使其投影矩阵在其边框的中央保持居中。
UIComponent
 Inheritedmask : DisplayObject
[覆盖] 设置遮罩。
GroupBase
 InheritedmaskType : String
遮罩类型。
GroupBase
 InheritedmaxHeight : Number
布局过程中父级要考虑的组件最大建议高度。
UIComponent
 InheritedmaxWidth : Number
布局过程中父级要考虑的组件最大建议宽度。
UIComponent
 InheritedmeasuredHeight : Number
组件的默认高度(以像素为单位)。
UIComponent
 InheritedmeasuredMinHeight : Number
组件的默认最小高度(以像素为单位)。
UIComponent
 InheritedmeasuredMinWidth : Number
组件的默认最小宽度(以像素为单位)。
UIComponent
 InheritedmeasuredWidth : Number
组件的默认宽度(以像素为单位)。
UIComponent
 InheritedmetaData : Object
如果元数据是通过 PlaceObject4 标记与此 DisplayObject 的实例一起存储在 SWF 文件中的,则获取 DisplayObject 实例的元数据对象。
DisplayObject
 InheritedminHeight : Number
布局过程中父级要考虑的组件最小建议高度。
UIComponent
 InheritedminWidth : Number
布局过程中父级要考虑的组件最小建议宽度。
UIComponent
 InheritedmoduleFactory : IFlexModuleFactory
模块工厂用作上下文,用于为此组件使用嵌入字体以及查找用于控制此组件样式的样式管理器。
UIComponent
 InheritedmouseChildren : Boolean
确定对象的子级是否支持鼠标或用户输入设备。
DisplayObjectContainer
 InheritedmouseEnabled : Boolean
指定此对象是否接收鼠标或其他用户输入、消息。
InteractiveObject
 InheritedmouseEnabledWhereTransparent : Boolean
为 true 时,此属性确保 Group 的整个边界响应鼠标事件(如 click、roll over 等)。
GroupBase
 InheritedmouseFocusEnabled : Boolean
单击时是否可获得焦点。
UIComponent
 InheritedmouseX : Number
[只读] 表示此鼠标或用户输入设备位置的 x 坐标,以像素为单位。
DisplayObject
 InheritedmouseY : Number
[只读] 表示此鼠标或用户输入设备位置的 y 坐标,以像素为单位。
DisplayObject
 InheritedmxmlContent : Array
[只写] 此 Group 的可视内容子项。
Group
 Inheritedname : String
表示 DisplayObject 的实例名称。
DisplayObject
 InheritedneedsSoftKeyboard : Boolean
指定当该 InteractiveObject 实例获得焦点时,是否显示虚拟键盘(显示在屏幕上的软键盘)。
InteractiveObject
 InheritednestLevel : int
此对象在所属关系层次结构中的深度。
UIComponent
 InheritednonInheritingStyles : Object
此组件的非继承样式链的开头内容。
UIComponent
 InheritednumAutomationChildren : int
[只读] 此容器包含的自动化子项数。
UIComponent
 InheritednumElements : int
[只读] 此容器中的可视元素的数量。
GroupBase
 InheritedopaqueBackground : Object
指定显示对象是否由于具有某种背景颜色而不透明。
DisplayObject
 Inheritedoverlay : DisplayLayer
[只读] 此 Group 的叠加平面。
GroupBase
 Inheritedowner : DisplayObjectContainer
此 IVisualElement 对象的所有者。
UIComponent
 Inheritedparent : DisplayObjectContainer
[覆盖] [只读] 此组件的父容器或组件。
UIComponent
 InheritedparentApplication : Object
[只读] 引用包含此 UIComponent 实例的 Application 对象。
UIComponent
 InheritedparentDocument : Object
[只读] 引用此 UIComponent 的父文档对象。
UIComponent
 InheritedpercentHeight : Number
以组件父代大小百分比的方式指定组件高度。
UIComponent
 InheritedpercentWidth : Number
以组件父代大小百分比的方式指定组件宽度。
UIComponent
 InheritedpostLayoutTransformOffsets : mx.geom:TransformOffsets
定义能够应用于对象转换且在一定程度上对其父布局不可视的一组调整。
UIComponent
  preserveSelection : Boolean
如果为 true,数据提供程序刷新其集合时会保留选定内容。
Grid
 InheritedprocessedDescriptors : Boolean
临时或延迟子项创建操作后设置为 true,具体取决于发生对象。
UIComponent
 Inheritedrepeater : IRepeater
[只读] 对生成此 UIComponent 的父文档中 Repeater 对象的引用。
UIComponent
 InheritedrepeaterIndex : int
[只读] 项目在生成此 UIComponent 的 Repeater 数据提供程序中的索引。
UIComponent
 InheritedrepeaterIndices : Array
一个 Array,包含项目在生成此 UIComponent 的父文档的 Repeater 数据提供程序中的索引。
UIComponent
 Inheritedrepeaters : Array
一个 Array,包含对生成此 UIComponent 的父文档中 Repeater 对象的引用。
UIComponent
  requestedColumnCount : int
此网格的测量宽度足以显示前面的 requestedColumnCount 个列。
Grid
  requestedMaxRowCount : int
此网格的测量高度足以显示至多 requestedMaxRowCount 个行。
Grid
  requestedMinColumnCount : int
此网格的测量宽度足以显示至少 requestedMinColumnCount 个列。
Grid
  requestedMinRowCount : int
此网格的测量高度足以至少显示 requestedMinRowCount 个行。
Grid
  requestedRowCount : int
此网格的测量高度足以显示前面的 requestedRowCount 个行。
Grid
  requireSelection : Boolean
如果为 true 且 selectionMode 属性不是 GridSelectionMode.NONE,则必须始终在网格中选中某一项。
Grid
  resizableColumns : Boolean
指示用户能否更改列的尺寸。
Grid
 InheritedresizeMode : String
此容器的 ResizeMode。
GroupBase
 Inheritedright : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。
UIComponent
 Inheritedroot : DisplayObject
[只读] 对于加载的 SWF 文件中的显示对象,root 属性是此 SWF 文件所表示的显示列表树结构部分中的顶级显示对象。
DisplayObject
 Inheritedrotation : Number
[覆盖] 表示 DisplayObject 实例距其原始方向的旋转程度,以度为单位。
UIComponent
 InheritedrotationX : Number
[覆盖] 表示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 x 轴旋转(以度为单位)。
UIComponent
 InheritedrotationY : Number
[覆盖] 表示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 y 轴旋转(以度为单位)。
UIComponent
 InheritedrotationZ : Number
[覆盖] 表示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 z 轴旋转(以度为单位)。
UIComponent
  rowBackground : IFactory
为每行显示背景的可视元素。
Grid
  rowHeight : Number
如果 variableRowHeight 为 false,则此属性指定每行的实际高度(以像素为单位)。
Grid
  rowSeparator : IFactory
显示在各行之间的可视元素。
Grid
 Inheritedscale9Grid : Rectangle
当前有效的缩放网格。
DisplayObject
 InheritedscaleGridBottom : Number
指定刻度网格的底部坐标。
Group
 InheritedscaleGridLeft : Number
指定刻度网格的左侧坐标。
Group
 InheritedscaleGridRight : Number
指定刻度网格的右侧坐标。
Group
 InheritedscaleGridTop : Number
指定刻度网格的顶部坐标。
Group
 InheritedscaleX : Number
[覆盖] 用于指定水平缩放系数的数字。
UIComponent
 InheritedscaleY : Number
[覆盖] 用于指定垂直缩放系数的数字。
UIComponent
 InheritedscaleZ : Number
[覆盖] 指定沿着 z 轴的缩放因子的数值。
UIComponent
 Inheritedscreen : Rectangle
[只读] 返回包含此对象的基本绘图表面大小和位置的对象。
UIComponent
 InheritedscrollRect : Rectangle
显示对象的滚动矩形范围。
DisplayObject
  selectedCell : CellPosition
如果 selectionMode 是 GridSelectionMode.SINGLE_CELL 或 GridSelectionMode.MULTIPLE_CELLS,则返回第一个选定单元格(起点为 0 行 0 列),并在移动到下一行之前处理行中的每列。
Grid
  selectedCells : Vector.<CellPosition>
如果 selectionMode 是 GridSelectionMode.SINGLE_CELL 或 GridSelectionMode.MULTIPLE_CELLS,则返回表示网格中选定单元格位置的 CellPosition 对象的 Vector。
Grid
  selectedIndex : int
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,则返回第一个选定行的 rowIndex。
Grid
  selectedIndices : Vector.<int>
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,则返回选定行索引的 Vector。
Grid
  selectedItem : Object
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,则返回当前选定或 undefined(如果未选定任何行)的数据提供程序中的项。
Grid
  selectedItems : Vector.<Object>
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,则返回当前选择的 dataProvider 项目的 Vector。
Grid
  selectionIndicator : IFactory
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,则为针对每个选定行显示的可视元素;如果 selectionMode 是 GridSelectionMode.SINGLE_CELL 或 GridSelectionMode.MULTIPLE_CELLS,则为针对每个选定单元格显示的可视元素。
Grid
  selectionLength : int
[只读] 如果 selectionMode 为 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,则返回所选行的数量。
Grid
  selectionMode : String
控件的选择模式。
Grid
  showDataTips : Boolean
如果为 true,则显示所有可见单元格的 dataTip。
Grid
 InheritedshowInAutomationHierarchy : Boolean
用于确定自动化对象是否显示在自动化层次中的标志。
UIComponent
 Inherited    softKeyboard : String
控制软键盘的外观。
InteractiveObject
 InheritedsoftKeyboardInputAreaOfInterest : Rectangle
定义当显示软键盘时应在屏幕上保留的区域(在 iOS 上不支持)。
InteractiveObject
 InheritedsoundTransform : flash.media:SoundTransform
控制此 sprite 中的声音。
Sprite
 Inheritedstage : Stage
[只读] 显示对象的舞台。
DisplayObject
 Inheritedstates : Array
为此组件定义的视图状态。
UIComponent
 InheritedstyleDeclaration : CSSStyleDeclaration
存储此对象的内嵌继承样式。
UIComponent
 InheritedstyleManager : IStyleManager2
[只读] 返回此组件使用的 StyleManager 实例。
UIComponent
 InheritedstyleName : Object
此组件使用的类样式。
UIComponent
 InheritedstyleParent : IAdvancedStyleClient
组件的父项用于评估后代选择器。
UIComponent
 InheritedsystemManager : ISystemManager
返回此组件使用的 SystemManager 对象。
UIComponent
 InheritedtabChildren : Boolean
确定对象的子项是否支持 Tab 键。
DisplayObjectContainer
 InheritedtabEnabled : Boolean
指定此对象是否遵循 Tab 键顺序。
InteractiveObject
 InheritedtabFocusEnabled : Boolean
一个标志,指示该对象是否能够通过 Tab 键获得焦点。这与 Flash Player 使用的 tabEnabled 属性类似。对于处理键盘输入的组件该标志通常为 true,但是控件栏中的一些组件将其设置为 false,因为它们不能像编辑器一样从另外的组件窃取焦点。
UIComponent
 InheritedtabIndex : int
指定 SWF 文件中的对象按 Tab 键顺序排列。
InteractiveObject
 InheritedtextSnapshot : flash.text:TextSnapshot
[只读] 返回此 DisplayObjectContainer 实例的 TextSnapshot 对象。
DisplayObjectContainer
 InheritedtoolTip : String
要在 ToolTip 中显示的文本。
UIComponent
 Inheritedtop : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。
UIComponent
 Inheritedtransform : flash.geom:Transform
[覆盖] 一个对象,具有与显示对象的矩阵、颜色转换和像素范围有关的属性。
UIComponent
 InheritedtransformX : Number
设置组件转换中心的 x 坐标。
UIComponent
 InheritedtransformY : Number
设置组件转换中心的 y 坐标。
UIComponent
 InheritedtransformZ : Number
设置组件转换中心的 z 坐标。
UIComponent
 Inheritedtransitions : Array
一个 Transition 对象 Array,其中的每个 Transition 对象都定义一组效果,用于在视图状态发生更改时播放。
UIComponent
 InheritedtweeningProperties : Array
当前在此对象上进行补间的属性数组。
UIComponent
  typicalItem : Object
网格的布局确保未指定宽度的列足以显示此默认数据提供程序项的项呈示器。
Grid
 Inheriteduid : String
对象的唯一标识符。
UIComponent
 InheritedupdateCompletePendingFlag : Boolean
一个标志,确定某个对象是否已通过所有三个阶段的布局验证(假设需要通过所有验证)。
UIComponent
 InheriteduseHandCursor : Boolean
布尔值,表示当指针滑过 buttonMode 属性设置为 true 的 sprite 时是否显示指针手形(手形光标)。
Sprite
 InheritedvalidationSubField : String
供验证程序用来将子字段与此组件相关联。
UIComponent
  variableRowHeight : Boolean
如果为 true,则每行的高度是到目前为止显示的单元格首选高度的最大值。
Grid
 InheritedverticalCenter : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。
UIComponent
 InheritedverticalScrollPosition : Number
组件的坐标系中视区的原点(默认值为 (0,0),与组件的左上角相对应)的 y 坐标。
GroupBase
 Inheritedvisible : Boolean
[覆盖] 显示对象是否可见。
UIComponent
 Inheritedwidth : Number
[覆盖] 指定组件在父坐标中的宽度的数字(以像素为单位)。
UIComponent
 Inheritedx : Number
[覆盖] 指定组件在其父容器中的水平位置(以像素为单位)的数字。
UIComponent
 Inheritedy : Number
[覆盖] 指定组件在其父容器中的垂直位置(以像素为单位)的数字。
UIComponent
 Inheritedz : Number
[覆盖] 表示 DisplayObject 实例相对于 3D 父容器沿 z 轴的 z 坐标位置。
UIComponent
受保护的属性
 属性由以下参数定义
 InheritedcurrentCSSState : String
[只读] 匹配 CSS 伪选择器时要使用的状态。
UIComponent
 InheritedhasComplexLayoutMatrix : Boolean
[只读] 如果 UIComponent 具有任何非平移 (x,y) 转换属性,则返回 true。
UIComponent
 InheritedresourceManager : IResourceManager
[只读] 对管理所有应用程序本地化资源的对象的引用。
UIComponent
 InheritedunscaledHeight : Number
[只读] 用于确定组件的未缩放高度的简便方法。
UIComponent
 InheritedunscaledWidth : Number
[只读] 用于确定组件的未缩放宽度的简便方法。组件的绘图和子布局的所有设置均应在以此宽度为宽的矩形边框中完成,还应将此宽度作为参数传递到 updateDisplayList() 中。
UIComponent
公共方法
 方法由以下参数定义
  
构造函数。
Grid
 Inherited
将可视元素添加到此容器中。
Group
 Inherited
将可视元素添加到此容器中。
Group
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
  
addSelectedCell(rowIndex:int, columnIndex:int):Boolean
如果 selectionMode 是 GridSelectionMode.SINGLE_CELL 或 GridSelectionMode.MULTIPLE_CELLS,将单元格添加到选定内容并将尖号位置设置为该单元格。
Grid
  
如果 selectionMode 是 GridSelectionMode.MULTIPLE_ROWS,将此行添加到选定内容并将尖号位置设置为此行。
Grid
 Inherited
将非可视样式客户端添加到该组件实例。
UIComponent
 Inherited
表示安全限制是否会导致出现以下情况:在列表中忽略了使用指定 point 点调用 DisplayObjectContainer.getObjectsUnderPoint() 方法时返回的所有显示对象。
DisplayObjectContainer
 Inherited
callLater(method:Function, args:Array = null):void
排队稍后调用的函数。
UIComponent
  
如果 selectionMode 不是 GridSelectionMode.NONE,则删除所有所选行和单元格。
Grid
 Inherited
删除此组件实例的样式属性。
UIComponent
 Inherited
确定指定显示对象是 DisplayObjectContainer 实例的子项还是该实例本身。
DisplayObjectContainer
 Inherited
确定指定的 IVisualElement 是否为容器实例的子代或该实例本身。
GroupBase
 Inherited
将 Point 对象由内容坐标转换为全局坐标。
UIComponent
 Inherited
将 Point 对象由内容坐标转换为本地坐标。
UIComponent
 Inherited
返回标识此容器中的子项的一组属性。
UIComponent
 Inherited
返回标识此容器中的子项的一组属性。
UIComponent
 Inherited
在 IUIComponent 对象的父项文档对象上创建对此对象的 id 引用。
UIComponent
 Inherited
在 IUIComponent 对象的父项文档对象上删除对此对象的 id 引用。
UIComponent
 Inherited
返回与此 UIComponent 的文本样式对应的 UITextFormat 对象。
UIComponent
 Inherited
[覆盖] 将事件调度到事件流中。
UIComponent
 Inherited
在此组件周围显示或隐藏焦点指示符。
UIComponent
 Inherited
drawRoundRect(x:Number, y:Number, w:Number, h:Number, r:Object = null, c:Object = null, alpha:Object = null, rot:Object = null, gradient:String = null, ratios:Array = null, hole:Object = null):void
通过编程方式在此外观的 Graphics 对象中绘制一个矩形。
UIComponent
 Inherited
停止在组件上播放效果实例时,由效果实例调用。
UIComponent
 Inherited
开始在组件上播放效果实例时,由效果实例调用。
UIComponent
 Inherited
结束组件上当前播放的所有效果。
UIComponent
  
ensureCellIsVisible(rowIndex:int = -1, columnIndex:int = -1):void
如果需要,设置 verticalScrollPosition 和 horizontalScrollPosition 属性以使指定的单元格完全可见。
Grid
 Inherited
executeBindings(recurse:Boolean = false):void
执行 UIComponent 对象是目标的所有绑定。
UIComponent
 Inherited
打印完成后调用。
UIComponent
 Inherited
在指定的索引位置提供自动化对象。
UIComponent
 Inherited
提供自动化对象列表。
UIComponent
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。
DisplayObject
 Inherited
getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
按指定的元素大小,返回元素边界的 x 坐标。
UIComponent
 Inherited
getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
按指定的元素大小,返回元素边界的 y 坐标。
UIComponent
  
返回在指定网格坐标处重叠像素的单元格的行和列索引。
Grid
  
getCellBounds(rowIndex:int, columnIndex:int):Rectangle
返回指定单元格的当前像素范围,如果不存在这样的单元格,则返回 null。
Grid
  
返回 CellPosition 对象的矢量,该对象的 rowIndex 和 columnIndex 属性指定与指定网格区域重叠的单元格的行索引和列索引。
Grid
  
getCellX(rowIndex:int, columnIndex:int):Number
返回指定单元格的原点的 X 坐标。
Grid
  
getCellY(rowIndex:int, columnIndex:int):Number
返回指定单元格的原点的 Y 坐标。
Grid
 Inherited
返回具有指定名称的子显示对象。
DisplayObjectContainer
 Inherited
查找此 UIComponent 实例的类型选择器。
UIComponent
  
返回指定列的当前像素范围,如果不存在这样的列,则返回 null。
Grid
  
返回对应于指定坐标的列索引;如果坐标超出边界,则返回 -1。
Grid
  
返回指定列的宽度。
Grid
 Inherited
getConstraintValue(constraintName:String):*
返回一个约束布局值,这与获取此组件的约束样式的方式类似。
UIComponent
 Inherited
返回指定索引处的可视元素。
GroupBase
 Inherited
返回可视元素的索引位置。
GroupBase
 Inherited
确定是使用显式高度还是测量高度的一种简便方法
UIComponent
 Inherited
确定是使用显式宽度还是测量宽度的一种简便方法
UIComponent
 Inherited
获取当前具有焦点的对象。
UIComponent
 Inherited
返回对水平滚动位置的更改以处理不同的滚动选项。
GroupBase
  
如果请求的项呈示器可见,则返回对指定单元格当前显示的项呈示器的引用。
Grid
 Inherited
getLayoutBoundsHeight(postLayoutTransform:Boolean = true):Number
返回元素的布局高度。
UIComponent
 Inherited
getLayoutBoundsWidth(postLayoutTransform:Boolean = true):Number
返回元素的布局宽度。
UIComponent
 Inherited
getLayoutBoundsX(postLayoutTransform:Boolean = true):Number
返回元素在屏幕上进行绘制时所用的 x 坐标。
UIComponent
 Inherited
getLayoutBoundsY(postLayoutTransform:Boolean = true):Number
返回元素在屏幕上进行绘制时所用的 y 坐标。
UIComponent
 Inherited
返回用于相对于其同级组件计算组件的布局的转换矩阵。
UIComponent
 Inherited
返回此元素的布局转换 Matrix3D。
UIComponent
 Inherited
getMaxBoundsHeight(postLayoutTransform:Boolean = true):Number
返回元素的最大高度。
UIComponent
 Inherited
getMaxBoundsWidth(postLayoutTransform:Boolean = true):Number
返回元素的最大宽度。
UIComponent
 Inherited
getMinBoundsHeight(postLayoutTransform:Boolean = true):Number
返回元素的最小高度。
UIComponent
 Inherited
getMinBoundsWidth(postLayoutTransform:Boolean = true):Number
返回元素的最小宽度。
UIComponent
 Inherited
返回对象的数组,这些对象位于指定点下,并且是该 DisplayObjectContainer 实例的子项(或孙子项,依此类推)。
DisplayObjectContainer
 Inherited
getPreferredBoundsHeight(postLayoutTransform:Boolean = true):Number
返回元素的首选高度。
UIComponent
 Inherited
getPreferredBoundsWidth(postLayoutTransform:Boolean = true):Number
返回元素的首选宽度。
UIComponent
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
返回一个矩形,该矩形根据 targetCoordinateSpace 参数定义的坐标系定义显示对象的边界,但不包括形状上的任何笔触。
DisplayObject
 Inherited
getRepeaterItem(whichRepeater:int = -1):Object
返回 dataProvider 中由指定的 Repeater 用来生成此 Repeater 的项目;如果此 Repeater 未重复,则返回 null。
UIComponent
  
返回指定行的当前像素范围,如果不存在这样的行,则返回 null。
Grid
  
返回对应于指定坐标的行索引;如果坐标超出边界,则返回 -1。
Grid
 Inherited
getStyle(styleProp:String):*
获取已在此组件的样式查找链中的某个位置设置过的样式属性。
UIComponent
 Inherited
返回对垂直滚动位置的更改以处理不同的滚动选项。
GroupBase
 Inherited
getVirtualElementAt(index:int, eltWidth:Number = NaN, eltHeight:Number = NaN):IVisualElement
支持 useVirtualLayout 标志的布局将在 updateDisplayList() 时使用此方法获取“处于视图中”的布局元素,即,
GroupBase
  
返回当前可见列的索引。
Grid
  
返回数据提供程序索引和当前可见行的内边距索引。
Grid
 Inherited
将 Point 对象由全局坐标转换为内容坐标。
UIComponent
 Inherited
将 point 对象从舞台(全局)坐标转换为显示对象的(本地)坐标。
DisplayObject
 Inherited
将二维点从舞台(全局)坐标转换为三维显示对象的(本地)坐标。
DisplayObject
 Inherited
如果 currentCSSState 不为 null,则返回 true。
UIComponent
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
确定是否已在此 UIComponent 上定义指定的状态。
UIComponent
 Inherited
计算显示对象的边框,以确定它是否与 obj 显示对象的边框重叠或相交。
DisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。
DisplayObject
 Inherited
返回一个框 Matrix,在绘制水平渐变时可以将其作为 rot 参数传递给 drawRoundRect() 方法。
UIComponent
 Inherited
初始化此组件的内部结构。
UIComponent
 Inherited
初始化用于跟踪此组件的重复实例的各个属性。
UIComponent
  
invalidateCell(rowIndex:int, columnIndex:int):void
如果指定的单元格可见,则它会重新显示。
Grid
 Inherited
标记组件,以便在稍后屏幕更新期间调用该组件的 updateDisplayList() 方法。
UIComponent
 Inherited
请注意元素已更改且需要重新绘制的主机组件。
Group
 Inherited
请注意元素已更改且需要验证属性的主机组件。
Group
 Inherited
请注意元素图层已更改的主机。
Group
 Inherited
请注意元素大小已更改的主机组件。
Group
 Inherited
由某个组件的项目进行调用,以指示其 depth 属性已更改。
UIComponent
 Inherited
当某元素的 layoutDirection 更改或其父代的 layoutDirection 更改时,该元素必须调用该方法。
UIComponent
 Inherited
标记组件,以便在稍后屏幕更新期间调用该组件的 commitProperties() 方法。
UIComponent
 Inherited
标记组件,以便在稍后屏幕更新期间调用该组件的 measure() 方法。
UIComponent
  
清除基于 typicalItem 属性的缓存列宽数据,并请求新的布局传递。
Grid
  
isCellVisible(rowIndex:int = -1, columnIndex:int = -1):Boolean
如果指定的单元格至少部分可见,则返回 true。
Grid
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
将三维显示对象的(本地)坐标的三维点转换为舞台(全局)坐标中的二维点。
DisplayObject
 Inherited
将 Point 对象由本地坐标转换为内容坐标。
UIComponent
 Inherited
将 point 对象从显示对象的(本地)坐标转换为舞台(全局)坐标。
DisplayObject
 Inherited
如果 cssState 与 currentCSSState 匹配,则返回 true。
UIComponent
 Inherited
确定此实例与给定类型相同,还是属于给定类型的子类。
UIComponent
 Inherited
测量指定的 HTML 文本(该文本中可能包含 <font> 和 <b> 等 HTML 标签),假定该文本显示在单行 UITextField(使用由此 UIComponent 的样式确定的 UITextFormat)中。
UIComponent
 Inherited
测量指定的文本,假定该文本使用由此 UIComponent 的样式确定的 UITextFormat 显示在单行 UITextField(或 UIFTETextField)中。
UIComponent
 Inherited
将组件移动到其父项内的指定位置。
UIComponent
 Inherited
将样式更改传播到子项。
UIComponent
 Inherited
如果 owner 属性链从 child 指向此 UIComponent,则返回 true。
UIComponent
 Inherited
当在父项中添加或删除 UIComponent 对象时由 Flex 调用。
UIComponent
 Inherited
准备 IFlexDisplayObject 用于打印。
UIComponent
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
为此组件及其所有后代生成或重新生成 CSS 样式缓存,前提条件是递归参数为 true。
UIComponent
 Inherited
针对每个效果事件,将 EffectManager 注册为一个事件侦听器。
UIComponent
 Inherited
从容器中删除所有可视元素。
Group
 Inherited
removeChildren(beginIndex:int = 0, endIndex:int = 0x7fffffff):void
从 DisplayObjectContainer 实例的子级列表中删除所有子 DisplayObject 实例。
DisplayObjectContainer
 Inherited
从此容器的子列表中删除指定的可视元素。
Group
 Inherited
从容器中的指定索引位置删除可视元素。
Group
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
  
removeSelectedCell(rowIndex:int, columnIndex:int):Boolean
如果 selectionMode 是 GridSelectionMode.SINGLE_CELL 或 GridSelectionMode.MULTIPLE_CELLS,删除选定内容中的单元格并将插入标记位置设置为该单元格。
Grid
  
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,删除选定内容中的此行并将尖号位置设置为此行。
Grid
 Inherited
从该组件实例删除非可视样式客户端。
UIComponent
 Inherited
重放指定的事件。
UIComponent
 Inherited
显示虚拟键盘。
InteractiveObject
 Inherited
使用提供的 ID 解析子项。
UIComponent
 Inherited
[静态] 在调用 suspendBackgroundProcessing() 之后继续对使用 callLater() 排队的方法进行背景处理。
UIComponent
  
如果 selectionMode 是 GridSelectionMode.MULTIPLE_ROWS,选择所有行并删除尖号;如果 selectionMode 是 GridSelectionMode.MULTIPLE_CELLS,选择所有单元格并删除尖号。
Grid
  
selectCellRegion(rowIndex:int, columnIndex:int, rowCount:uint, columnCount:uint):Boolean
如果 selectionMode 是 GridSelectionMode.MULTIPLE_CELLS,则将选定内容设置为单元格区域中所有单元格并将尖号位置设置为单元格区域中最后一个单元格。
Grid
  
selectIndices(rowIndex:int, rowCount:int):Boolean
如果 selectionMode 是 GridSelectionMode.MULTIPLE_ROWS,则将选定内容设置为指定行并将尖号位置设置为 endRowIndex。
Grid
  
selectionContainsCell(rowIndex:int, columnIndex:int):Boolean
如果 selectionMode 是 GridSelectionMode.SINGLE_CELL 或 GridSelectionMode.MULTIPLE_CELLS 且单元格位于当前选定内容中,则返回 true。
Grid
  
selectionContainsCellRegion(rowIndex:int, columnIndex:int, rowCount:int, columnCount:int):Boolean
如果 selectionMode 是 GridSelectionMode.MULTIPLE_CELLS 且单元格区域中的单元格位于当前选定内容中,则返回 true。
Grid
  
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS 且索引处的行位于当前选定内容中,则返回 true。
Grid
  
如果 selectionMode 是 GridSelectionMode.MULTIPLE_ROWS 且 indices 中的行位于当前选定内容中,则返回 true。
Grid
 Inherited
调整对象大小。
UIComponent
 Inherited
setConstraintValue(constraintName:String, value:*):void
设置一个布局约束值的方式,与设置此组件的约束样式的方式相同。
UIComponent
 Inherited
设置 contentWidth 和 contentHeight 属性。
GroupBase
 Inherited
setCurrentState(stateName:String, playTransition:Boolean = true):void
设置当前状态。
UIComponent
 Inherited
在可视容器中更改现有可视元素的位置。
Group
 Inherited
设置此组件的焦点。
UIComponent
 Inherited
setLayoutBoundsPosition(x:Number, y:Number, postLayoutTransform:Boolean = true):void
设置元素在屏幕上进行绘制时所用的坐标。
UIComponent
 Inherited
setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void
设置元素的布局大小。
UIComponent
 Inherited
setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void
设置用于相对于其同级组件计算组件的布局大小和位置的转换 Matrix。
UIComponent
 Inherited
setLayoutMatrix3D(value:Matrix3D, invalidateLayout:Boolean):void
设置用于计算组件相对于其同级组件的布局大小和位置的转换 Matrix3D。
UIComponent
 Inherited
设置循环操作动态属性的可用性。
Object
  
setSelectedCell(rowIndex:int, columnIndex:int):Boolean
如果 selectionMode 是 GridSelectionMode.SINGLE_CELL 或 GridSelectionMode.MULTIPLE_CELLS,则将选定内容和尖号位置设置为此单元格。
Grid
  
如果 selectionMode 是 GridSelectionMode.SINGLE_ROW 或 GridSelectionMode.MULTIPLE_ROWS,则将选定内容和尖号位置设置为此行。
Grid
 Inherited
setStyle(styleProp:String, newValue:*):void
对此组件实例设置样式属性。
UIComponent
 Inherited
setVisible(value:Boolean, noEvent:Boolean = false):void
当 visible 属性发生更改时调用。
UIComponent
 Inherited
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
允许用户拖动指定的 Sprite。
Sprite
 Inherited
startTouchDrag(touchPointID:int, lockCenter:Boolean = false, bounds:Rectangle = null):void
使用户可以在启用触摸的设备上拖动指定的 Sprite。
Sprite
 Inherited
对源起于此对象的所有 MovieClip 递归停止时间轴执行。
DisplayObjectContainer
 Inherited
结束 startDrag() 方法。
Sprite
 Inherited
stopTouchDrag(touchPointID:int):void
结束 startTouchDrag() 方法,用于启用触摸的设备。
Sprite
 Inherited
检测对样式属性的更改。
UIComponent
 Inherited
首次初始化组件样式时,Flex 会调用 stylesInitialized() 方法。
UIComponent
 Inherited
[静态] 阻止对使用 callLater() 排队的方法进行背景处理,直到调用 resumeBackgroundProcessing() 为止。
UIComponent
 Inherited
交换两个指定可视元素的索引。
Group
 Inherited
swapElementsAt(index1:int, index2:int):void
交换容器中位于两个指定索引位置的可视元素。
Group
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
[覆盖] 返回一个字符串,用于指示此对象在应用程序的 DisplayObject 层次结构中所处的位置。
FlexSprite
 Inherited
transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void
用于更新转换的旋转、缩放和平移的一种实用程序方法,同时保留某个特定点,该点是在组件自己的坐标空间中指定的,且在父项的坐标空间中是固定的。
UIComponent
 Inherited
transformPointToParent(localPosition:Vector3D, position:Vector3D, postLayoutPosition:Vector3D):void
一种实用程序方法,用于将以该对象的本地坐标指定的点转换为在该对象父坐标中的相应位置。
UIComponent
 Inherited
验证子项的位置和大小,并绘制其他可视内容。
UIComponent
 Inherited
验证并更新此对象的属性和布局,如果需要的话重绘对象。
UIComponent
 Inherited
由布局逻辑用于通过调用 commitProperties() 方法来验证组件的属性。
UIComponent
 Inherited
validateSize(recursive:Boolean = false):void
如果使用此 ILayoutManagerClient 调用 LayoutManager.invalidateSize() 方法,随后在测量时调用了 validateSize() 方法,则验证组件的度量大小。
UIComponent
 Inherited
处理分配给此组件的验证程序调度的 valid 和 invalid 事件。
UIComponent
 Inherited
返回指定对象的原始值。
Object
 Inherited
返回一个框 Matrix,在绘制垂直渐变时可以将其作为 rot 参数传递给 drawRoundRect()。
UIComponent
 Inherited
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。
EventDispatcher
受保护的方法
 方法由以下参数定义
 Inherited
调整焦点矩形。
UIComponent
 Inherited
提交计算的矩阵,该矩阵是基于布局矩阵以及 flash displayObject 的转换的转换偏移量而构建的。
UIComponent
 Inherited
这是一个内部方法,供 Flex 框架用于支持 Dissolve 效果。
UIComponent
 Inherited
确定是否可以跳过对 measure() 方法的调用。
UIComponent
 Inherited
创建子对象后执行任何最终处理。
UIComponent
 Inherited
处理对组件设置的属性。
UIComponent
 Inherited
[覆盖] 如果尚未设置布局对象,则 createChildren() 会为该容器指定默认布局对象 BasicLayout。
GroupBase
 Inherited
根据所用的嵌入字体使用上下文创建新对象。
UIComponent
 Inherited
使用给定的 moduleFactory 创建对象。
UIComponent
 Inherited
dispatchPropertyChangeEvent(prop:String, oldValue:*, value:*):void
更新属性时调度 PropertyChangeEvent 的 Helper 方法。
UIComponent
 Inherited
当 UIComponent 对象获得焦点时调用的事件处理函数。
UIComponent
 Inherited
当 UIComponent 对象失去焦点时调用的事件处理函数。
UIComponent
 Inherited
对于组件的某些不常使用的高级布局功能,初始化其实现和存储。
UIComponent
 Inherited
完成对此组件的初始化。
UIComponent
 Inherited
初始化此组件的辅助功能代码。
UIComponent
 Inherited
此对象影响其布局时(includeInLayout 为 true),使父代大小和显示列表失效的 Helper 方法。
UIComponent
 Inherited
通常由包含 UITextField 对象的组件覆盖,其中 UITextField 对象获取焦点。
UIComponent
 Inherited
为 keyDown 事件调用的事件处理函数。
UIComponent
 Inherited
为 keyUp 事件调用的事件处理函数。
UIComponent
 Inherited
计算组件的默认大小和(可选)默认最小大小。
UIComponent
 Inherited
构建 UIComponent 时将调用此方法,并且每当 ResourceManager 调度“change”事件用于指示本地化资源已经过某种更改时,都会再次调用此方法。
UIComponent
 Inherited
setStretchXY(stretchX:Number, stretchY:Number):void
在水平方向和垂直方向上,指定转换拉伸因子。
UIComponent
 Inherited
stateChanged(oldState:String, newState:String, recursive:Boolean):void
当状态改变以检查状态特定的样式是否应用到此组件时,会调用此方法。
UIComponent
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
绘制对象和/或设置其子项的大小和位置。
UIComponent
事件
 事件 摘要 由以下参数定义
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited当组件通过使用 addChild()、addChildAt()、addElement() 或 addElementAt() 方法作为内容子项添加到容器后调度。UIComponent
 Inherited将显示对象添加到显示列表中时调度。DisplayObject
 Inherited在将显示对象直接添加到舞台显示列表或将包含显示对象的子树添加至舞台显示列表中时调度。DisplayObject
  插入标记更改后调度。Grid
 Inherited当用户从文本上下文菜单中选择“清除”(或“删除”)时调度。InteractiveObject
 Inherited用户在同一 InteractiveObject 上按下并释放用户指针设备的主按钮时调度。InteractiveObject
 Inherited
    contextMenu
当用户手势触发 AIR 应用程序中与此交互式对象相关联的上下文菜单时调度。InteractiveObject
 Inherited在用户为复制操作激活特定于平台的加速键组合或从文本上下文菜单中选择“复制”时调度。InteractiveObject
 Inherited当组件完成其构建、属性处理、测量、布置和绘制时调度。UIComponent
 Inherited视图状态更改后调度。UIComponent
 Inherited在 currentState 属性更改后但视图状态更改前调度。UIComponent
 Inherited在用户为剪切操作激活特定于平台的加速键组合或从文本上下文菜单中选择“剪切”时调度。InteractiveObject
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
 Inherited如果 InteractiveObject 的 doubleClickEnabled 标志设置为 true,当用户在该对象上快速连续按下两次并释放指针设备的主按钮时调度。InteractiveObject
 Inherited在拖动操作完成时(将拖动的数据放到放置目标时或在没有执行放置操作的情况下结束拖放操作时)由拖动启动器(作为要拖动的数据源的组件)调度。UIComponent
 Inherited用户在放置目标上释放鼠标时由放置目标调度。UIComponent
 Inherited当用户在拖动操作过程中将鼠标移动到某个组件所处的位置时,由该组件调度。UIComponent
 Inherited用户在组件外拖动但没有将数据放置到目标时,由组件调度。UIComponent
 Inherited在拖动操作期间,当用户在鼠标位于组件上方的情况下移动鼠标时,由组件调度。UIComponent
 Inherited启动拖动操作时,由拖动启动器调度。UIComponent
 Inherited在一个效果结束后调度。UIComponent
 Inherited在即将开始播放效果前调度。UIComponent
 Inherited在停止某个效果(仅当对该效果调用 stop() 时发生)之后调度。UIComponent
 Inherited将可视元素添加到内容容器时调度。Group
 Inherited从内容容器中删除可视元素时调度。Group
 Inherited[播放事件] 播放头进入新帧时调度。DisplayObject
 Inherited在组件已进入视图状态之后调度。UIComponent
 Inherited[广播事件] 播放头退出当前帧时调度。DisplayObject
 Inherited在组件即将退出视图状态之前调度。UIComponent
 Inherited显示对象获得焦点后调度。InteractiveObject
 Inherited显示对象失去焦点后调度。InteractiveObject
 Inherited[广播事件] 在帧显示对象的构造函数运行之后但在帧脚本运行之前调度。DisplayObject
 Inherited当用户使用 InteractiveObject 实例沿触摸面边缘创建接触点时调度(如在 Siri Remote for Apple TV 上沿触摸面边缘轻击)。有些设备也可能将这种接触解释为多个触摸事件的组合。InteractiveObject
 Inherited当用户在启用触摸设备上的同一 InteractiveObject 实例上按下两个接触点时(例如,在配有触摸屏的移动电话或平板电脑上的显示对象上按下和释放两个手指)调度。InteractiveObject
 Inherited当用户在启用触摸的设备上的 InteractiveObject 实例上移动接触点时(例如,在配有触摸屏的移动电话或平板电脑上的显示对象上从左向右移动手指)调度。InteractiveObject
 Inherited当用户在接触点处使用 InteractiveObject 实例执行旋转手势时(例如,将两个手指放在屏幕上,然后在配有触摸屏的移动电话或平板电脑上的显示对象上旋转这两个手指)调度。InteractiveObject
 Inherited当用户在接触点处使用 InteractiveObject 实例执行滑动手势(例如,在配有触摸屏的移动电话或平板电脑上用三根手指触摸屏幕,然后在一个显示对象上平行移动这三根手指)时调度。InteractiveObject
 Inherited当用户使用 InteractiveObject 实例创建接触点,然后点击启用触屏的设备时(例如,将几个手指放在显示对象上以打开菜单,然后点击一个手指在配有触摸屏的移动电话或平板电脑上选择一个菜单项)调度。InteractiveObject
 Inherited当用户在接触点处使用 InteractiveObject 实例执行缩放手势操作时(例如,将两个手指放在屏幕上,然后在配有触摸屏的移动电话或平板电脑上的显示对象上快速分开手指)调度。InteractiveObject
  在单元格上单击鼠标时调度Grid
  在单元格上双击鼠标时调度Grid
  在 Grid 单元格上按下鼠标按钮时调度。Grid
  如果在释放按钮之前移动鼠标,则在 gridMouseDown 事件后调度。Grid
  在 Grid 单元格上释放鼠标按钮时调度。Grid
  在鼠标离开网格单元格时调度。Grid
  在鼠标指向网格单元格时调度。Grid
 Inherited当对象的状态从可见变为不可见时调度。UIComponent
 Inherited此事件被调度到任何支持使用 IME 进行内联输入的客户端应用程序InteractiveObject
 Inherited当组件完成构建并设置了所有初始化属性后调度。UIComponent
 Inherited当组件由 Validator 监控且未通过验证时调度。UIComponent
 Inherited用户按下某个键时调度。InteractiveObject
 Inherited用户尝试使用键盘导航更改焦点时调度。InteractiveObject
 Inherited用户释放某个键时调度。InteractiveObject
 Inherited当用户在同一 InteractiveObject 上按下并释放用户指针设备的中间按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备的中间按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备按钮时调度。InteractiveObject
 Inherited当用户在使用 PopUpManager 打开的某个组件外部单击时,从该组件调度。UIComponent
 Inherited用户尝试使用指针设备更改焦点时调度。InteractiveObject
 Inherited用户移动 InteractiveObject 上的指针设备时调度。InteractiveObject
 Inherited用户将指针设备从 InteractiveObject 实例上移开时调度。InteractiveObject
 Inherited用户将指针设备移动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited当鼠标滚轮滚动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited当用户使用鼠标滚轮滚动到使用 PopUpManager 打开的某个组件外部时,从该组件调度。UIComponent
 Inherited移动对象后调度。UIComponent
 Inherited当用户释放拖动手势时由拖动启动器 InteractiveObject 调度。InteractiveObject
 Inherited在将拖动对象放置到目标上且已通过对 DragManager.acceptDragDrop() 的调用接受该放置操作时,由目标 InteractiveObject 调度。InteractiveObject
 Inherited当拖动手势进入其边界时由 InteractiveObject 调度。InteractiveObject
 Inherited当拖动手势离开其边界时由 InteractiveObject 调度。InteractiveObject
 Inherited当拖动手势保持在其边界内时,由 InteractiveObject 持续调度。InteractiveObject
 Inherited在拖动操作开始时由在 DragManager.doDrag() 调用中指定为拖动启动器的 InteractiveObject 调度。InteractiveObject
 Inherited在拖动操作期间由在 DragManager.doDrag() 调用中指定为拖动启动器的 InteractiveObject 调度。InteractiveObject
 Inherited在用户为粘贴操作激活特定于平台的加速键组合或从文本上下文菜单中选择“粘贴”时调度。InteractiveObject
 Inherited在组件初始化序列开始时调度。UIComponent
 Inherited当用户将活动笔针放低经过屏幕的邻近检测阈值上时调度。InteractiveObject
 Inherited
    proximityEnd
当用户将活动笔针抬高放在屏幕的邻近检测阈值上时调度。InteractiveObject
 Inherited当用户将活动笔针移动到屏幕上但仍保留在邻近检测阈值中时调度。InteractiveObject
 Inherited
    proximityOut
当用户直接将活动笔针从此 InteractiveObject 上移开但仍保留在屏幕的邻近检测阈值中时调度。InteractiveObject
 Inherited当用户直接将活动笔针移动到此 InteractiveObject 上但仍保留在屏幕的邻近检测阈值中时调度。InteractiveObject
 Inherited当用户从此 InteractiveObject 及其任一子项中移开而仍保留在屏幕的邻近检测阈值中时调度。InteractiveObject
 Inherited当用户将活动笔针从显示列表中子项的对象树中滑过此 InteractiveObject 时(而仍保留在屏幕的邻近检测阈值中)时调度。InteractiveObject
 Inherited在用户首先在 InteractiveObject 实例上按下按钮,然后将指针设备移离 InteractiveObject 实例,释放指针设备上的按钮时调度。InteractiveObject
 Inherited当组件通过使用 removeChild()、removeChildAt()、removeElement() 或 removeElementAt() 方法作为内容子项从容器中删除后调度。UIComponent
 Inherited将要从显示列表中删除显示对象时调度。DisplayObject
 Inherited在从显示列表中直接删除显示对象或删除包含显示对象的子树时调度。DisplayObject
 Inherited[广播事件] 将要更新和呈现显示列表时调度。DisplayObject
 Inherited在调整组件大小时调度。UIComponent
 Inherited当用户在同一 InteractiveObject 上按下并释放用户指针设备的右按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited用户将指针设备从 InteractiveObject 实例上移开时调度。InteractiveObject
 Inherited用户将指针设备移动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited在用户为全选操作激活特定于平台的加速键组合或从文本上下文菜单中选择“全选”时调度。InteractiveObject
 Inherited当对象的状态从不可见变为可见时调度。UIComponent
 Inherited在放开软键盘之后立即调度。InteractiveObject
 Inherited在放开软键盘之前立即调度。InteractiveObject
 Inherited在隐藏软键盘之后立即调度。InteractiveObject
 Inherited在组件进入新状态且切换到该状态的状态转换动画已经播放完时调度。UIComponent
 Inherited在组件中断转换到当前状态从而切换到新状态时调度。UIComponent
 Inherited对象的 tabChildren 标志值发生更改时调度。InteractiveObject
 Inherited对象的 tabEnabled 标志发生更改时调度。InteractiveObject
 Inherited对象的 tabIndex 属性值发生更改时调度。InteractiveObject
 Inherited当用户输入一个或多个文本字符时调度。InteractiveObject
 Inherited要创建 ToolTip 时由组件调度。UIComponent
 Inherited已隐藏组件的 ToolTip 并要将其放弃时由组件调度。UIComponent
 Inherited要隐藏组件的 ToolTip 时由组件调度。UIComponent
 Inherited要显示组件的 ToolTip 时由组件调度。UIComponent
 Inherited显示组件的 ToolTip 时由组件调度。UIComponent
 Inherited用户将鼠标移动到设置了 toolTip 属性的组件上方后,由该组件调度。UIComponent
 Inherited当用户第一次触摸启用触摸的设备时(例如,用手指触摸配有触摸屏的移动电话或平板)调度。InteractiveObject
 Inherited当用户移除与启用触摸的设备的接触时(例如,将手指从配有触摸屏的移动电话或平板电脑上抬起)调度。InteractiveObject
 Inherited不可撤消事件,在组件结束响应 touch 交互用户操作时由组件调度。UIComponent
 Inherited不可撤消事件,在组件开始响应 touch 交互用户操作时由组件调度。UIComponent
 Inherited可撤消事件,在组件试图响应 touch 交互用户操作时由组件调度。UIComponent
 Inherited当用户触碰设备时进行调度,而且会连续调度,直到接触点被删除。InteractiveObject
 Inherited当用户将接触点从启用触摸的设备上的 InteractiveObject 实例移开时(例如,在配有触摸屏的移动电话或平板电脑上,将手指从一个显示对象拖到另一个显示对象)调度。InteractiveObject
 Inherited当用户在启用触摸的设备的 InteractiveObject 实例上移动接触点时(例如,在配有触摸屏的移动电话或平板电脑上,将手指从显示对象外的一点拖动到显示对象上的一点)调度。InteractiveObject
 Inherited当用户移动接触点,使其远离启用触摸的设备上的 InteractiveObject 实例时(例如,在配有触摸屏的移动电话或平板电脑上将一个手指从显示对象上的一点移动到显示对象外的一点)调度。InteractiveObject
 Inherited当用户在启用触摸的设备的 InteractiveObject 实例上移动接触点时(例如,在配有触摸屏的移动电话或平板电脑上,将手指从显示对象外的一点拖动到显示对象上的一点)调度。InteractiveObject
 Inherited当用户在启用触摸设备上的已启动接触的同一 InteractiveObject 实例上抬起接触点时(例如,在配有触摸屏的移动电话或平板的显示对象上的某一点处按下并释放手指)调度。InteractiveObject
 Inherited当调用了对象的 commitProperties()、measure() 和 updateDisplayList() 方法后调度(如果需要)。UIComponent
 Inherited当组件由 Validator 监控并且成功通过验证时调度。UIComponent
 Inherited当以编程方式或通过用户交互更改值时调度。UIComponent
样式

样式为常见样式,或与特定主题关联。如果为常见样式,则可以用于任何主题。如果样式与特定主题关联,则只有应用程序使用该主题时才能使用该样式。

常见样式
 样式 说明 由以下参数定义
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定主要基线对齐到的基线.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

从内容区域的上边缘到控件的基线位置的垂直距离(以像素为单位).
UIComponent
 Inherited类型: Object CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

要偏移基线的量.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定线位置的垂直或水平行进.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

从组件底边到其父容器的内容区域底边之间的垂直距离(以像素为单位).
UIComponent
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

控制在将连续文本断开为多行时允许行断开的位置.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

用于此文本的 CFF 提示的类型.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

控制文本在浮点周围的环绕方式.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

文本的颜色.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

用于此文本的数字大小写类型.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

用于此文本的数字宽度类型.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定文本的默认双向嵌入级别.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定该元素的哪条基线对齐到 alignmentBaseline 以确定元素在该行上的垂直位置.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

验证失败时,组件加亮部分的颜色.
UIComponent
 Inherited类型: Object CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定容器中第一行的基线位置.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件已启用且有焦点时文本的颜色.
GroupBase
 Inherited类型: Class CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

用于绘制焦点矩形的外观.
UIComponent
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

要使用的字体的名称或用逗号分隔的字体名称列表.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

要使用的字体查找.
GroupBase
 Inherited类型: Number 格式: Length CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

文本的高度,以像素为单位.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

确定文本是否使用斜体.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

确定文本是否使用粗体.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

从组件内容区域的中心到组件中心的水平距离(以像素为单位).
UIComponent
 Inherited类型: uint 格式: Color CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

禁用组件时文本的颜色.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10, AIR 2.5

该组件的主要交互模式.
UIComponent
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

用于将段落文本两端对齐的规则.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

段落两端对齐所用的样式.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

段落两端对齐所用的样式.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4.1  运行时版本: Flash10, AIR 1.5

指定组件的所需布局方向.
UIComponent
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定行距模型,它是行距基准和行距方向的组合.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

从组件左边到其父容器的内容区域左边之间的水平距离(以像素为单位).
UIComponent
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

控制可以在该文本中使用字体中定义的哪些连字.
GroupBase
 Inherited类型: Object CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

文本的行距控制.
GroupBase
 Inherited类型: Boolean CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

若为 true,则应用删除线(一条穿过文本中间的直线).
GroupBase
 Inherited类型: Number 格式: length CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定当列表相应侧的内边距值为 auto 时,列表开始边缘的自动缩进.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10, AIR 2.5

它控制列表项目标记相对于列表项目的位置.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10, AIR 2.5

它控制列表中项目的外观.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

文本的区域设置.
GroupBase
 Inherited类型: Number 格式: length CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

段落结束边缘要缩进的量.
GroupBase
 Inherited类型: Number 格式: length CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

段落之后要留出的空格数.
GroupBase
 Inherited类型: Number 格式: length CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

段落之前要留出的空格数.
GroupBase
 Inherited类型: Number 格式: length CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

段落开始边缘要缩进的量.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

仅适用于嵌入字体的用于该文本的呈示模式.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

从组件右边到其父容器的内容区域右边之间的水平距离(以像素为单位).
UIComponent
 Inherited类型: Boolean CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10, AIR 1.5

当此组件无效时,显示错误边框或外观
UIComponent
 Inherited类型: Boolean CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10, AIR 1.5

如果此组件无效,当用户将鼠标移到它上方时,将显示错误提示
UIComponent
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定与段落关联的制表位.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

容器内文本的对齐方式.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

两端对齐文本中段落最后一行与容器的对齐方式.
GroupBase
 Inherited类型: Number CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

文本的 Alpha(透明度)值.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

确定文本是否加下划线.
GroupBase
 Inherited类型: Number 格式: Length CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

文本第一行偏离容器左侧的距离.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

指定文本两端对齐的选项.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

确定要旋转此文本的度数.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

从组件顶边到其父容器的内容区域顶边之间的垂直距离(以像素为单位).
UIComponent
 Inherited类型: Number 格式: Time CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10.1, AIR 2.5

处于 touch 交互模式时,从发生用户交互到以可见的 down 状态显示组件,需要等待的毫秒数.
GroupBase
 Inherited类型: Object CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

要应用于每个字符左侧的间距量(手动字距调整).
GroupBase
 Inherited类型: Object CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

要应用于每个字符右侧的间距量(手动字距调整).
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

用于此文本的印刷大小写的类型.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件已启用但没有焦点时文本的颜色.
GroupBase
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

从组件内容区域的中心到组件中心的垂直距离(以像素为单位).
UIComponent
 Inherited类型: String CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

将文本导入到 TextFlow 中时压缩或保留空白.
GroupBase
 Inherited类型: Object CSS 继承:
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10.5, AIR 2.0

指定两端对齐要用的字间距.
GroupBase
Spark 主题样式
 样式 说明 由以下参数定义
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件外观使用的强调文字颜色.
GroupBase
 Inherited类型: Array 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

列表中项目使用的背景色.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件的主要颜色.
GroupBase
 Inherited类型: Number CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件内容背景的 Alpha.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

此组件内容背景的颜色.
GroupBase
 Inherited类型: Number CSS 继承: 否 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

禁用容器时的 Alpha 值.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件为焦点时焦点外框的颜色.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

鼠标位于组件上时加亮的颜色.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件的任何元件的颜色.
GroupBase
Halo 主题样式
 样式 说明 由以下参数定义
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: halo
语言版本: ActionScript 3.0  产品版本: Flex 3  运行时版本: Flash9, AIR 1.1

组件的主题颜色.
UIComponent
移动主题样式
 样式 说明 由以下参数定义
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件外观使用的强调文字颜色.
GroupBase
 Inherited类型: Array 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

列表中项目使用的背景色.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件的主要颜色.
GroupBase
 Inherited类型: Number CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件内容背景的 Alpha.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

此组件内容背景的颜色.
GroupBase
 Inherited类型: Number CSS 继承: 否 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

禁用容器时的 Alpha 值.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: mobile
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10.1, AIR 2.5

按下项呈示器时其背景的颜色

如果 downColor 设置为 undefined,将不使用 downColor.

GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件为焦点时焦点外框的颜色.
GroupBase
 Inherited类型: Number 格式: Length CSS 继承: 是 主题: mobile
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10.1, AIR 2.0

文本行之间附加的垂直空间.
GroupBase
 Inherited类型: Number CSS 继承: 是 主题: mobile
语言版本: ActionScript 3.0  产品版本: Flex 4.5  运行时版本: Flash10.1, AIR 2.0

各字符之间显示的附加像素数.
GroupBase
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: spark, mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

组件的任何元件的颜色.
GroupBase
 Inherited类型: Number CSS 继承: 是 主题: mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

文本阴影的 Alpha.
Group
 Inherited类型: uint 格式: Color CSS 继承: 是 主题: mobile
语言版本: ActionScript 3.0  产品版本: Flex 4  运行时版本: Flash10, AIR 1.5

文本阴影的颜色.
Group
效果
 效果 说明 由以下参数定义
 Inherited 触发事件: added
将组件作为子项添加到 Container 时播放。
UIComponent
 Inherited 触发事件: creationComplete
创建组件时播放。
UIComponent
 Inherited 触发事件: focusIn
组件获得键盘焦点时播放。
UIComponent
 Inherited 触发事件: focusOut
组件失去键盘焦点时播放。
UIComponent
 Inherited 触发事件: hide
组件变为不可见时播放。
UIComponent
 Inherited 触发事件: mouseDown
用户在组件上方按下鼠标按键时播放。
UIComponent
 Inherited 触发事件: mouseUp
用户在组件上方释放鼠标按键时播放。
UIComponent
 Inherited 触发事件: move
移动组件时播放。
UIComponent
 Inherited 触发事件: removed
从 Container 中删除组件时播放。
UIComponent
 Inherited 触发事件: resize
调整组件大小时播放。
UIComponent
 Inherited 触发事件: rollOut
用户将鼠标指针滚离组件上方时播放。
UIComponent
 Inherited 触发事件: rollOver
用户将鼠标指针滚动到组件上方时播放。
UIComponent
 Inherited 触发事件: show
组件变为可见时播放。
UIComponent
公共常量
 常量由以下参数定义
属性详细信息

anchorColumnIndex

属性
anchorColumnIndex:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

下一个结合 Shift 键选择的锚点的列索引。锚点是最近选定的项。它在网格中选择多个项时定义锚点项。当您选择多个项时,这一组项从锚点扩展至插入标记项。

网格事件处理函数应使用此属性记录最近未结合 Shift 键的鼠标按下或键盘事件的位置,该事件定义下一个潜在移动选择的一端。尖号索引定义另一端。

默认值为 0。

此属性可用作数据绑定的源。修改此属性后,将调度 anchorColumnIndexChanged 事件。



实现
    public function get anchorColumnIndex():int
    public function set anchorColumnIndex(value:int):void

相关 API 元素

anchorRowIndex

属性 
anchorRowIndex:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

下一个结合 Shift 键选择的锚点的行索引。锚点是最近选定的项。它在网格中选择多个项时定义锚点项。当您选择多个项时,这一组项从锚点扩展至插入标记项。

网格事件处理函数应使用此属性记录最近未结合 Shift 键的鼠标按下或键盘事件的位置,该事件定义下一个潜在移动选择的一端。尖号索引定义另一端。

默认值为 0。

此属性可用作数据绑定的源。修改此属性后,将调度 anchorRowIndexChanged 事件。



实现
    public function get anchorRowIndex():int
    public function set anchorRowIndex(value:int):void

相关 API 元素

caretColumnIndex

属性 
caretColumnIndex:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 showCaretIndicatortrue,则为 caretIndicator 的列索引。

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则指示符将占用整行,并忽略 caretColumnIndex。如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则 caretIndicator 将占用指定单元格。

caretColumnIndex 设置为 -1 表示未定义列索引且不显示单元格插入标记。

默认值为 -1。

此属性可用作数据绑定的源。修改此属性后,将调度 caretColumnIndexChanged 事件。



实现
    public function get caretColumnIndex():int
    public function set caretColumnIndex(value:int):void

caretIndicator

属性 
caretIndicator:IFactory

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则为针对插入标记行显示的单个可视元素;如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则为针对插入标记单元格显示的可视元素。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 caretIndicatorChanged 事件。



实现
    public function get caretIndicator():IFactory
    public function set caretIndicator(value:IFactory):void

caretRowIndex

属性 
caretRowIndex:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 showCaretIndicatortrue,则为 caretIndicator 的行索引。如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则指示符将占用整行,并忽略 caretColumnIndex 属性。如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则 caretIndicator 将占用指定单元格。

caretRowIndex 设置为 -1 表示未定义行索引且不显示插入标记。

默认值为 -1。

此属性可用作数据绑定的源。修改此属性后,将调度 caretRowIndexChanged 事件。



实现
    public function get caretRowIndex():int
    public function set caretRowIndex(value:int):void

columns

属性 
columns:IList

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

由该网格显示的 GridColumn 对象列表。每列选择要显示的不同数据提供程序项属性。

GridColumn 对象仅可以显示在单个 Grid 控件的 columns 中。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 columnsChanged 事件。



实现
    public function get columns():IList
    public function set columns(value:IList):void

相关 API 元素

columnSeparator

属性 
columnSeparator:IFactory

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

显示在各列之间的可视元素。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 columnSeparatorChanged 事件。



实现
    public function get columnSeparator():IFactory
    public function set columnSeparator(value:IFactory):void

dataGrid

属性 
dataGrid:DataGrid

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果该 Grid 用作网格外观部件,则为 DataGrid 控件。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 dataGridChanged 事件。



实现
    public function get dataGrid():DataGrid
    public function set dataGrid(value:DataGrid):void

dataProvider

属性 
dataProvider:IList

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

与网格中的行对应的数据项的列表。每个网格列与要在网格单元格中显示属性的数据项的属性相关联。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 dataProviderChanged 事件。



实现
    public function get dataProvider():IList
    public function set dataProvider(value:IList):void

相关 API 元素

dataTipField

属性 
dataTipField:String

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

数据提供程序中显示为数据提示的字段名称。默认情况下,如果 showDataTipstrue,则关联的网格控件在每个数据提供程序项中查找名为 label 的属性并进行显示。然而,如果数据提供程序不包含 label 属性,则可以设置 dataTipField 属性以指定其它属性名称。例如,在用户查看数据库中包含的一组用户名时,可以将值设置为“FullName”。

GridColumn.dataTipField 的优先级比此属性高。

如果此列或其网格指定了 dataTipFunction 属性的值,则忽略 dataTipField 属性。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 dataTipFieldChanged 事件。



实现
    public function get dataTipField():String
    public function set dataTipField(value:String):void

dataTipFunction

属性 
dataTipFunction:Function

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

指定在数据提供程序每个项目上运行的回调函数,以确定其数据提示。此属性由 itemToDataTip 方法使用。

默认情况下,如果 showDataTipstrue,则该列在每个数据提供程序项中查找名为 label 的属性,并将其显示为它的数据提示。不过,某些数据提供程序没有 label 属性,也没有其它可用于显示行中数据的属性。

例如,您具有包含 lastName 和 firstName 字段的数据提供程序,但您希望将全名显示为数据提示。可以为 dataTipFunction 属性指定一个函数,该函数返回包含这两个字段值的单个 String。还可以使用 dataTipFunction 属性来处理格式和本地化。

dataTipFunction 函数的签名必须与以下内容相匹配:

dataTipFunction(item:Object, column:GridColumn):String
item 参数为整个行的数据提供程序项。第二个参数是此列对象。

典型的函数可能连接项的 firstName 和 lastName 属性,或对 Date 值属性设置某种自定义格式。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 dataTipFunctionChanged 事件。



实现
    public function get dataTipFunction():Function
    public function set dataTipFunction(value:Function):void

hoverColumnIndex

属性 
hoverColumnIndex:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 showHoverIndicatortrue,则指定 hoverIndicator 的列索引。如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则指示符将占用整行,并忽略 hoverColumnIndex。如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则 hoverIndicator 将占用指定单元格。

hoverColumnIndex 设置为 -1(默认值)表示未定义列索引且不显示单元格悬停指示符。

默认值为 -1。

此属性可用作数据绑定的源。修改此属性后,将调度 hoverColumnIndexChanged 事件。



实现
    public function get hoverColumnIndex():int
    public function set hoverColumnIndex(value:int):void

hoverIndicator

属性 
hoverIndicator:IFactory

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS。为鼠标下的行显示的单个可视元素。如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则为单元格的可视元素。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 hoverIndicatorChanged 事件。



实现
    public function get hoverIndicator():IFactory
    public function set hoverIndicator(value:IFactory):void

hoverRowIndex

属性 
hoverRowIndex:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 showHoverIndicatortrue,则指定 hoverIndicator 的列索引。如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则指示符将占用整行,并忽略 hoverColumnIndex。如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则 hoverIndicator 将占用指定单元格。

hoverRowIndex 设置为 -1(默认值)表示未定义行索引且不显示悬停指示符。

默认值为 -1。

此属性可用作数据绑定的源。修改此属性后,将调度 hoverRowIndexChanged 事件。



实现
    public function get hoverRowIndex():int
    public function set hoverRowIndex(value:int):void

itemRenderer

属性 
itemRenderer:IFactory

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

项呈示器,用于不指定项呈示器的列。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 itemRendererChanged 事件。



实现
    public function get itemRenderer():IFactory
    public function set itemRenderer(value:IFactory):void

preserveSelection

属性 
preserveSelection:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果为 true,数据提供程序刷新其集合时会保留选定内容。因为此刷新需要保存选定内容中的每一项,所以如果选定内容的大小很大,则不希望执行此操作。

默认值为 true。



实现
    public function get preserveSelection():Boolean
    public function set preserveSelection(value:Boolean):void

requestedColumnCount

属性 
requestedColumnCount:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

此网格的测量宽度足以显示前面的 requestedColumnCount 个列。如果 requestedColumnCount 为 -1,则测量宽度足以显示所有列。

如果已显式设置网格的实际大小,则此属性不起作用。

默认值为 -1。



实现
    public function get requestedColumnCount():int
    public function set requestedColumnCount(value:int):void

requestedMaxRowCount

属性 
requestedMaxRowCount:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

此网格的测量高度足以显示至多 requestedMaxRowCount 个行。

如果以下任一项为 true,则此属性无效:

  • 已设置 requestedRowCount
  • 已显式设置网格的实际大小。

默认值为 10。



实现
    public function get requestedMaxRowCount():int
    public function set requestedMaxRowCount(value:int):void

requestedMinColumnCount

属性 
requestedMinColumnCount:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

此网格的测量宽度足以显示至少 requestedMinColumnCount 个列。

如果以下任一项为 true,则此属性无效:

  • 已设置 requestedColumnCount
  • 已显式设置网格的实际大小。
  • 网格位于 Scroller 组件内。

默认值为 -1。



实现
    public function get requestedMinColumnCount():int
    public function set requestedMinColumnCount(value:int):void

requestedMinRowCount

属性 
requestedMinRowCount:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

此网格的测量高度足以至少显示 requestedMinRowCount 个行。

如果以下任一项为 true,则此属性无效:

  • 已设置 requestedRowCount
  • 已显式设置网格的实际大小。

默认值为 -1。



实现
    public function get requestedMinRowCount():int
    public function set requestedMinRowCount(value:int):void

requestedRowCount

属性 
requestedRowCount:int

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 2.5

此网格的测量高度足以显示前面的 requestedRowCount 个行。

如果 requestedRowCount 为 -1,则测量大小足以显示所有布局元素。

如果已显式设置网格的实际大小,则此属性不起作用。

默认值为 -1。



实现
    public function get requestedRowCount():int
    public function set requestedRowCount(value:int):void

requireSelection

属性 
requireSelection:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果为 trueselectionMode 属性不是 GridSelectionMode.NONE,则必须始终在网格中选中某一项。

默认值为 false。



实现
    public function get requireSelection():Boolean
    public function set requireSelection(value:Boolean):void

resizableColumns

属性 
resizableColumns:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

指示用户能否更改列的尺寸。 如果为 true,则用户可以通过在标题单元格之间拖动网格线来伸展或缩短 DataGrid 控件的列。如果为 true,则还必须将单个列的 resizable 设置为 false 以防止用户调整特定列的大小。

默认值为 true。

此属性可用作数据绑定的源。修改此属性后,将调度 resizableColumnsChanged 事件。



实现
    public function get resizableColumns():Boolean
    public function set resizableColumns(value:Boolean):void

相关 API 元素

rowBackground

属性 
rowBackground:IFactory

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

为每行显示背景的可视元素。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 rowBackgroundChanged 事件。



实现
    public function get rowBackground():IFactory
    public function set rowBackground(value:IFactory):void

rowHeight

属性 
rowHeight:Number

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 variableRowHeightfalse,则此属性指定每行的实际高度(以像素为单位)。

如果 variableRowHeighttrue,将此属性的值用作尚未滚动到可视范围内的行的估计高度,而不是使用 typicalItem 配置的呈示器的首选高度。同样,当 Grid 使用空行填充其显示时,此属性指定空行的高度。

如果 variableRowHeightfalse,则此属性的默认值是为 typicalItem 创建的每列呈示器的最大首选高度。

此属性可用作数据绑定的源。修改此属性后,将调度 rowHeightChanged 事件。



实现
    public function get rowHeight():Number
    public function set rowHeight(value:Number):void

rowSeparator

属性 
rowSeparator:IFactory

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

显示在各行之间的可视元素。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 rowSeparatorChanged 事件。



实现
    public function get rowSeparator():IFactory
    public function set rowSeparator(value:IFactory):void

selectedCell

属性 
selectedCell:CellPosition

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则返回第一个选定单元格(起点为 0 行 0 列),并在移动到下一行之前处理行中的每列。

当用户通过与控件进行交互更改选定内容时,控件将调度 selectionChange 事件。当用户以编程方式更改选定内容时,控件将分派 valueCommit 事件。

此属性可用于初始化或绑定到 MXML 标记中的选择。setSelectedCell() 方法应用于程序选择更新,例如编写 keyboard 或 mouse 事件处理函数时。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 valueCommit 事件。



实现
    public function get selectedCell():CellPosition
    public function set selectedCell(value:CellPosition):void

selectedCells

属性 
selectedCells:Vector.<CellPosition>

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则返回表示网格中选定单元格位置的 CellPosition 对象的 Vector。

当用户通过与控件进行交互更改选定内容时,控件将调度 selectionChange 事件。当用户以编程方式更改选定内容时,控件将分派 valueCommit 事件。

此属性可用于初始化或绑定到 MXML 标记中的选择。setSelectedCell() 方法应用于程序选择更新,例如编写 keyboard 或 mouse 事件处理函数时。

默认值为空 Vector.<CellPosition>

此属性可用作数据绑定的源。修改此属性后,将调度 valueCommit 事件。



实现
    public function get selectedCells():Vector.<CellPosition>
    public function set selectedCells(value:Vector.<CellPosition>):void

selectedIndex

属性 
selectedIndex:int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则返回第一个选定行的 rowIndex。

当用户通过与控件进行交互更改选定内容时,控件将调度 selectionChange 事件。当用户以编程方式更改选定内容时,控件将分派 valueCommit 事件。

此属性可用于初始化或绑定到 MXML 标记中的选择。setSelectedCell() 方法应用于程序选择更新,例如编写 keyboard 或 mouse 事件处理函数时。

默认值为 -1。

此属性可用作数据绑定的源。修改此属性后,将调度 valueCommit 事件。



实现
    public function get selectedIndex():int
    public function set selectedIndex(value:int):void

selectedIndices

属性 
selectedIndices:Vector.<int>

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则返回选定行索引的 Vector。对于所有其它选择模式,此方法不起作用。

当用户通过与控件进行交互更改选定内容时,控件将调度 selectionChange 事件。当用户以编程方式更改选定内容时,控件将分派 valueCommit 事件。

此属性可用于初始化或绑定到 MXML 标记中的选择。setSelectedCell() 方法应用于程序选择更新,例如编写 keyboard 或 mouse 事件处理函数时。

>

默认值为空 Vector.<int>

此属性可用作数据绑定的源。修改此属性后,将调度 valueCommit 事件。



实现
    public function get selectedIndices():Vector.<int>
    public function set selectedIndices(value:Vector.<int>):void

相关 API 元素

selectedItem

属性 
selectedItem:Object

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则返回当前选定或 undefined(如果未选定任何行)的数据提供程序中的项。

当用户通过与控件进行交互更改选定内容时,控件将调度 selectionChange 事件。当用户以编程方式更改选定内容时,控件将分派 valueCommit 事件。

此属性可用于初始化或绑定到 MXML 标记中的选择。setSelectedCell() 方法应用于程序选择更新,例如编写 keyboard 或 mouse 事件处理函数时。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 valueCommit 事件。



实现
    public function get selectedItem():Object
    public function set selectedItem(value:Object):void

相关 API 元素

selectedItems

属性 
selectedItems:Vector.<Object>

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则返回当前选择的 dataProvider 项目的 Vector。

当用户通过与控件进行交互更改选定内容时,控件将调度 selectionChange 事件。当用户以编程方式更改选定内容时,控件将分派 valueCommit 事件。

此属性可用于初始化或绑定到 MXML 标记中的选择。setSelectedCell() 方法应用于程序选择更新,例如编写 keyboard 或 mouse 事件处理函数时。

默认值为空 Vector.<Object>

此属性可用作数据绑定的源。修改此属性后,将调度 valueCommit 事件。



实现
    public function get selectedItems():Vector.<Object>
    public function set selectedItems(value:Vector.<Object>):void

相关 API 元素

selectionIndicator

属性 
selectionIndicator:IFactory

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则为针对每个选定行显示的可视元素;如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则为针对每个选定单元格显示的可视元素。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 selectionIndicatorChanged 事件。



实现
    public function get selectionIndicator():IFactory
    public function set selectionIndicator(value:IFactory):void

selectionLength

属性 
selectionLength:int  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则返回所选行的数量;如果 selectionModeGridSelectionMode.SINGLE_CELLSGridSelectionMode.MULTIPLE_CELLS,则返回所选单元格的数量。

默认值为 0。

此属性可用作数据绑定的源。修改此属性后,将调度 valueCommit 事件。



实现
    public function get selectionLength():int

selectionMode

属性 
selectionMode:String

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

控件的选择模式。可能的值是:GridSelectionMode.MULTIPLE_CELLSGridSelectionMode.MULTIPLE_ROWSGridSelectionMode.NONEGridSelectionMode.SINGLE_CELLGridSelectionMode.SINGLE_ROW

更改 selectionMode 会导致清除当前选定内容,并将 caretRowIndex 和 caretColumnIndex 设置为 -1。

默认值为 GridSelectionMode.SINGLE_ROW。

此属性可用作数据绑定的源。修改此属性后,将调度 selectionModeChanged 事件。



实现
    public function get selectionMode():String
    public function set selectionMode(value:String):void

相关 API 元素

showDataTips

属性 
showDataTips:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果为 true,则显示所有可见单元格的 dataTip。如果为 false(默认值),则仅当列的 showDataTips 属性为 true 时才显示 dataTip。

默认值为 false。

此属性可用作数据绑定的源。修改此属性后,将调度 showDataTipsChanged 事件。



实现
    public function get showDataTips():Boolean
    public function set showDataTips(value:Boolean):void

typicalItem

属性 
typicalItem:Object

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

网格的布局确保未指定宽度的列足以显示此默认数据提供程序项的项呈示器。如果未指定典型项,则使用第一个数据提供程序项。

限制:如果 typicalItem 是 IVisualItem,则它不能同时是数据提供程序的成员。

默认值为 null。

此属性可用作数据绑定的源。修改此属性后,将调度 typicalItemChanged 事件。



实现
    public function get typicalItem():Object
    public function set typicalItem(value:Object):void

variableRowHeight

属性 
variableRowHeight:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果为 true,则每行的高度是到目前为止显示的单元格首选高度的最大值。

如果为 false,则每行的高度恰好是 rowHeight 属性的值。如果未指定 rowHeight,则每行的高度由 typicalItem 属性定义。

默认值为 false。

此属性可用作数据绑定的源。修改此属性后,将调度 variableRowHeightChanged 事件。



实现
    public function get variableRowHeight():Boolean
    public function set variableRowHeight(value:Boolean):void
构造函数详细信息

Grid

()构造函数
public function Grid()

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

构造函数。

方法详细信息

addSelectedCell

()方法
public function addSelectedCell(rowIndex:int, columnIndex:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,将单元格添加到选定内容并将尖号位置设置为该单元格。对于所有其它选择模式,此方法不起作用。

rowIndex 是包含所选单元格的项的数据提供程序中的索引。columnIndex 是包含所选单元格的列的 columns 中的索引。

参数

rowIndex:int — 单元格的从零开始的行索引。
 
columnIndex:int — 单元格的从零开始的列索引。

返回
Boolean — 如果未引发任何错误,则为 true。如果 rowIndexcolumnIndex 无效,或 selectionMode 无效,则为 false

相关 API 元素

addSelectedIndex

()方法 
public function addSelectedIndex(rowIndex:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.MULTIPLE_ROWS,将此行添加到选定内容并将尖号位置设置为此行。对于所有其它选择模式,此方法不起作用。

rowIndex 是包含所选单元格的项的数据提供程序中的索引。

参数

rowIndex:int — 单元格的从零开始的行索引。

返回
Boolean — 如果未引发任何错误,则为 true。如果 index 无效或 selectionMode 无效,则为 false

相关 API 元素

clearSelection

()方法 
public function clearSelection():Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionMode 不是 GridSelectionMode.NONE,则删除所有所选行和单元格。删除尖号并设置初始项目的锚点。

返回
Boolean — 如果选定内容更改,则为 true;如果之前没进行任何选择,则为 false

ensureCellIsVisible

()方法 
public function ensureCellIsVisible(rowIndex:int = -1, columnIndex:int = -1):void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果需要,设置 verticalScrollPositionhorizontalScrollPosition 属性以使指定的单元格完全可见。如果 rowIndex 为 -1,且指定了 columnIndex,则只需调整 horizontalScrollPosition 以使指定的列可见。如果 columnIndex 为 -1,且指定了 rowIndex,则只需调整 verticalScrollPosition 以使指定的行可见。

参数

rowIndex:int (default = -1) — 项呈示器的单元格的从零开始的行索引,或 -1 以指定一列。
 
columnIndex:int (default = -1) — 项呈示器的单元格的从零开始的列索引,或 -1 以指定一行。

getCellAt

()方法 
public function getCellAt(x:Number, y:Number):CellPosition

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回在指定网格坐标处重叠像素的单元格的行和列索引。如果不存在这样的单元格,则返回 null。

以下示例函数使用此方法计算网格单元格的 dataField 的值。

      function getCellData(x:Number, y:Number):Object
      {
          var cell:CellPosition = getCellAt(x, y);
          if (!cell)
              return null;
          var GridColumn:column = grid.columns.getItemAt(cell.columnIndex);
          return grid.dataProvider.getItemAt(cell.rowIndex)[column.dataField];
      }
      

参数

x:Number — 相对于网格的像素的 x 坐标。
 
y:Number — 相对于网格的像素的 y 坐标。

返回
CellPosition — 单元格位置,或为 null。

getCellBounds

()方法 
public function getCellBounds(rowIndex:int, columnIndex:int):Rectangle

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回指定单元格的当前像素范围,如果不存在这样的单元格,则返回 null。报告网格坐标中的单元格范围。

如果指定行的所有列和位于该行之前的所有行都尚未滚动到视图,则基于列的所有 typicalItem 返回的范围可能只是一个近似值。

参数

rowIndex:int — 行的从零开始的索引。
 
columnIndex:int — 列的从零开始的索引。

返回
Rectangle — 表示单元格的像素范围的 Rectangle 或 null。

getCellsAt

()方法 
public function getCellsAt(x:Number, y:Number, w:Number, h:Number):Vector.<CellPosition>

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回 CellPosition 对象的矢量,该对象的 rowIndexcolumnIndex 属性指定与指定网格区域重叠的单元格的行索引和列索引。如果不存在这样的单元格,则返回空矢量。

参数

x:Number — 区域原点处的像素的 x 坐标,相对于网格。
 
y:Number — 区域原点处的像素的 x 坐标,相对于网格。
 
w:Number — 区域的宽度,以像素为单位。
 
h:Number — 区域的高度,以像素为单位。

返回
Vector.<CellPosition> — 对象的矢量,例如 Vector.<Object>([{rowIndex:0, columnIndex:0}, ...])

getCellX

()方法 
public function getCellX(rowIndex:int, columnIndex:int):Number

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回指定单元格的原点的 X 坐标。如果不需要单元格的整个边界,此方法比 getCellBounds().x 更有效。

如果指定行的所有列和位于该行之前的所有行都尚未滚动到可视范围内,则根据列的所有 typicalItem,返回的值可能只是一个近似值。

参数

rowIndex:int — 行的从零开始的索引。
 
columnIndex:int — 列的从零开始的索引。

返回
Number — 所指定单元格的原点的 X 坐标。

getCellY

()方法 
public function getCellY(rowIndex:int, columnIndex:int):Number

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回指定单元格的原点的 Y 坐标。如果不需要单元格的整个边界,此方法比 getCellBounds().y 更有效。

如果指定行的所有列和位于该行之前的所有行都尚未滚动到可视范围内,则根据列的所有 typicalItem,返回的值可能只是一个近似值。

参数

rowIndex:int — 行的从零开始的索引。
 
columnIndex:int — 列的从零开始的索引。

返回
Number — 所指定单元格的原点的 Y 坐标。

getColumnBounds

()方法 
public function getColumnBounds(columnIndex:int):Rectangle

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回指定列的当前像素范围,如果不存在这样的列,则返回 null。报告网格坐标中的列范围。

如果指定列中的所有单元格尚未滚动到视图,则基于列的 typicalItem 返回的范围可能只是一个近似值。

参数

columnIndex:int — 列的从零开始的索引。

返回
Rectangle — 表示列的像素范围的 Rectangle 或 null。

getColumnIndexAt

()方法 
public function getColumnIndexAt(x:Number, y:Number):int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回对应于指定坐标的列索引;如果坐标超出边界,则返回 -1。相对于网格解析坐标。

如果网格的所有列或行尚未滚动到视图,则基于列的所有 typicalItem 返回的索引可能只是一个近似值。

参数

x:Number — 相对于网格的像素的 x 坐标。
 
y:Number — 相对于网格的像素的 y 坐标。

返回
int — 列索引;如果坐标超出边界,则返回 -1。

getColumnWidth

()方法 
public function getColumnWidth(columnIndex:int):Number

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回指定列的宽度。如果不需要单元格的整个边界,此方法比 getColumnBounds().width 更有效。

如果未定义指定列的宽度属性,则返回的值可能只是一个近似值。只有列滚动到可视范围内之后,才会计算实际列宽。

参数

columnIndex:int — 列的从零开始的索引。

返回
Number — 所指定列的宽度。

getItemRendererAt

()方法 
public function getItemRendererAt(rowIndex:int, columnIndex:int):IGridItemRenderer

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果请求的项呈示器可见,则返回对指定单元格当前显示的项呈示器的引用。请注意,一旦返回的项呈示器不再可见,则会将其回收且重置其属性。

如果请求的项呈示器不可见,则每次调用此方法时创建一个新的项呈示器。新的项呈示器不可见

如果指定的列不具有明显的宽度,则该单元格的宽度基于 typicalItem。如果尚未指定或未测量 typicalItem,则项呈示器的宽度默认为 150

如果网格属性 variableRowHeighttrue(默认值),且未对指定行缓存整个行高度,则项呈示器的高度基于 typicalItem。如果尚未指定或未测量 typicalItem,则项呈示器的高度默认为其首选高度。

参数

rowIndex:int — 项呈示器的单元格的从零开始的行索引。
 
columnIndex:int — 项呈示器的单元格的从零开始的列索引。

返回
IGridItemRenderer — 项呈示器;如果单元格位置无效,则为 null。

getRowBounds

()方法 
public function getRowBounds(rowIndex:int):Rectangle

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回指定行的当前像素范围,如果不存在这样的行,则返回 null。报告网格坐标中的行范围。

如果指定行的所有列和位于该行之前的所有行都尚未滚动到视图,则基于列的所有 typicalItem 返回的范围可能只是一个近似值。

参数

rowIndex:int — 行的从零开始的索引。

返回
Rectangle — 表示行的像素范围的 Rectangle 或 null。

getRowIndexAt

()方法 
public function getRowIndexAt(x:Number, y:Number):int

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回对应于指定坐标的行索引;如果坐标超出边界,则返回 -1。相对于网格解析坐标。

如果网格的所有列或行尚未滚动到视图,则基于列的所有 typicalItem 返回的索引可能只是一个近似值。

参数

x:Number — x 坐标。
 
y:Number — y 坐标。

返回
int — 对应于指定的坐标的行索引。

getVisibleColumnIndices

()方法 
public function getVisibleColumnIndices():Vector.<int>

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回当前可见列的索引。请注意,第一列和最后一列的项呈示器可能只有部分可见。按矢量内容的显示顺序返回这些内容。

以下示例函数使用此方法计算可见 GridColumn 对象的矢量。

      function getVisibleColumns():Vector.<GridColumn>
      {
          var visibleColumns = new Vector.<GridColumn>;
          for each (var columnIndex:int in grid.getVisibleColumnIndices())
              visibleColumns.push(grid.columns.getItemAt(columnIndex));
          return visibleColumns;
      }
      

返回
Vector.<int> — 可见列索引的矢量。

getVisibleRowIndices

()方法 
public function getVisibleRowIndices():Vector.<int>

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

返回数据提供程序索引和当前可见行的内边距索引。大于或等于 dataProvider 长度的索引代表内边距行。请注意,第一行和最后一行的项呈示器可能只有部分可见。按矢量内容的显示顺序返回这些内容。

返回
Vector.<int> — 可见行索引的矢量。

invalidateCell

()方法 
public function invalidateCell(rowIndex:int, columnIndex:int):void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果指定的单元格可见,则它会重新显示。如果 variableRowHeight=true,则执行此操作可能会导致对应行的高度发生更改。

如果 columnIndex 为 -1,则整个行无效。同样,如果 rowIndex 为 -1,则整个列无效。

当对位于 rowIndex 处的数据提供程序项的任何方面所做的更改可能会影响指定单元格的显示方式时,应调用该方法。调用该方法与调用 dataProvider.itemUpdated() 方法类似,后者建议 Grid 显示指定项的所有行应重新显示。使用此方法可以相对提高效率,因为它将更改的范围缩小到单个单元格。

参数

rowIndex:int — 发生更改的单元格的从零开始的行索引,或为 -1。
 
columnIndex:int — 发生更改的单元格的从零开始的列索引,或为 -1。

invalidateTypicalItemRenderer

()方法 
public function invalidateTypicalItemRenderer():void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 1.5

清除基于 typicalItem 属性的缓存列宽数据,并请求新的布局传递。如果应该由 Grid 的布局所反映的 typicalItem 的某些方面发生了更改,则调用该方法。

如果直接对 typicalItem 进行更改,则会自动调用该方法。这说明如果属性设置为某一新值,则该新值与当前值不具有“==”的关系。

isCellVisible

()方法 
public function isCellVisible(rowIndex:int = -1, columnIndex:int = -1):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果指定的单元格至少部分可见,则返回 true。如果 columnIndex == -1,则在指定的行至少部分可见时返回 true。如果 rowIndex == -1,则指定列至少部分可见时返回 true。如果 columnIndexrowIndex 同时为 -1,则返回 false

参数

rowIndex:int (default = -1) — 项呈示器的单元格的从零开始的行索引。
 
columnIndex:int (default = -1) — 项呈示器的单元格的从零开始的列索引。

返回
Boolean — 如果指定的单元格(或行,如果 columnIndex == -1)至少部分可见,则为 true

removeSelectedCell

()方法 
public function removeSelectedCell(rowIndex:int, columnIndex:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,删除选定内容中的单元格并将尖号位置设置为该单元格。对于所有其它选择模式,此方法不起作用。

rowIndex 是包含所选单元格的项的数据提供程序中的索引。columnIndex 是包含所选单元格的列的 columns 中的索引。

参数

rowIndex:int — 单元格的从零开始的行索引。
 
columnIndex:int — 单元格的从零开始的列索引。

返回
Boolean — 如果未引发任何错误,则为 true。如果 rowIndexcolumnIndex 无效,或 selectionMode 无效,则为 false

相关 API 元素

removeSelectedIndex

()方法 
public function removeSelectedIndex(rowIndex:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,删除选定内容中的此行并将尖号位置设置为此行。对于所有其它选择模式,此方法不起作用。

rowIndex 是包含所选单元格的项的数据提供程序中的索引。

参数

rowIndex:int — 单元格的从零开始的行索引。

返回
Boolean — 如果未引发任何错误,则为 true。如果 index 无效或 selectionMode 无效,则为 false

相关 API 元素

selectAll

()方法 
public function selectAll():Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.MULTIPLE_ROWS,选择所有行并删除插入标记;如果 selectionModeGridSelectionMode.MULTIPLE_CELLS,选择所有单元格并删除插入标记。对于所有其它选择模式,此方法不起作用。

如果调用此方法后向 dataProvider 添加项目或添加了 columns,将选择新的行或新列中的单元格。

发生以下任一情况时该隐式“全选”模式将结束:

  • 使用 clearSelection 清除选定内容
  • 使用 setSelectedCellsetSelectedCellssetSelectedIndexselectIndices 之一重置选定内容
  • dataProvider 已刷新且 preserveSelection 为 false
  • dataProvider 已重置
  • columns 已刷新,preserveSelectionfalseselectionModeGridSelectionMode.MULTIPLE_CELLS
  • columns 已重置且 selectionModeGridSelectionMode.MULTIPLE_CELLS

返回
Boolean — 如果选定内容发生更改,则为 true

相关 API 元素

selectCellRegion

()方法 
public function selectCellRegion(rowIndex:int, columnIndex:int, rowCount:uint, columnCount:uint):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.MULTIPLE_CELLS,则将选定内容设置为单元格区域中的所有单元格并将尖号位置设置为单元格区域中的最后一个单元格。对于所有其它选择模式,此方法不起作用。

rowIndex 是包含单元格区域的原点的项的数据提供程序中的索引。columnIndex 是包含单元格区域的原点的列的 columns 中的索引。

如果单元格区域没有完全包含在网格中,此方法不起作用。

参数

rowIndex:int — 单元格区域原点的从零开始的行索引。
 
columnIndex:int — 单元格区域原点的从零开始的列索引。
 
rowCount:uint — 要包含在单元格区域中的行数,从 rowIndex 开始。
 
columnCount:uint — 要包含在单元格区域中的列数,从 columnIndex 开始。

返回
Boolean — 如果未引发任何错误,则为 true。如果单元格区域无效或 selectionMode 无效,则为 false

相关 API 元素

selectIndices

()方法 
public function selectIndices(rowIndex:int, rowCount:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.MULTIPLE_ROWS,则将选定内容设置为指定行并将尖号位置设置为 endRowIndex。对于所有其它选择模式,此方法不起作用。

每个索引表示要包含在选定内容中的数据提供程序中的一项。

参数

rowIndex:int — 选定内容中第一行的从零开始的行索引。
 
rowCount:int — 选定内容中的行数。

返回
Boolean — 如果未引发任何错误,则为 true。如果所有索引都无效或 startRowIndex 大于 endRowIndexselectionMode 无效,则为 false

相关 API 元素

selectionContainsCell

()方法 
public function selectionContainsCell(rowIndex:int, columnIndex:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS 且单元格位于当前选定内容中,则返回 true

rowIndex 必须介于 0 和数据提供程序的长度之间。columnIndex 必须介于 0 和 columns 的长度之间。

参数

rowIndex:int — 单元格的从零开始的行索引。
 
columnIndex:int — 单元格的从零开始的列索引。

返回
Boolean — 如果当前选定内容包含单元格,则返回 true

相关 API 元素

selectionContainsCellRegion

()方法 
public function selectionContainsCellRegion(rowIndex:int, columnIndex:int, rowCount:int, columnCount:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.MULTIPLE_CELLS 且单元格区域中的单元格位于当前选定内容中,则返回 true

rowIndex 必须介于 0 和数据提供程序的长度之间。columnIndex 必须介于 0 和 columns 的长度之间。

参数

rowIndex:int — 单元格的从零开始的行索引。
 
columnIndex:int — 单元格的从零开始的列索引。
 
rowCount:int — 要包含在单元格区域中的行数,从 rowIndex 开始。
 
columnCount:int — 要包含在单元格区域中的列数,从 columnIndex 开始。

返回
Boolean — 如果当前选定内容包含单元格区域中的所有单元格,则返回 true

相关 API 元素

selectionContainsIndex

()方法 
public function selectionContainsIndex(rowIndex:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWSindex 处的行位于当前选定内容中,则返回 true

rowIndex 是包含所选单元格的项的数据提供程序中的索引。

参数

rowIndex:int — 行的从零开始的行索引。

返回
Boolean — 如果选定内容包含此行,则返回 true

相关 API 元素

selectionContainsIndices

()方法 
public function selectionContainsIndices(rowIndices:Vector.<int>):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.MULTIPLE_ROWSindices 中的行位于当前选定内容中,则返回 true

参数

rowIndices:Vector.<int> — 要包含在选定内容中的从零开始的行索引的矢量。

返回
Boolean — 如果当前选定内容包含这些行,则返回 true

相关 API 元素

setSelectedCell

()方法 
public function setSelectedCell(rowIndex:int, columnIndex:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_CELLGridSelectionMode.MULTIPLE_CELLS,则将选定内容和尖号位置设置为此单元格。对于所有其它选择模式,此方法不起作用。

rowIndex 是包含所选单元格的项的数据提供程序中的索引。columnIndex 是包含所选单元格的列的 columns 中的索引。

参数

rowIndex:int — 单元格的从零开始的行索引。
 
columnIndex:int — 单元格的从零开始的列索引。

返回
Boolean — 如果未引发任何错误,则为 true。如果 rowIndexcolumnIndex 无效,或 selectionMode 无效,则为 false

相关 API 元素

setSelectedIndex

()方法 
public function setSelectedIndex(rowIndex:int):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果 selectionModeGridSelectionMode.SINGLE_ROWGridSelectionMode.MULTIPLE_ROWS,则将选定内容和尖号位置设置为此行。对于所有其它选择模式,此方法不起作用。

rowIndex 是包含所选单元格的项的数据提供程序中的索引。

参数

rowIndex:int — 单元格的从零开始的行索引。

返回
Boolean — 如果未引发任何错误,则为 true。如果 index 无效,或 selectionMode 无效,则为 false

相关 API 元素

事件详细信息

caretChange

事件
事件对象类型: spark.events.GridCaretEvent
属性 GridCaretEvent.type = spark.events.GridCaretEvent.CARET_CHANGE

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

插入标记更改后调度。

GridSelectionEvent.CARET_CHANGE 常量为 caretChange 事件定义事件对象的 type 属性的值,指示当前尖号位置刚刚更改。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButton 为 currentTarget 的值。
newColumnIndex尖号位置更改后的从零开始的列索引。如果 selectionMode 基于行,则为 -1。
newRowIndex尖号位置更改后的从零开始的行索引。
oldColumnIndex尖号位置更改前的从零开始的列索引。如果 selectionMode 基于行,则为 -1。
oldRowIndex尖号位置更改前的从零开始的行索引。
target调度该事件的 Object;它不一定是侦听该事件的 Object。使用 currentTarget 属性始终可以访问侦听事件的 Object。
typeGirdCaretEvent.CARET_CHANGE

gridClick

事件  
事件对象类型: spark.events.GridEvent
属性 GridEvent.type = spark.events.GridEvent.GRID_CLICK

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

在单元格上单击鼠标时调度

gridClick GridEvent 的 type 属性的值。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButton 为 currentTarget 的值。
column发生事件的列;如果事件没有发生在列中,则为 null。
columnIndex发生事件的列索引;如果在网格列中没有发生事件,则为 -1。
grid与此事件关联的网格。
item此行的数据提供程序项;如果在网格行中没有发生事件,则为 null。
itemRenderer显示此单元格的项呈示器;如果在可见单元格中没有发生事件,则为 null。
rowIndex发生事件的行索引;如果在网格行中没有发生事件,则为 -1。
target调度该事件的 Object;它不一定是侦听该事件的 Object。使用 currentTarget 属性始终可以访问侦听事件的 Object。
typeGirdEvent.GRID_CLICK

gridDoubleClick

事件  
事件对象类型: spark.events.GridEvent
属性 GridEvent.type = spark.events.GridEvent.GRID_DOUBLE_CLICK

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

在单元格上双击鼠标时调度

gridDoubleClick GridEvent 的 type 属性的值。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButton 为 currentTarget 的值。
column发生事件的列;如果事件没有发生在列中,则为 null。
columnIndex发生事件的列索引;如果在网格列中没有发生事件,则为 -1。
grid与此事件关联的网格。
item此行的数据提供程序项;如果在网格行中没有发生事件,则为 null。
itemRenderer显示此单元格的项呈示器;如果在可见单元格中没有发生事件,则为 null。
rowIndex发生事件的行索引;如果在网格行中没有发生事件,则为 -1。
target调度该事件的 Object;它不一定是侦听该事件的 Object。使用 currentTarget 属性始终可以访问侦听事件的 Object。
typeGirdEvent.GRID_DOUBLE_CLICK

gridMouseDown

事件  
事件对象类型: spark.events.GridEvent
属性 GridEvent.type = spark.events.GridEvent.GRID_MOUSE_DOWN

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

在 Grid 单元格上按下鼠标按钮时调度。

gridMouseDown GridEvent 的 type 属性的值。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButton 为 currentTarget 的值。
column发生事件的列;如果事件没有发生在列中,则为 null。
columnIndex发生事件的列索引;如果在网格列中没有发生事件,则为 -1。
grid与此事件关联的网格。
item此行的数据提供程序项;如果在网格行中没有发生事件,则为 null。
itemRenderer显示此单元格的项呈示器;如果在可见单元格中没有发生事件,则为 null。
rowIndex发生事件的行索引;如果在网格行中没有发生事件,则为 -1。
target调度该事件的 Object;它不一定是侦听该事件的 Object。使用 currentTarget 属性始终可以访问侦听事件的 Object。
typeGirdEvent.GRID_MOUSE_DOWN

gridMouseDrag

事件  
事件对象类型: spark.events.GridEvent
属性 GridEvent.type = spark.events.GridEvent.GRID_MOUSE_DRAG

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

如果在释放按钮之前移动鼠标,则在 gridMouseDown 事件后调度。

gridMouseDrag GridEvent 的 type 属性的值。仅当侦听器处理完 mouseDown 事件,然后按住按钮的同时移动鼠标时,才会调度此事件。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButton 为 currentTarget 的值。
column发生事件的列;如果事件没有发生在列中,则为 null。
columnIndex发生事件的列索引;如果在网格列中没有发生事件,则为 -1。
grid与此事件关联的网格。
item此行的数据提供程序项;如果在网格行中没有发生事件,则为 null。
itemRenderer显示此单元格的项呈示器;如果在可见单元格中没有发生事件,则为 null。
rowIndex发生事件的行索引;如果在网格行中没有发生事件,则为 -1。
target调度该事件的 Object;它不一定是侦听该事件的 Object。使用 currentTarget 属性始终可以访问侦听事件的 Object。
typeGirdEvent.GRID_MOUSE_DRAG

gridMouseUp

事件  
事件对象类型: spark.events.GridEvent
属性 GridEvent.type = spark.events.GridEvent.GRID_MOUSE_UP

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

在 Grid 单元格上释放鼠标按钮时调度。在拖动操作期间,释放鼠标按钮时也会在 gridMouseDown 事件后调度,即使鼠标不再位于 Grid 中也如此。

gridMouseUp GridEvent 的 type 属性的值。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButton 为 currentTarget 的值。
column发生事件的列;如果事件没有发生在列中,则为 null。
columnIndex发生事件的列索引;如果在网格列中没有发生事件,则为 -1。
grid与此事件关联的网格。
item此行的数据提供程序项;如果在网格行中没有发生事件,则为 null。
itemRenderer显示此单元格的项呈示器;如果在可见单元格中没有发生事件,则为 null。
rowIndex发生事件的行索引;如果在网格行中没有发生事件,则为 -1。
target调度该事件的 Object;它不一定是侦听该事件的 Object。使用 currentTarget 属性始终可以访问侦听事件的 Object。
typeGirdEvent.GRID_MOUSE_UP

gridRollOut

事件  
事件对象类型: spark.events.GridEvent
属性 GridEvent.type = spark.events.GridEvent.GRID_ROLL_OUT

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

在鼠标离开网格单元格时调度。

gridRollOut GridEvent 的 type 属性的值。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButton 为 currentTarget 的值。
column发生事件的列;如果事件没有发生在列中,则为 null。
columnIndex发生事件的列索引;如果在网格列中没有发生事件,则为 -1。
grid与此事件关联的网格。
item此行的数据提供程序项;如果在网格行中没有发生事件,则为 null。
itemRenderer显示此单元格的项呈示器;如果在可见单元格中没有发生事件,则为 null。
rowIndex发生事件的行索引;如果在网格行中没有发生事件,则为 -1。
target调度该事件的 Object;它不一定是侦听该事件的 Object。使用 currentTarget 属性始终可以访问侦听事件的 Object。
typeGirdEvent.GRID_ROLL_OUT

gridRollOver

事件  
事件对象类型: spark.events.GridEvent
属性 GridEvent.type = spark.events.GridEvent.GRID_ROLL_OVER

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 2.5

在鼠标指向网格单元格时调度。

gridRollOver GridEvent 的 type 属性的值。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButton 为 currentTarget 的值。
column发生事件的列;如果事件没有发生在列中,则为 null。
columnIndex发生事件的列索引;如果在网格列中没有发生事件,则为 -1。
grid与此事件关联的网格。
item此行的数据提供程序项;如果在网格行中没有发生事件,则为 null。
itemRenderer显示此单元格的项呈示器;如果在可见单元格中没有发生事件,则为 null。
rowIndex发生事件的行索引;如果在网格行中没有发生事件,则为 -1。
target调度该事件的 Object;它不一定是侦听该事件的 Object。使用 currentTarget 属性始终可以访问侦听事件的 Object。
typeGirdEvent.GRID_ROLL_OVER




[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。