Range
Overview
The Range interface represents a fragment of a document that can contain nodes and parts of text nodes.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.WebAssembly.DOM
- Platforms: WebAssembly
cloneRange
Returns a Range object with boundary points identical to the cloned Range.
method cloneRange: dynamic
dynamic cloneRange()
func cloneRange() -> dynamic
dynamic cloneRange()
Function cloneRange() As dynamic
collapsed
property collapsed: Boolean read;
Boolean collapsed { get; }
var collapsed: Boolean { get{} }
Boolean collapsed { __get; }
ReadOnly Property collapsed() As Boolean
commonAncestorContainer
property commonAncestorContainer: Node read;
Node commonAncestorContainer { get; }
var commonAncestorContainer: Node { get{} }
Node commonAncestorContainer { __get; }
ReadOnly Property commonAncestorContainer() As Node
compareBoundaryPoints
Compares the boundary points of the Range with another Range.
method compareBoundaryPoints(parhow: dynamic; parsourceRange: dynamic): Double
Double compareBoundaryPoints(dynamic parhow, dynamic parsourceRange)
func compareBoundaryPoints(_ parhow: dynamic, _ parsourceRange: dynamic) -> Double
Double compareBoundaryPoints(dynamic parhow, dynamic parsourceRange)
Function compareBoundaryPoints(parhow As dynamic, parsourceRange As dynamic) As Double
Parameters:
- parhow:
- parsourceRange:
endOffset
property endOffset: Double read;
Double endOffset { get; }
var endOffset: Double { get{} }
Double endOffset { __get; }
ReadOnly Property endOffset() As Double
insertNode
Insert a Node at the start of a Range.
method insertNode(parnewNode: dynamic): Node
Node insertNode(dynamic parnewNode)
func insertNode(_ parnewNode: dynamic) -> Node
Node insertNode(dynamic parnewNode)
Function insertNode(parnewNode As dynamic) As Node
Parameters:
- parnewNode:
selectNode
Sets the Range to contain the Node and its contents.
method selectNode(parreferenceNode: dynamic): Node
Node selectNode(dynamic parreferenceNode)
func selectNode(_ parreferenceNode: dynamic) -> Node
Node selectNode(dynamic parreferenceNode)
Function selectNode(parreferenceNode As dynamic) As Node
Parameters:
- parreferenceNode:
selectNodeContents
Sets the Range to contain the contents of a Node.
method selectNodeContents(parreferenceNode: dynamic): Node
Node selectNodeContents(dynamic parreferenceNode)
func selectNodeContents(_ parreferenceNode: dynamic) -> Node
Node selectNodeContents(dynamic parreferenceNode)
Function selectNodeContents(parreferenceNode As dynamic) As Node
Parameters:
- parreferenceNode:
setEnd
Sets the end position of a Range.
method setEnd(parendNode: dynamic; parendOffset: dynamic)
void setEnd(dynamic parendNode, dynamic parendOffset)
func setEnd(_ parendNode: dynamic, _ parendOffset: dynamic)
void setEnd(dynamic parendNode, dynamic parendOffset)
Sub setEnd(parendNode As dynamic, parendOffset As dynamic)
Parameters:
- parendNode:
- parendOffset:
setStart
Sets the start position of a Range.
method setStart(parstartNode: dynamic; parstartOffset: dynamic): String
String setStart(dynamic parstartNode, dynamic parstartOffset)
func setStart(_ parstartNode: dynamic, _ parstartOffset: dynamic) -> String
String setStart(dynamic parstartNode, dynamic parstartOffset)
Function setStart(parstartNode As dynamic, parstartOffset As dynamic) As String
Parameters:
- parstartNode:
- parstartOffset:
startOffset
property startOffset: Double read;
Double startOffset { get; }
var startOffset: Double { get{} }
Double startOffset { __get; }
ReadOnly Property startOffset() As Double
toString
Returns the text of the Range.
collapsed
property collapsed: Boolean read;
Boolean collapsed { get; }
var collapsed: Boolean { get{} }
Boolean collapsed { __get; }
ReadOnly Property collapsed() As Boolean
commonAncestorContainer
property commonAncestorContainer: Node read;
Node commonAncestorContainer { get; }
var commonAncestorContainer: Node { get{} }
Node commonAncestorContainer { __get; }
ReadOnly Property commonAncestorContainer() As Node
endOffset
property endOffset: Double read;
Double endOffset { get; }
var endOffset: Double { get{} }
Double endOffset { __get; }
ReadOnly Property endOffset() As Double
startOffset
cloneRange
Returns a Range object with boundary points identical to the cloned Range.
method cloneRange: dynamic
dynamic cloneRange()
func cloneRange() -> dynamic
dynamic cloneRange()
Function cloneRange() As dynamic
compareBoundaryPoints
Compares the boundary points of the Range with another Range.
method compareBoundaryPoints(parhow: dynamic; parsourceRange: dynamic): Double
Double compareBoundaryPoints(dynamic parhow, dynamic parsourceRange)
func compareBoundaryPoints(_ parhow: dynamic, _ parsourceRange: dynamic) -> Double
Double compareBoundaryPoints(dynamic parhow, dynamic parsourceRange)
Function compareBoundaryPoints(parhow As dynamic, parsourceRange As dynamic) As Double
Parameters:
- parhow:
- parsourceRange:
insertNode
Insert a Node at the start of a Range.
method insertNode(parnewNode: dynamic): Node
Node insertNode(dynamic parnewNode)
func insertNode(_ parnewNode: dynamic) -> Node
Node insertNode(dynamic parnewNode)
Function insertNode(parnewNode As dynamic) As Node
Parameters:
- parnewNode:
selectNode
Sets the Range to contain the Node and its contents.
method selectNode(parreferenceNode: dynamic): Node
Node selectNode(dynamic parreferenceNode)
func selectNode(_ parreferenceNode: dynamic) -> Node
Node selectNode(dynamic parreferenceNode)
Function selectNode(parreferenceNode As dynamic) As Node
Parameters:
- parreferenceNode:
selectNodeContents
Sets the Range to contain the contents of a Node.
method selectNodeContents(parreferenceNode: dynamic): Node
Node selectNodeContents(dynamic parreferenceNode)
func selectNodeContents(_ parreferenceNode: dynamic) -> Node
Node selectNodeContents(dynamic parreferenceNode)
Function selectNodeContents(parreferenceNode As dynamic) As Node
Parameters:
- parreferenceNode:
setEnd
Sets the end position of a Range.
method setEnd(parendNode: dynamic; parendOffset: dynamic)
void setEnd(dynamic parendNode, dynamic parendOffset)
func setEnd(_ parendNode: dynamic, _ parendOffset: dynamic)
void setEnd(dynamic parendNode, dynamic parendOffset)
Sub setEnd(parendNode As dynamic, parendOffset As dynamic)
Parameters:
- parendNode:
- parendOffset:
setStart
Sets the start position of a Range.
method setStart(parstartNode: dynamic; parstartOffset: dynamic): String
String setStart(dynamic parstartNode, dynamic parstartOffset)
func setStart(_ parstartNode: dynamic, _ parstartOffset: dynamic) -> String
String setStart(dynamic parstartNode, dynamic parstartOffset)
Function setStart(parstartNode As dynamic, parstartOffset As dynamic) As String
Parameters:
- parstartNode:
- parstartOffset:
toString
Returns the text of the Range.