getPosition function

WinJS.Utilities.getPosition function

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Gets the position of the specified element.

Syntax

var object = WinJS.Utilities.getPosition(element);

Parameters

element

Type: HTMLElement

The element.

Return value

Type: Object

An object that contains the left, top, width and height properties of the element.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.Utilities

Library

Base.js

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2016 Microsoft