g:text.opacity Property
Gets or sets the opacity of the g:text element.
This property is read/write.
Syntax
propVal = g:text.opacity(intOpacity)
g:text.opacity(intOpacity)
= propVal
Parameters
intOpacity [in]
intOpacity [out]
Sets or retrieves the opacity the target element. The value ranges from0
to100
.Value Meaning 0 The target element is completely transparent.
100 Default. The target element is completely opaque.
Remarks
Examples
The following example demonstrates how to set the opacity of the g:text element from a gadget script file.
\\ imgBackground is the value of the 'id' attribute for the g:background element.
var txtOpacity = imgBackground.addTextObject("test", "Verdana", 25, "Red", intX, intY);
txtOpacity.opacity = 0;
See Also
Reference
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK