Contents
- Index
- Previous
- Next
Source property
Declaration
property Source: WideString;
Description
Specifies the raw HTML of the current document in the control.
The property contains all of the HTML text in the control, including the information preceding the <BODY> tag. You can read this property to get the entire document, and you can write HTML text to the Source property to update the current document.
For example, you could use this property to display all the HTML text of the document being editing when the user pressed one tab, while another tab displayed the editing control itself.
When you set this property, the control re-parses the document. While the control is re-parsing the document, the Busy property is set to True. When the document has been re-parsed, the OnSetSource event is fired and the Busy property is set to False. The properties of the component are invalid until the OnSetSource event has been fired. You should wait until that event has fired before attempting to manipulate the document.
Run-time only