interface XStringWidth in module com::sun::star::util::

(Global Index)

Syntax

interface XStringWidth : com::sun::star::uno::XInterface ;

Description

An interface that encapsulates the abstract notion of string width.

See also

XStringAbbreviation

Method Summary

queryStringWidth Compute the width of a given string.

Method Details



queryStringWidth

Syntax

long queryStringWidth (
string String );

Description

Compute the width of a given string.

Depending on the implementation of this interface, the width of a string can be rather different things, like the number of characters in the string, or the width in pixel when displayed with a specific font.

Parameter String

The string that is to be measured.

Returns

the string's width.
Top of Page