# Interface ICefDomDocument

Description
Hierarchy
Methods
Properties

## Unit

uCEFInterfaces

## Declaration

`type ICefDomDocument = interface(ICefBaseRefCounted)`

## Description

Interface used to represent a DOM document. The functions of this interface should only be called on the render process main thread 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_domdocument_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefDomDocument

## Overview

### Methods

Public | `function GetType: TCefDomDocumentType;`
Public | `function GetDocument: ICefDomNode;`
Public | `function GetBody: ICefDomNode;`
Public | `function GetHead: ICefDomNode;`
Public | `function GetTitle: ustring;`
Public | `function GetElementById(const id: ustring): ICefDomNode;`
Public | `function GetFocusedNode: ICefDomNode;`
Public | `function HasSelection: Boolean;`
Public | `function GetSelectionStartOffset: Integer;`
Public | `function GetSelectionEndOffset: Integer;`
Public | `function GetSelectionAsMarkup: ustring;`
Public | `function GetSelectionAsText: ustring;`
Public | `function GetBaseUrl: ustring;`
Public | `function GetCompleteUrl(const partialURL: ustring): ustring;`

### Properties

Public | `property DocType : TCefDomDocumentType read GetType;`
Public | `property Document : ICefDomNode read GetDocument;`
Public | `property Body : ICefDomNode read GetBody;`
Public | `property Head : ICefDomNode read GetHead;`
Public | `property Title : ustring read GetTitle;`
Public | `property FocusedNode : ICefDomNode read GetFocusedNode;`
Public | `property SelectionStartOffset : Integer read GetSelectionStartOffset;`
Public | `property SelectionEndOffset : Integer read GetSelectionEndOffset;`
Public | `property SelectionAsMarkup : ustring read GetSelectionAsMarkup;`
Public | `property SelectionAsText : ustring read GetSelectionAsText;`
Public | `property BaseUrl : ustring read GetBaseUrl;`

## Description

### Methods

Public | `function GetType: TCefDomDocumentType;`
Returns the document type. ###### Attributes GUID['{08E74052-45AF-4F69-A578-98A5C3959426}']

Public | `function GetDocument: ICefDomNode;`
Returns the root document node.

Public | `function GetBody: ICefDomNode;`
Returns the BODY node of an HTML document.

Public | `function GetHead: ICefDomNode;`
Returns the HEAD node of an HTML document.

Public | `function GetTitle: ustring;`
Returns the title of an HTML document.

Public | `function GetElementById(const id: ustring): ICefDomNode;`
Returns the document element with the specified ID value.

Public | `function GetFocusedNode: ICefDomNode;`
Returns the node that currently has keyboard focus.

Public | `function HasSelection: Boolean;`
Returns true (1) if a portion of the document is selected.

Public | `function GetSelectionStartOffset: Integer;`
Returns the selection offset within the start node.

Public | `function GetSelectionEndOffset: Integer;`
Returns the selection offset within the end node.

Public | `function GetSelectionAsMarkup: ustring;`
Returns the contents of this selection as markup.

Public | `function GetSelectionAsText: ustring;`
Returns the contents of this selection as text.

Public | `function GetBaseUrl: ustring;`
Returns the base URL for the document.

Public | `function GetCompleteUrl(const partialURL: ustring): ustring;`
Returns a complete URL based on the document base URL and the specified partial URL.

### Properties

Public | `property DocType : TCefDomDocumentType read GetType;`
Returns the document type.

Public | `property Document : ICefDomNode read GetDocument;`
Returns the root document node.

Public | `property Body : ICefDomNode read GetBody;`
Returns the BODY node of an HTML document.

Public | `property Head : ICefDomNode read GetHead;`
Returns the HEAD node of an HTML document.

Public | `property Title : ustring read GetTitle;`
Returns the title of an HTML document.

Public | `property FocusedNode : ICefDomNode read GetFocusedNode;`
Returns the node that currently has keyboard focus.

Public | `property SelectionStartOffset : Integer read GetSelectionStartOffset;`
Returns the selection offset within the start node.

Public | `property SelectionEndOffset : Integer read GetSelectionEndOffset;`
Returns the selection offset within the end node.

Public | `property SelectionAsMarkup : ustring read GetSelectionAsMarkup;`
Returns the contents of this selection as markup.

Public | `property SelectionAsText : ustring read GetSelectionAsText;`
Returns the contents of this selection as text.

Public | `property BaseUrl : ustring read GetBaseUrl;`
Returns the base URL for the document.

Generated by PasDoc 1.0.4.