WinJS.Utilities.convertToPixels function
Converts a CSS positioning string for the specified element to pixels.
Syntax
var number = WinJS.Utilities.convertToPixels(element, value);
Parameters
element
Type: HTMLElementThe element.
value
Type: StringThe CSS positioning string.
Return value
Type: Number
The number of pixels.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Utilities |