#### PyKDE - Python Bindings for KDE

# class DOM.Range |
Table of contents
Modules
khtml Classes
All Classes

Module | khtml
Class | DOM.Range
Inherits |

### enums

- CompareHow = {START_TO_START, START_TO_END, END_TO_END, END_TO_START }

### methods

- Range ()

  returns a Range instance

- Range (rootContainer)

  returns a Range instance
  Argument | Type | Default
  --- | --- | ---
  rootContainer | DOM.Document |

- Range (other)

  returns a Range instance
  Argument | Type | Default
  --- | --- | ---
  other | DOM.Range |

- Range (startContainer, startOffset, endContainer, endOffset)

  returns a Range instance
  Argument | Type | Default
  --- | --- | ---
  startContainer | DOM.Node |
  startOffset | long |
  endContainer | DOM.Node |
  endOffset | long |

- Range (i)

  Not Implemented

- boundaryPointsValid ()

  returns (bool)

- cloneContents ()

  returns (DOM.DocumentFragment)

- cloneRange ()

  returns (DOM.Range)

- collapse (toStart)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  toStart | bool |

- collapsed ()

  returns (bool)

- commonAncestorContainer ()

  returns (DOM.Node)

- compareBoundaryPoints (how, sourceRange)

  returns (short)
  Argument | Type | Default
  --- | --- | ---
  how | DOM.Range.CompareHow |
  sourceRange | DOM.Range |

- createContextualFragment (html)

  returns (DOM.DocumentFragment)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  html | DOM.DOMString |

- deleteContents ()

  returns nothing

- detach ()

  returns nothing

- endContainer ()

  returns (DOM.Node)

- endOffset ()

  returns (long)

- extractContents ()

  returns (DOM.DocumentFragment)

- handle ()

  Not Implemented

- insertNode (newNode)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  newNode | DOM.Node |

- isDetached ()

  returns (bool)

- isNull ()

  returns (bool)

- selectNode (refNode)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  refNode | DOM.Node |

- selectNodeContents (refNode)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  refNode | DOM.Node |

- setEnd (refNode, offset)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  refNode | DOM.Node |
  offset | long |

- setEndAfter (refNode)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  refNode | DOM.Node |

- setEndBefore (refNode)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  refNode | DOM.Node |

- setStart (refNode, offset)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  refNode | DOM.Node |
  offset | long |

- setStartAfter (refNode)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  refNode | DOM.Node |

- setStartBefore (refNode)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  refNode | DOM.Node |

- startContainer ()

  returns (DOM.Node)

- startOffset ()

  returns (long)

- surroundContents (newParent)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  newParent | DOM.Node |

- toHTML ()

  returns (DOM.DOMString)

- toString ()

  returns (DOM.DOMString)