Sign in Join
FPDoc Onlineexperiment

TDOMNodeList.GetItem function

Member of TDOMNodeListprotectedIn unit Laz2_DOM

Gets the value for the Item property.

Declaration

pascal
function GetItem(index: LongWord): TDOMNode

Arguments

index

Ordinal position for the DOM node in the property value.

Function result

Value for the Item property.

Description

GetItem is a TDOMNode function used to get the value for the indexed Item property. Index contains the ordinal position in the list for the property value.

GetItem ensures that items in the internal TFPList instance are up-to-date. When the revision number for the list differs from the revision number for the node that owns the list, the BuildList method is called to refresh its contents and apply the node filtering mechanism for the container.

The return value contains the TDOMNode instance at the specified position in the list. The return value is Nil when Index contains a value not present in the internal list.

See also

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