Class DrawContext : measureText Method


Size measureText( String text )

Summary

Measure some text and get the Size of it.


Remarks

Uses the current font.


Parameters

ParameterDescription
String text Text to measure.


Returns

The Size of the text.


Examples

c.onGetWidth = function( dc, programme )
{
return dc.measureText( programme.name ).cx;
}


See Also

  • DrawContext : selectFont
  • Size


    Requirements

    build 1065