DesignerDocument.activeElement Property
SharePoint Designer Developer Reference |
Returns an object that represents the currently selected text or the location of the insertion point in the document.
Syntax
expression.activeElement
expression Required. A variable that represents a DesignerDocument object.
Remarks
The type of object returned depends on the location of the insertion point or the text selected. For example, if you have a form button selected, the activeElement property returns an InputButtonElement object; if you have a portion of text selected within a paragraph tag, it returns a ParaElement object; if you have several paragraphs selected, it returns a BodyElement object. If you are unsure of the object that will be returned, use the IHTMLElement object to capture and manipulate the returned object.
See Also