UICollectionViewScrollPosition Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration of values used to specify to where a UIView should end up after a scroll into a UICollectionView.
This enumeration supports a bitwise combination of its member values.
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UICollectionViewScrollPosition
type UICollectionViewScrollPosition =
- Inheritance
-
UICollectionViewScrollPosition
- Attributes
Fields
Name | Value | Description |
---|---|---|
None | 0 | Do not scroll the item into the view. |
Top | 1 | Scrolls so that the item is positioned at the top of the view's bounds. |
CenteredVertically | 2 | Scrolls so that the item is centered vertically in the collection view. |
Bottom | 4 | Scrolls so that the item is positioned at the bottom of the collection view. |
Left | 8 | Scrolls so that the item is positioned at the left edge of the collection view. |
CenteredHorizontally | 16 | Scrolls so that the item is centered horizontally in the collection view. |
Right | 32 | Scrolls so that the item is positioned at the right edge of the collection view. |