EN
本內容沒有您的語言版本,但有英文版本。

WinJS.UI.CellSpanningLayout object

Applies to Windows only

Represents a layout for the ListView in which items are arranged in a grid and items can span multiple grid cells.

Syntax


<div 
    data-win-control="WinJS.UI.ListView" 
    data-win-options="{layout: {type: WinJS.UI.CellSpanningLayout}}">
</div>



var object = new WinJS.UI.CellSpanningLayout();

Members

The CellSpanningLayout object has these types of members:

Constructors

The CellSpanningLayout object has these constructors.

ConstructorDescription
CellSpanningLayout

Creates a new CellSpanningLayout.

 

Methods

The CellSpanningLayout object has these methods.

MethodDescription
dragLeave

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

dragOver

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

executeAnimations

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

getAdjacent

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

hitTest

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

initialize

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

itemsFromRange

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

layout

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

setupAnimations

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

uninitialize

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

 

Properties

The CellSpanningLayout object has these properties.

PropertyAccess typeDescription

groupHeaderPosition

Read/write

Gets or sets the position of group headers relative to their items.

groupInfo

Read/write

Gets or sets a function that enables cell-spanning and establishes base cell dimensions.

itemInfo

Read/write

Gets or sets a function that returns the width and height of an item, as well as whether it should appear in a new column. Setting this function improves performance because the ListView can allocate space for an item without having to measure it first.

maximumRowsOrColumns

Read/write

Gets or sets the maximum number of rows or columns, depending on the orientation, to display before content begins to wrap.

numberOfItemsPerItemsBlock

Read-only

This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code.

orientation

Read/write

Gets or sets the orientation of the CellSpanningLayout. For a CellSpanningLayout, this property always returns Orientation.horizontal.

 

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

None supported

Namespace

WinJS.UI

Library

Ui.js

 

 

顯示:
© 2014 Microsoft