[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMCharacterData

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements the CharacterData interface from the DOM specification.

Declaration

Source position: laz2_dom.pas line 420

type TDOMCharacterData = class(TDOMNode)

protected

  function GetLength;

  

Gets the value for the Length property.

  function GetNodeValue; override;

  

Gets the value for the NodeValue property.

  procedure SetNodeValue(); override;

  

Sets the value for the NodeValue property.

public

  property Data: DOMString; [rw]

  

Provides access to the character data in the NodeValue property.

  property Length: LongWord; [r]

  

Length of the character data for the class instance.

  function SubstringData();

  

Copies character data at the specified offset for the number of bytes requested.

  procedure AppendData();

  

Appends the specified value to the end of the character data.

  procedure InsertData();

  

Inserts the specified value at the given offset in the character data.

  procedure DeleteData();

  

Deletes a given number of characters at the specified offset in the character data.

  procedure ReplaceData();

  

Replaces the characters at the specified offset in the character data.

end;

Inheritance

TDOMCharacterData

  

Implements the CharacterData interface from the DOM specification.

|

TDOMNode

  

Implements the DOM Node interface.

|

TObject

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.

Remark: 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

TDOMNode

  

Implements the DOM Node interface.

TDOMText

  

Implements the DOM Text interface from the DOM specification.

TDOMComment

  

Implements the DOM Comment interface from the DOM specification.

TDOMCDATASection

  

Implements the DOM CDataSection interface from the DOM specification.


Version 3.2 Generated 2024-02-25 Home