webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
This interface gives read-only access to text. More...
import"AccessibleText2.idl";
Properties | |
BSTR | attributeRange ([in] long offset, [in] BSTR filter, [out] long startOffset, [out] long endOffset) [get] |
Returns the range and of the specified set of attributes. More... | |
Properties inherited from IAccessibleText | |
BSTR | attributes ([in] long offset, [out] long startOffset, [out] long endOffset) [get] |
Returns text attributes. More... | |
long | caretOffset [get] |
Returns the position of the caret. More... | |
long | characterExtents ([in] long offset, [in] IA2CoordinateType coordType, [out] long x, [out] long y, [out] long width) [get] |
Returns the bounding box of the specified position. More... | |
long | nSelections [get] |
Returns the number of active non-contiguous selections. More... | |
long | offsetAtPoint ([in] long x, [in] long y, [in] IA2CoordinateType coordType) [get] |
Returns the text position for the specified screen position. More... | |
long | selection ([in] long selectionIndex, [out] long startOffset) [get] |
Returns the character offsets of Nth active text selection. More... | |
BSTR | text ([in] long startOffset, [in] long endOffset) [get] |
Returns the substring between the two given indices. More... | |
BSTR | textBeforeOffset ([in] long offset, [in] IA2TextBoundaryType boundaryType, [out] long startOffset, [out] long endOffset) [get] |
Returns a text portion before the given position. More... | |
BSTR | textAfterOffset ([in] long offset, [in] IA2TextBoundaryType boundaryType, [out] long startOffset, [out] long endOffset) [get] |
Returns a text portion after the given position. More... | |
BSTR | textAtOffset ([in] long offset, [in] IA2TextBoundaryType boundaryType, [out] long startOffset, [out] long endOffset) [get] |
Returns a text portion that spans the given position. More... | |
long | nCharacters [get] |
Returns total number of characters. More... | |
IA2TextSegment | newText [get] |
Returns any inserted text. More... | |
IA2TextSegment | oldText [get] |
Returns any removed text. More... | |
Additional Inherited Members | |
Public Member Functions inherited from IAccessibleText | |
HRESULT | addSelection ([in] long startOffset, [in] long endOffset) |
Adds a text selection. More... | |
HRESULT | removeSelection ([in] long selectionIndex) |
Unselects a range of text. More... | |
HRESULT | setCaretOffset ([in] long offset) |
Sets the position of the caret. More... | |
HRESULT | setSelection ([in] long selectionIndex, [in] long startOffset, [in] long endOffset) |
Changes the bounds of an existing selection. More... | |
HRESULT | scrollSubstringTo ([in] long startIndex, [in] long endIndex, [in] enum IA2ScrollType scrollType) |
Makes a specific part of string visible on screen. More... | |
HRESULT | scrollSubstringToPoint ([in] long startIndex, [in] long endIndex, [in] enum IA2CoordinateType coordinateType, [in] long x, [in] long y) |
Moves the top left of a substring to a specified location. More... | |
This interface gives read-only access to text.
The IAccessibleText2 interface extends the functionality of the IAccessibleText interface.
|
get |
Returns the range and of the specified set of attributes.
Return the range (start and end offsets) and text attributes that correspond to the given attributes filter at the given offset.
[in] | offset | The offset at which to search for the attributes specified in the filter. |
[in] | filter | The requested attribute names. The filter format is "attribute1, attribute2". |
[out] | startOffset | The starting (0-based) offset of the text containing the specified attributes. |
[out] | endOffset | The (0-based) offset one past the last character of the text containing the specified attributes. |
[out] | attributeValues | The values of the requested attributes. |
S_OK | |
S_FALSE | if nothing to return, [out] values are -1, -1, NULL respectively. |
E_INVALIDARG | if bad [in] passed. |