Interface DocumentRange
public interface DocumentRange
- Since:
- 9, DOM Level 2
Method Summary
Modifier and Type | Method | Description |
---|---|---|
Range |
createRange() |
This interface can be obtained from the object implementing the Document interface using binding-specific casting methods. |
Method Details
createRange
Range createRange()
This interface can be obtained from the object implementing the
Document
interface using binding-specific casting methods.- Returns:
- The initial state of the Range returned from this method is such that both of its boundary-points are positioned at the beginning of the corresponding Document, before any content. The Range returned can only be used to select content associated with this Document, or with DocumentFragments and Attrs for which this Document is the
ownerDocument
.
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.xml/org/w3c/dom/ranges/DocumentRange.html