Web server type - CD-447Appendix F . Examples from Parts III and
CD-447Appendix F . Examples from Parts III and IV Click on the List Properties button to see that the text of the range now includes the word following the EM element. Try each of the following statements in the top text box and examine both the integer results and (by clicking the List Properties button) the properties of the range after each statement: a.moveStart( word , -1) a.moveEnd( sentence ) Notice that for a sentence, a default unit of 1 expands to the end of the current sentence. And if you move the start point backward by one sentence, you ll see that the lack of a period-ending sentence prior to the myP element causes strange results. Finally, force the start point backward in increments of 20 words and watch the results as the starting point nears and reaches the start of the BODY: a.moveStart( word , -20) Eventually the last movement will be some other value closer to zero. And as soon as the range is at the beginning of the BODY element, the range can move no more in that direction, so the result is zero. moveToBookmark( bookmarkString ) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Listing 19-11 earlier in this chapter shows how to use the moveToBookmark() method to restore a text range so that changes that created the state saved by the bookmark can be undone. The getBookmark() method is used to save the snapshots, while the moveToBookmark() method is used during the undo process. moveToElementText(elemObjRef) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility TextRange.moveToElement()
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.