BBjFormPage::getTextWidth
Description
This method returns the width of a given text String with a given font or attributes.
Syntax
Return Value | Method |
---|---|
double | getTextWidth(AttributedString attrString) |
double |
getTextWidth(String text, Font font) |
Parameters
Variable | Description |
---|---|
text | The text to get the width of. |
font | A Font object that specifies the font of the text. |
attrString | An AttributedString object that specifies the text string and its attributes, such as its font. |
Return Value
Returns the width of the text with the specified font or attributes, as a double.
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.