JVCL Help:TJvMarkupViewer.Text

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

Search in JVCL Help

 
Search in all projects
 

Summary

HTML markup to render as the content of the control.


Pascal

 propertyText: TCaption;


Description

Text is a TCaption property that specifies the HTML markup rendered as the content for the HTML-enabled control. Values in the Text property are parsed into the HTML elements need to draw the contents of the control using the Paint method. Changing the value in either the Text or Font properties causes the control to be redrawn.
Text can contain plain text and any of the following HTML tags:

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

Use the MarginLeft, MarginRight, and MarginTop properties to control the spacing needed prior to the rendered HTML content for the control using the Alignment property.
Use BackColor to specify the default background color for HTML elements rendered in the control.


See Also

TJvHTMLElementStack, TJvHTMLElement, TJvMarkupViewer.MarginLeft, TJvMarkupViewer.MarginRight, TJvMarkupViewer.MarginTop, TJvMarkupViewer.BackColor


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