selection_anchor
selection_anchor (pos[, doc])
This function returns the oid of the object containing the anchored end of the selection in the window containing the document specified by doc, or the current document if omitted. Also returns the character offset of the end of the selection from oid in the output variable pos.
The anchor point of the selection is the point at which the selection was started, for example, the same as selection_end if the region was highlighted from right to left.
Related Topics