g:background.rotation Property
Gets or sets the degree of rotation applied to the g:background element.
This property is read/write.
Syntax
propVal = g:background.rotation(fRotation)
g:background.rotation(fRotation)
= propVal
Parameters
fRotation [in]
fRotation [out]
Sets or retrieves the degree of rotation. Positive values indicate clockwise rotation and negative values indicate counter-clockwise rotation.Value Meaning 0 Default. No rotation applied. The target element is not modified.
Remarks
The rotation amount can be specified in the gadget HTML and script files.
Examples
The following example demonstrates how to rotate the g:background element from a gadget script file.
\\ imgBackground is the value of the 'id' attribute for the g:background element.
imgBackground.rotation = 90.0;
The following example demonstrates how to rotate the g:background element in the gadget HTML file.
<g:background
id="imgBackground"
src="images\background.png"
rotation="90.0">
See Also
Reference
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK