Share via


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: 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