Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

GetRelation

« nsIAccessible Page

Summary

This method returns accessible relation for this accessible object by index.

 nsIAccessibleRelation getRelation(
   in unsigned long aIndex
 );

Parameters

aIndex
[in] The index for which relation is to be retrieved.

Return value

Returns nsIAccessibleRelation object for this accessible.

Exception thrown
Edit section

NS_ERROR_INVALID_ARG
Indicates that the given index is invalid.

Remark

Currently we do not support multiple relations so the zero index may be valid only. Refer to relations documentation for more info.

See Also

Document Tags and Contributors

 Contributors to this page: teoli, Surkov.alexander
 Last updated by: teoli,