getTotalWidth function

WinJS.Utilities.getTotalWidth function

Applies to Windows and Windows Phone

Gets the width of the element, including margins.

Syntax


var number = WinJS.Utilities.getTotalWidth(element);

Parameters

element

Type: HTMLElement

The element.

Return value

Type: Number

The width of the element including margins.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

 

 

Show:
© 2017 Microsoft