JVCL Help:TJvCustomItemViewer.GetTextRect

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

Search in JVCL Help

 
Search in all projects
 

Summary

Adjusts a rect so it encloses the passed in string.


Pascal

 functionGetTextRect(constS: WideString; varItemRect: TRect): TRect; virtual;


Parameters

Parameters Description
const S: WideString The string to calculate the rect for.
var ItemRect: TRect The rect to adjust.


Return Value

A TRect adjusted according to the value of Options.Layout.


Description

Call GetTextRect with a string and a rect to have the rect adjusted to enclose the string S. The rect is adjusted according to the value of Options.Layout. ItemRect must contain the correct values for Left and Right before calling this method.


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