UICollectionViewFlowLayout.ScrollDirection Property

Definition

The scrolling direction, which is at right angles to the flow direction.

public virtual UIKit.UICollectionViewScrollDirection ScrollDirection { [Foundation.Export("scrollDirection")] get; [Foundation.Export("setScrollDirection:")] set; }
member this.ScrollDirection : UIKit.UICollectionViewScrollDirection with get, set

Property Value

The default value is Vertical.

Attributes

Remarks

By default, cells are laid out with a left-to-right flow direction and wrap top-to-bottom. If the number of cells exceeds screen real estate, the UICollectionView will scroll vertically.

If the application developer sets ScrollDirection to Horizontal, cells will be laid out top-to-bottom and wrap left-to-right.

Applies to