ILayout2.orientation property

Applies to Windows and Windows Phone

Gets or sets the orientation of the layout.

Syntax


<div 
    data-win-control="WinJS.UI.ILayout2" 
    data-win-options="{ orientation : value}" >
</div>


var orientation = iLayout2.orientation;
iLayout2.orientation = orientation;

Property value

Type:

One of the values defined by the WinJS.UI.Orientation enumeration.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

See also

ILayout2
WinJS.UI.Orientation

 

 

Show:
© 2014 Microsoft. All rights reserved.