Selects the specified substring, just as if a user selected the substring interactively.
HRESULT selectSubString( long charnum, long nchars );
- [in] The index of the start character in the substring, where the first character has an index of 0.
- [in] The number of characters in the substring. If the nchars parameter specifies more characters than are available, the substring consists of all characters starting with the charnum character until the end of the list of characters.
Returns one of the following values.
S_OK The operation completed successfully. W3CException_DOM_INDEX_SIZE_ERR Index or size is negative, or greater than the allowed value.
The ISVGTextContentElement::selectSubString method can raise a DOMException excpetion with the code INDEX_SIZE_ERR. This exception is raised if the charnum or nchars parameter is negative or if charnum is greater than or equal to the number of characters at this node.