flash.accessibility

# ISimpleTextSelection - AS3

Package | flash.accessibility
Interface | public interface ISimpleTextSelection

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0, Flash Player 10.1

The ISimpleTextSelection class can be used to add support for the MSAA ISimpleTextSelection interface to an AccessibilityImplementation.

If an AccessibilityImplementation subclass implements the two getters in this class, a screen reader such as JAWS can determine the text selection range by calling them. The AccessibilityImplementation subclass does not have to formally declare that it implements this interface; you can simply declare getters for these two properties, as follows:

Copy

        class TextAreaAccImpl extends AccesibilityImplementation
        {
        ...
            public function get selectionAnchorIndex():int
            {
            ...
            }
            public function get selectionActiveIndex():int
            {
            ...
        }
        }

Related API Elements

flash.accessibility.AccessibilityImplementation

Public Properties

| Property | Defined By
--- | --- | ---
|  | selectionActiveIndex : int [read-only] The zero-based character index value of the last character in the current selection. | ISimpleTextSelection
|  | selectionAnchorIndex : int [read-only] The zero-based character index value of the first character in the current selection. | ISimpleTextSelection

Property Detail

### selectionActiveIndex

property

`selectionActiveIndex:int` [read-only]

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0, Flash Player 10.1

The zero-based character index value of the last character in the current selection. If you want a component to support inline IME or accessibility, override this method.

Implementation
`public function get selectionActiveIndex():int`

### selectionAnchorIndex

property

`selectionAnchorIndex:int` [read-only]

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0, Flash Player 10.1

The zero-based character index value of the first character in the current selection. If you want a component to support inline IME or accessibility, override this method.

Implementation
`public function get selectionAnchorIndex():int`

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00