Accessibility/TextAttributes: Difference between revisions

mNo edit summary
Line 8: Line 8:


== Summary ==
== Summary ==
This is the internal nsIAccessibleText method (not the ATK or IA2 method -- the implementation for those will consume this method).


The following method returns a collection of text attributes at the given offset, and calculates the range where returned attributes are stretched.
The following method returns a collection of text attributes at the given offset, and calculates the range where returned attributes are stretched.


  nsIPersistentProperties getTextAttributes(in long offset,
{| summary="Method to get text attributes" border="1" cellspacing="1" cellpadding="1"
                                            out long rangeStartOffset,
! API
                                            out long rangeEndOffset);
! Method
|-
| Internal nsIAccessible/XPCOM
|
<pre>
nsIPersistentProperties
    getTextAttributes(in long offset,
                      out long rangeStartOffset,
                      out long rangeEndOffset);</pre>
|-
| IAccessible2
|
<pre>
HRESULT get_attributes(in long offset, 
                      long *rangeStartOffset,
                      long *rangeEndOFfset,
                      BSTR *textAttributes);</pre>
|-
| AT-SPI
|
<pre>
string getAttributes(in long offset,
                    out long *startOffset,
                    out long *endOffset);</pre>
|}


== Parameters ==
== Parameters ==
346

edits