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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Base.js

 

 

Show:
© 2014 Microsoft