convertToPixels function

WinJS.Utilities.convertToPixels function

Applies to Windows and Windows Phone

Converts a CSS positioning string for the specified element to pixels.

Syntax


var number = WinJS.Utilities.convertToPixels(element, value);

Parameters

element

Type: HTMLElement

The element.

value

Type: String

The CSS positioning string.

Return value

Type: Number

The number of pixels.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

 

 

Show:
© 2017 Microsoft