WinJS.Utilities.getContentWidth function

Applies to Windows and Windows Phone

Gets the width of the content of the specified element. The content width does not include borders or padding.

Syntax


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

Parameters

element

Type: HTMLElement

The element.

Return value

Type: Number

The content width of the element.

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