Clear Up
SharpKit Reference

HtmlTextNode Class

Represents a JsString of text as a node in the document hierarchy.

Namespace: SharpKit.Html4

Base Types

System.Object

Constructors

Methods

Name Description
appendData(JsString) Adds a new character JsString to the end of the object.
deleteData(JsNumber, JsNumber) Removes a specified range of characters from the object.
insertData(JsNumber, JsString) Inserts a new character JsString in the object at a specified offset.
replaceData(JsNumber, JsNumber, JsString) Replaces a specified range of characters in the object with a new character JsString.
splitText(JsNumber) Divides a text node at the specified index.
splitText() Divides a text node at the specified index.
substringData(JsNumber, JsNumber) Extracts a range of characters from the object.

Properties

Name Description
data Sets or gets the value of a TextNode object.
firstChild Retrieves a reference to the first child in the childNodes collection of the object
lastChild Retrieves a reference to the last child in the childNodes collection of an object.
length Gets the number of characters in a TextNode object.
wholeText This read-only property is useful if you want to get the entire text at a certain point and don’t want to be bothered by borders between text nodes.
© Copyright 2005-2011 SharpKit. All rights reserved.