Sign in Join
FPDoc Onlineexperiment

TDOMCharacterData class

In unit Laz2_DOM

Implements the CharacterData interface from the DOM specification.

Declaration

pascal
TDOMCharacterData = class(TDOMNode)

Inheritance

  1. TDOMCharacterData
  2. TDOMNode

Descends from it: TDOMComment TDOMText

Description

TDOMCharacterData is a TDOMNode descendant that implements the CharacterData interface from the DOM specification. TDOMCharacterData provides properties and methods used to access and manipulate character data in the DOM APIs.

Methods which alter character data use 0-based offsets; the offset values are converted internally to the 1-based offsets used in FPC / Lazarus.

TDOMCharacterData is the ancestor class for other DOM Node specializations like TDOMText and TDOMComment. TDOMCharacterData is not used directly. Use one of the descendent classes.

Use TDOMCDATASection for the CDATA interface defined in the DOM specification.

See also

Properties

DatapublicProvides access to the character data in the NodeValue property.
LengthpublicLength of the character data for the class instance.

Methods

GetLengthprotectedGets the value for the Length property.
GetNodeValueprotectedGets the value for the NodeValue property.
SetNodeValueprotectedSets the value for the NodeValue property.
SubstringDatapublicCopies character data at the specified offset for the number of bytes requested.
AppendDatapublicAppends the specified value to the end of the character data.
InsertDatapublicInserts the specified value at the given offset in the character data.
DeleteDatapublicDeletes a given number of characters at the specified offset in the character data.
ReplaceDatapublicReplaces the characters at the specified offset in the character data.

Inherited

From TDOMNode (60)

AppendChild Attributes baseURI Changing ChildNodes CloneNode CompareName Create Destroy DetachChild FindNode FirstChild Flags FreeInstance GetAttributes GetBaseURI GetChildCount GetChildNodes GetEnumerator GetEnumeratorAllChildren GetFirstChild GetLastChild GetLastLeaf GetLevel GetLocalName GetNamespaceURI GetNextNode GetNextNodeSkipChildren GetNodeName GetNodeType GetOwnerDocument GetPrefix GetPreviousNode GetRevision GetTextContent HasAttributes HasChildNodes InsertBefore IsDefaultNamespace IsSupported LastChild LocalName LookupNamespaceURI LookupPrefix NamespaceURI NextSibling NodeName NodeType NodeValue Normalize OwnerDocument ParentNode Prefix PreviousSibling RemoveChild ReplaceChild SetPrefix SetReadOnly SetTextContent TextContent

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.