Compartilhar via


System.Gadget.opacity property

[The Windows Gadget Platform/Sidebar is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]

Gets the gadget opacity.

This property is read-only.

Syntax

iopacity = System.Gadget.opacity

Property value

An Integer that receives the opacity of the gadget. The value ranges from 0 to 100.

(0)

The gadget is completely transparent.

(100)

The gadget is completely opaque.

Remarks

The opacity can be specified in the gadget HTML and script files.

Examples

The following example demonstrates how to get the opacity of a gadget.

var mytext = "opacity: " + System.Gadget.opacity;

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
End of client support
Windows 7
End of server support
Windows Server 2008
IDL
Sidebar.idl
DLL
Sidebar.Exe (version 1.00 or later)

See also

System.Gadget