Public Member Functions

 Range ()
 
 Range (int s, int e, Node start, Node end)
 
 Range (HtmlDocument doc)
 
void setStart (Node start, int offset)
 
void setEnd (Node end, int offset)
 
void setStartBefore (Node refNode)
 
void setEndBefore (Node refNode)
 
void setStartAfter (Node refNode)
 
void setEndAfter (Node refNode)
 
void collapse (bool toStart)
 
void select (Node refNode)
 
void deleteContents ()
 Deletes all nodes in the range. More...
 
override string ToString ()
 Gets selected text as a string. More...
 
bool contains (Node n)
 True if the given node is within this range. More...
 
bool intersects (Node node)
 
Range cloneRange ()
 

Public Attributes

int startOffset
 <suummary>Where in startContainer the range starts. More...
 
int endOffset
 <suummary>Where in endContainer the range ends. More...
 
Node startContainer
 The node within which the range starts. More...
 
Node endContainer
 The node within which the range ends. More...
 

Properties

bool isCollapsed [get]
 Returns a Boolean indicating whether the selection's start and end points are at the same position. More...
 
Node rootNode [get]
 
Node commonAncestorContainer [get]
 A common ancestor for both start and end. More...
 
IEnumerable< NodecontainedNodes [get]
 
NodeList childNodes [get]
 All the nodes within the range. More...
 

Constructor & Destructor Documentation

PowerUI.Range.Range ( )
inline
PowerUI.Range.Range ( int  s,
int  e,
Node  start,
Node  end 
)
inline
PowerUI.Range.Range ( HtmlDocument  doc)
inline

Member Function Documentation

Range PowerUI.Range.cloneRange ( )
inline
void PowerUI.Range.collapse ( bool  toStart)
inline
bool PowerUI.Range.contains ( Node  n)
inline

True if the given node is within this range.

void PowerUI.Range.deleteContents ( )
inline

Deletes all nodes in the range.

bool PowerUI.Range.intersects ( Node  node)
inline
void PowerUI.Range.select ( Node  refNode)
inline
void PowerUI.Range.setEnd ( Node  end,
int  offset 
)
inline
void PowerUI.Range.setEndAfter ( Node  refNode)
inline
void PowerUI.Range.setEndBefore ( Node  refNode)
inline
void PowerUI.Range.setStart ( Node  start,
int  offset 
)
inline
void PowerUI.Range.setStartAfter ( Node  refNode)
inline
void PowerUI.Range.setStartBefore ( Node  refNode)
inline
override string PowerUI.Range.ToString ( )
inline

Gets selected text as a string.

Member Data Documentation

Node PowerUI.Range.endContainer

The node within which the range ends.

int PowerUI.Range.endOffset

<suummary>Where in endContainer the range ends.

Node PowerUI.Range.startContainer

The node within which the range starts.

int PowerUI.Range.startOffset

<suummary>Where in startContainer the range starts.

Property Documentation

NodeList PowerUI.Range.childNodes
get

All the nodes within the range.

Node PowerUI.Range.commonAncestorContainer
get

A common ancestor for both start and end.

IEnumerable<Node> PowerUI.Range.containedNodes
getprivate
bool PowerUI.Range.isCollapsed
get

Returns a Boolean indicating whether the selection's start and end points are at the same position.

Node PowerUI.Range.rootNode
get