# Interface ICefDomNode

Description
Hierarchy
Methods
Properties

## Unit

uCEFInterfaces

## Declaration

`type ICefDomNode = interface(ICefBaseRefCounted)`

## Description

Interface used to represent a DOM node. The functions of this interface should only be called on the render process main thread.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_dom_capi.h">CEF source file: /include/capi/cef_dom_capi.h (cef_domnode_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefDomNode

## Overview

### Methods

Public | `function GetType: TCefDomNodeType;`
Public | `function IsText: Boolean;`
Public | `function IsElement: Boolean;`
Public | `function IsEditable: Boolean;`
Public | `function IsFormControlElement: Boolean;`
Public | `function GetFormControlElementType: TCefDomFormControlType;`
Public | `function IsSame(const that: ICefDomNode): Boolean;`
Public | `function GetName: ustring;`
Public | `function GetValue: ustring;`
Public | `function SetValue(const value: ustring): Boolean;`
Public | `function GetAsMarkup: ustring;`
Public | `function GetDocument: ICefDomDocument;`
Public | `function GetParent: ICefDomNode;`
Public | `function GetPreviousSibling: ICefDomNode;`
Public | `function GetNextSibling: ICefDomNode;`
Public | `function HasChildren: Boolean;`
Public | `function GetFirstChild: ICefDomNode;`
Public | `function GetLastChild: ICefDomNode;`
Public | `function GetElementTagName: ustring;`
Public | `function HasElementAttributes: Boolean;`
Public | `function HasElementAttribute(const attrName: ustring): Boolean;`
Public | `function GetElementAttribute(const attrName: ustring): ustring;`
Public | `procedure GetElementAttributes(const attrMap: ICefStringMap); overload;`
Public | `procedure GetElementAttributes(var attrList: TStrings); overload;`
Public | `function SetElementAttribute(const attrName, value: ustring): Boolean;`
Public | `function GetElementInnerText: ustring;`
Public | `function GetElementBounds: TCefRect;`

### Properties

Public | `property NodeType : TCefDomNodeType read GetType;`
Public | `property Name : ustring read GetName;`
Public | `property AsMarkup : ustring read GetAsMarkup;`
Public | `property Document : ICefDomDocument read GetDocument;`
Public | `property Parent : ICefDomNode read GetParent;`
Public | `property PreviousSibling : ICefDomNode read GetPreviousSibling;`
Public | `property NextSibling : ICefDomNode read GetNextSibling;`
Public | `property FirstChild : ICefDomNode read GetFirstChild;`
Public | `property LastChild : ICefDomNode read GetLastChild;`
Public | `property ElementTagName : ustring read GetElementTagName;`
Public | `property ElementInnerText : ustring read GetElementInnerText;`
Public | `property ElementBounds : TCefRect read GetElementBounds;`

## Description

### Methods

Public | `function GetType: TCefDomNodeType;`
Returns the type for this node. ###### Attributes GUID['{96C03C9E-9C98-491A-8DAD-1947332232D6}']

Public | `function IsText: Boolean;`
Returns true (1) if this is a text node.

Public | `function IsElement: Boolean;`
Returns true (1) if this is an element node.

Public | `function IsEditable: Boolean;`
Returns true (1) if this is an editable node.

Public | `function IsFormControlElement: Boolean;`
Returns true (1) if this is a form control element node.

Public | `function GetFormControlElementType: TCefDomFormControlType;`
Returns the type of this form control element node.

Public | `function IsSame(const that: ICefDomNode): Boolean;`
Returns true (1) if this object is pointing to the same handle as |that| object.

Public | `function GetName: ustring;`
Returns the name of this node.

Public | `function GetValue: ustring;`
Returns the value of this node.

Public | `function SetValue(const value: ustring): Boolean;`
Set the value of this node. Returns true (1) on success.

Public | `function GetAsMarkup: ustring;`
Returns the contents of this node as markup.

Public | `function GetDocument: ICefDomDocument;`
Returns the document associated with this node.

Public | `function GetParent: ICefDomNode;`
Returns the parent node.

Public | `function GetPreviousSibling: ICefDomNode;`
Returns the previous sibling node.

Public | `function GetNextSibling: ICefDomNode;`
Returns the next sibling node.

Public | `function HasChildren: Boolean;`
Returns true (1) if this node has child nodes.

Public | `function GetFirstChild: ICefDomNode;`
Return the first child node.

Public | `function GetLastChild: ICefDomNode;`
Returns the last child node.

Public | `function GetElementTagName: ustring;`
Returns the tag name of this element.

Public | `function HasElementAttributes: Boolean;`
Returns true (1) if this element has attributes.

Public | `function HasElementAttribute(const attrName: ustring): Boolean;`
Returns true (1) if this element has an attribute named |attrName|.

Public | `function GetElementAttribute(const attrName: ustring): ustring;`
Returns the element attribute named |attrName|.

Public | `procedure GetElementAttributes(const attrMap: ICefStringMap); overload;`
Returns a ICefStringMap of all element attributes.

Public | `procedure GetElementAttributes(var attrList: TStrings); overload;`
Returns a TStrings of all element attributes.

Public | `function SetElementAttribute(const attrName, value: ustring): Boolean;`
Set the value for the element attribute named |attrName|. Returns true (1) on success.

Public | `function GetElementInnerText: ustring;`
Returns the inner text of the element.

Public | `function GetElementBounds: TCefRect;`
Returns the bounds of the element in device pixels. Use "window.devicePixelRatio" to convert to/from CSS pixels.

### Properties

Public | `property NodeType : TCefDomNodeType read GetType;`
Returns the type for this node.

Public | `property Name : ustring read GetName;`
Returns the name of this node.

Public | `property AsMarkup : ustring read GetAsMarkup;`
Returns the contents of this node as markup.

Public | `property Document : ICefDomDocument read GetDocument;`
Returns the document associated with this node.

Public | `property Parent : ICefDomNode read GetParent;`
Returns the parent node.

Public | `property PreviousSibling : ICefDomNode read GetPreviousSibling;`
Returns the previous sibling node.

Public | `property NextSibling : ICefDomNode read GetNextSibling;`
Returns the next sibling node.

Public | `property FirstChild : ICefDomNode read GetFirstChild;`
Return the first child node.

Public | `property LastChild : ICefDomNode read GetLastChild;`
Returns the last child node.

Public | `property ElementTagName : ustring read GetElementTagName;`
Returns the tag name of this element.

Public | `property ElementInnerText : ustring read GetElementInnerText;`
Returns the inner text of the element.

Public | `property ElementBounds : TCefRect read GetElementBounds;`
Returns the bounds of the element in device pixels. Use "window.devicePixelRatio" to convert to/from CSS pixels.

Generated by PasDoc 1.0.4.