UICollectionViewScrollPosition UICollectionViewScrollPosition Enum

Definition

An enumeration of values used to specify to where a UIView should end up after a scroll into a UICollectionView.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UICollectionViewScrollPosition
type UICollectionViewScrollPosition = 
Inheritance
UICollectionViewScrollPositionUICollectionViewScrollPosition
Attributes

Fields

Bottom Bottom 4

Scrolls so that the item is positioned at the bottom of the collection view.

CenteredHorizontally CenteredHorizontally 16

Scrolls so that the item is centered horizontally in the collection view.

CenteredVertically CenteredVertically 2

Scrolls so that the item is centered vertically in the collection view.

Left Left 8

Scrolls so that the item is positioned at the left edge of the collection view.

None None 0

Do not scroll the item into the view.

Right Right 32

Scrolls so that the item is positioned at the right edge of the collection view.

Top Top 1

Scrolls so that the item is positioned at the top of the view's bounds.

Applies to

See also