Selection class
- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- Selection
- Annotations
- @DocsEditable()
- @DomName('Selection')
Static Properties
- instanceRuntimeType → Type @Deprecated("Internal Use Only"), read-only
Constructors
Properties
- anchorNode → Node @DocsEditable(), @DomName('Selection.anchorNode'), read-only
- anchorOffset → int @DocsEditable(), @DomName('Selection.anchorOffset'), read-only
- baseNode → Node @DocsEditable(), @DomName('Selection.baseNode'), @Experimental(), read-only
- baseOffset → int @DocsEditable(), @DomName('Selection.baseOffset'), @Experimental(), read-only
- extentNode → Node @DocsEditable(), @DomName('Selection.extentNode'), @Experimental(), read-only
- extentOffset → int @DocsEditable(), @DomName('Selection.extentOffset'), @Experimental(), read-only
- focusNode → Node @DocsEditable(), @DomName('Selection.focusNode'), read-only
- focusOffset → int @DocsEditable(), @DomName('Selection.focusOffset'), read-only
- isCollapsed → bool @DocsEditable(), @DomName('Selection.isCollapsed'), read-only
- rangeCount → int @DocsEditable(), @DomName('Selection.rangeCount'), read-only
- type → String @DocsEditable(), @DomName('Selection.type'), @Experimental(), read-only
- hashCode → int read-only, inherited
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- addRange(
Range range) → void @DocsEditable(), @DomName('Selection.addRange') - collapse(
Node node, [ int offset ]) → void - collapseToEnd(
) → void @DocsEditable(), @DomName('Selection.collapseToEnd') - collapseToStart(
) → void @DocsEditable(), @DomName('Selection.collapseToStart') - containsNode(
Node node, [ bool allowPartialContainment ]) → bool - deleteFromDocument(
) → void @DocsEditable(), @DomName('Selection.deleteFromDocument') - empty(
) → void @DocsEditable(), @DomName('Selection.empty'), @Experimental() - extend(
Node node, [ int offset ]) → void - getRangeAt(
int index) → Range @DocsEditable(), @DomName('Selection.getRangeAt') - modify(
String alter, String direction, String granularity) → void @DocsEditable(), @DomName('Selection.modify'), @Experimental() - removeAllRanges(
) → void @DocsEditable(), @DomName('Selection.removeAllRanges') - selectAllChildren(
Node node) → void @DocsEditable(), @DomName('Selection.selectAllChildren') - setBaseAndExtent(
Node baseNode, int baseOffset, Node extentNode, int extentOffset) → void @DocsEditable(), @DomName('Selection.setBaseAndExtent'), @Experimental() - setPosition(
Node node, [ int offset ]) → void - noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- toString(
) → String inherited -
Returns the result of the JavaScript objects
toString
method.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Selection-class.html