Compartilhar via


IMG Element

This section lists the methods supported by the IMG element.

accDoDefaultAction Delegates to the parent accessible element if it is an anchor.
accHitTest See Hit Testing.
accLocation Specifies the location in screen coordinates.
accNavigate See About General Navigation.
accSelect Passes the call to the accessible parent if the parent is an anchor. Otherwise, the method returns E_NOTIMPL.
get_accChild Returns the requested child object or its ID. If you set the child ID to CHILDID_SELF, the method returns E_INVALIDARG.
get_accChildCount Returns the number of children.
get_accDefaultAction Jumps if the accessible parent is an anchor. Otherwise, the method returns E_NOTIMPL.
get_accDescription Returns the alt text if there is a title. If there is no title, the description is NULL and the method returns S_OK.
get_accFocus Returns CHILDID_SELF if this element has the focus. If a child of this element has the focus, the method returns information about that child. Otherwise, it returns VT_EMPTY.
get_accHelp Returns E_NOTIMPL.
get_accHelpTopic Returns E_NOTIMPL.
get_accKeyboardShortcut Returns S_OK with a NULL pointer.
get_accName Returns the title. If there is no title, the method returns the alt text. If the element lacks both title and alt text and the parent is an anchor, the method returns the anchor's name.
get_accParent Returns the closest accessible element in the parent chain.
get_accRole Returns ROLE_SYSTEM_GRAPHIC or ROLE_SYSTEM_ANIMATION.
get_accSelection Returns E_NOTIMPL.
get_accState Returns one or both of STATE_SYSTEM_UNAVAILABLE and STATE_SYSTEM_INVISIBLE. If the parent is an anchor, the image element has the same status as the anchor parent. As of Microsoft Internet Explorer 6, also returns STATE_SYSTEM_OFFSCREEN. For more information, see About Invisible Objects.
get_accValue Delegates to the parent if the parent is an anchor. Otherwise, the method returns the URL of the image.
put_accName Returns E_NOTIMPL.
put_accValue Returns E_NOTIMPL.