次の方法で共有


About Selection

This topic describes selecting objects using the Accessibility API.

You can determine whether the accessible object is selected by comparing its text range to that of the range returned by the createTextRange method of the selection object of the document object (document.selection.createTextRange). If these ranges intersect, the accessible object is said to be selected. If the element is not selected, VT_EMPTY is returned. If any children are selected, an enumeration of the pointers to the IDispatch Interface interfaces of each child ID is returned. If none of these apply, CHILDID_SELF is returned.