Compartir a través de


text.top 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 or sets the number of pixels from the top edge of the gadget to position the g:text element.

This property is read/write.

Syntax

itop = text.top
text.top = itop

Property value

An Integer that specifies or receives the position, in pixels, of the target element from the top edge of the gadget.

Remarks

This value overrides any positioning declared previously.

Examples

The following example demonstrates how to set the top-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 txtTop = imgBackground.addTextObject("test", "Verdana", 25, "Red", intX, intY);
txtTop.top = 0;

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

Reference

background

image

text