IAccessibleRelation 编辑
other-licenses/ia2/AccessibleRelation.idl
Not scriptable This interface gives access to an object's set of relations. 1.0 66 Introduced Gecko 1.9 Inherits from: IUnknown
Last changed in Gecko 1.9 (Firefox 3)Method overview
[propget] HRESULT localizedRelationType([out] BSTR localizedRelationType ); |
[propget] HRESULT nTargets([out] long nTargets ); |
[propget] HRESULT relationType([out] BSTR relationType ); |
[propget] HRESULT target([in] long targetIndex, [out] IUnknown target ); |
[propget] HRESULT targets([in] long maxTargets, [out, size_is(maxTargets), length_is( nTargets)] IUnknown targets, [out] long nTargets ); |
Methods
localizedRelationType()
Returns a localized version of the relation type.
[propget] HRESULT localizedRelationType( [out] BSTR localizedRelationType );
Parameters
localizedRelationType
Return value
S_OK.
nTargets()
Returns the number of targets()
for this relation.
[propget] HRESULT nTargets( [out] long nTargets );
Parameters
nTargets
Return value
S_OK.
relationType()
Returns the type of the relation.
[propget] HRESULT relationType( [out] BSTR relationType );
Parameters
relationType
- The strings returned are defined @ref grpRelations "in this section of the documentation".
Return value
S_OK.
target()
Returns one accessible relation target.
[propget] HRESULT target( [in] long targetIndex, [out] IUnknown target );
Parameters
targetIndex
- 0 based index.
target
Return value
E_INVALIDARG if bad [in] passed, [out] value is null
. S_FALSE if there is nothing to return, [out] value is null
. S_OK.
targets()
Returns multiple accessible relation targets.
[propget] HRESULT targets( [in] long maxTargets, [out, size_is(maxTargets), length_is( nTargets)] IUnknown targets, [out] long nTargets );
Parameters
maxTargets
- Maximum size of the array allocated by the client.
targets
- The array of target objects. Note that this array is to be allocated by the client and freed when no longer needed. Refer to @ref _arrayConsideration "Special Consideration when using Arrays" for more details. You will need to use QueryInterface on the
IUnknown
to get theIAccessible2
. nTargets
- Actual number of targets in the returned array (not more than maxTargets)
Return value
S_FALSE if there is nothing to return, nTargets()
is set to 0. S_OK.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论