JVCL Help:TJvMarkupLabel
JVCL Help: TJvMarkupLabel Class
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvMarkupLabel
run\JvMarkupLabel.pas
Summary
Implements an HTML-enabled Label component.
Pascal
run\JvMarkupLabel.pas
TJvMarkupLabel = class(TJvPubGraphicControl);
Description
- JVCLInfo
TJvMarkupLabel is a TJvPubGraphicControl descendant that implements an HTML-enabled Label component. TJvMarkupLabel provides the ability to parse and render HTML markup assigned to the Text property for the control.
TJvMarkupLabel recognizes the following HTML tags in the Text property:
Tag | Description |
Break tag. Performs a newline or carriage return when rendering the HTML tag. | |
Bold tag. Renders using the Bold attribute for the current font. | |
Italic tag. Renders using the Italic attribute for the current font. | |
Underline tag. Renders using the Underline attribute for the current font. | |
Font tag. Allows defining the font used to render the values between the start and end tags. Use the face, size, and color attributes to specify the values to use for the font element. |
The following attributes are recognized for HTML markup in the Text property:
Attribute | Description |
face | Font name to use for the HTML element. Must match the name for a font installed on the computer. |
size | Font size for the HTML element. The unit measure for size is expressed in points (1/72 inch). |
color | Font color for the HTML element. Font may be expressed as a decimal value (using #nnnnnn) or a color name (Red, Green, Blue, Lime, Maroon, etc). |
Attributes attached to an HTML element must be enclosed in double quote characters ("). For instance:Title
TJvMarkupLabel uses internal instances of TJvHTMLElementStack during parsing and rendering of HTML tags assigned to the Text property. TJvMarkupLabel implements overridden methods to handle Font and Text assignments to properties in the control, and to perform painting and automatic resizing of the rendered control.
Use the MarginLeft, MarginRight, and MarginTop properties to control the spacing needed prior to the rendered HTML content for the control.
See Also
TJvPubGraphicControl, TJvHTMLElementStack, TJvHTMLElement, TJvMarkupLabel.Text, , TJvMarkupLabel.MarginLeft, TJvMarkupLabel.MarginRight, TJvMarkupLabel.MarginTop
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