g:text.height Property

Gets or sets the height of the g:text element.

This property is read/write.

Syntax

propVal = g:text.height(intHeight)

  
g:text.height(intHeight)

   = propVal 

Parameters

  • intHeight [in]

  • intHeight [out]
    Sets or retrieves the height, in pixels, to scale the target element.

Examples

The following example demonstrates how to set the height of the g:text element from a gadget script file.

\\ imgBackground is the value of the 'id' attribute for the g:background element.
var txtHeight = imgBackground.addTextObject("test", "Verdana", 25, "Red", intX, intY);
txtHeight.height = 50;

See Also

g:text

Reference

background

image

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK