Share via


Windows Media Player 11 SDK TEXT.textWidth 

Windows Media Player SDK banner art

Previous Next

TEXT.textWidth

The textWidth attribute retrieves the width in pixels of the text contained in the value attribute.

Syntax

  

Possible Values

This attribute is a read-only Number (int).

Remarks

The value returned is based on the fontFace, fontSize, and fontStyle attributes as well as on the actual characters in the value attribute string.

Example

See the value attribute for a sample illustrating how the attributes of the TEXT element are used.

Requirements

Windows Media Player version 7.0 or later.

See Also

Previous Next