JVCL Help:TJvHTMLParser.OnKeyFound

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Event handler signaled when a defined HTML tag is encountered during parsing.


Pascal

 TJvKeyFoundEvent = procedure (Sender: TObject; Key, Results, OriginalLine: string) ofobject;
propertyOnKeyFound: TJvKeyFoundEvent;


Parameters

Parameters Description
Results Textual context for the HTL tag.
OriginalLine Line of text containing the HTML tag.
Sender Object generating the event notification.
Key Name associated with the HTML tag.


Description

OnKeyFound is a TJvKeyFoundEvent property that represents the event handler signaled when a defined HTML tag is encountered during parsing.
OnKeyFound is signaled in the AnalyseString method after HTML tags have been parsed from the HTML Content for the parser component. OnKeyFound is fired for each value stored in list of parsed tags in TagList, and includes the arguments described in the list of Parameters.
Use the OnKeyFoundEx event handler to respond to tags that include attributes with values in the HTML tag.
Applications must assign a procedure to the event handler to allow responding to the event notifications. If an event handler is unassigned, the event notification is not performed. If both event handlers are assigned, both events are fired for each HTML tag in the TagList.
Use the Parser property or the AddCondition method to define HTML tags recognized during parsing operations using the parser component.


See Also

TJvKeyFoundExEvent, TJvHTMLParser.AnalyseString, TJvHTMLParser.TagList, TJvHTMLParser.Parser, TJvHTMLParser.AddCondition, TJvHTMLParser.OnKeyFoundEx


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page