| 包 | flash.accessibility |
| 接口 | public interface ISimpleTextSelection |
| 语言版本: | ActionScript 3.0 |
| 运行时版本: | AIR 1.0, Flash Player 10.1 |
如果 AccessibilityImplementation 子类在此类中实现了两个 getter,JAWS 等屏幕阅读器可通过调用这两个 getter 来确定文本选择范围。AccessibilityImplementation 子类不必正式声明它实现了此接口;您可以直接为这两个属性声明 getter,如下所示:
class TextAreaAccImpl extends AccesibilityImplementation
{
...
public function get selectionAnchorIndex():int
{
...
}
public function get selectionActiveIndex():int
{
...
}
}
相关 API 元素
公共属性
| 属性 | 由以下参数定义 | ||
|---|---|---|---|
| selectionActiveIndex : int [只读]
当前所选内容中最后一个字符从零开始的字符索引值。 | ISimpleTextSelection | ||
| selectionAnchorIndex : int [只读]
当前所选内容中第一个字符从零开始的字符索引值。 | ISimpleTextSelection | ||
Tue Jun 12 2018, 11:04 AM Z