Export (0) Print
Expand All

g:text.left Property

Gets or sets the number of pixels from the left edge of the gadget to position the g:text element.

This property is read/write.

Syntax

propVal = g:text.left(intLeft)

  
g:text.left(intLeft)

   = propVal 

Parameters

intLeft [in]
intLeft [out]

Sets or retrieves the position, in pixels, of the target element from the left edge of the gadget.

Remarks

This value overrides any positioning declared previously.

Examples

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

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

See Also

g:text
Reference
background
image

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK

Community Additions

Show:
© 2014 Microsoft