JVCL Help:TJvHTMLParser.AddCondition

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

Search in JVCL Help

 
Search in all projects
 

Summary

Adds an HTML tag definition with conditional parsing information to the HTML parser.


Pascal

 procedureAddCondition(constKeyword: string; constStartTag: string = '<'; constEndTag: string = '>'; TextSelection: Integer = 0);


Parameters

Parameters Description
const Keyword: string Name associated with the HTML tag definition.
const StartTag: string = '<' HTML that marks the start of the defined tag.
const EndTag: string = '>' HTML that marls the end of the defined tag.
TextSelection: Integer = 0 Conditional text parsing required for the HTML tag definition.


Description

AddCondition is a procedure used to define an HTML tag recognized by the parser component during parsing operations in the AnalyseString method. AddCondition ensures that values passed in the Keyword, StartTag, EndTag, and TextSelection arguments are used in the internal TJvParserInfo instance created for the tag definition.
AddCondition is used to define HTML tags at run-time. Use the Parser property to define HTML tags recognized by the parser at design-time.
Use RemoveCondition or ClearConditions to delete one or more HTML tag definitions recognized by the parser.
Use ConditionsCount to determine the total number of HTML tags defined for the parser component.


See Also

TJvParserInfo, TJvHTMLParser.RemoveCondition, TJvHTMLParser.ClearConditions, TJvHTMLParser.ConditionsCount


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