JVCL Help:ItemHtWidth
JVCL Help: ItemHTWidth function
Search in JVCL Help
Search in all projectsSummary
Renders HTML-tagged contents using the specified Canvas, Rectangle, and Scaling factor.
Pascal
run\JvHtControls.pas
functionItemHTWidth(Canvas: TCanvas; Rect: TRect; constState: TOwnerDrawState; constText: string; Scale: Integer = 100): Integer;
Parameters
Parameters | Description |
Canvas: TCanvas | Canvas used to render the HTML content. |
Rect: TRect | Rectangle to use for rendering HTML content. |
const State: TOwnerDrawState | Draw state values for the rendering operation. |
const Text: string | HTML tags to render. |
Scale: Integer = 100 | Scaling factor for the render. Default value is 100. |
Return Value
Integer - Width of the rendered HTML tag.
Description
ItemHTWidth is a function used to render the HTML-tagged contents using the specified in Text using the Canvas, Rectangle, State, and Scaling factor arguments. The return value is an Integer that indicates the width of the rendered Text.
ItemHTWidth is used when rendering or auto-sizing the content in HTML-enabled controls like TJvHTLabel to determine the width of the rendered value.
Use ItemHTHeight to determine the render height of HTML-tagged values.
ItemHTWidth calls the HTMLTextWidth in JvJVCLUtils.pas.
See Also
HTMLTextWidth
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