Export (0) Print
Expand All

g:image.left Property

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

This property is read/write.

Syntax

propVal = g:image.left(intLeft)

  
g:image.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

Caution  Other than g:background, avoid images that render to the absolute edges of a gadget. In high-DPI, rounding errors can cause a magenta fringe around the border of the gadget.

This value overrides any positioning declared previously.

Examples

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

\\ imgBackground is the value of the 'id' attribute for the g:background element.
var imgLeft = imgBackground.addImageObject(file, intX, intY);
imgLeft.left = 50;

See Also

g:image
Reference
background
text

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK

Community Additions

Show:
© 2014 Microsoft