NSCollectionViewScrollPosition 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.
Specifies a bitmask describing where a scrolled-to item should be positioned within a collection view's visible area.
This enumeration supports a bitwise combination of its member values.
[ObjCRuntime.Native]
[System.Flags]
public enum NSCollectionViewScrollPosition
[<ObjCRuntime.Native>]
[<System.Flags>]
type NSCollectionViewScrollPosition =
- Inheritance
-
NSCollectionViewScrollPosition
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| None | 0 | No particular scroll position is requested. |
| Top | 1 | Positions the item at the top of the visible area. |
| CenteredVertically | 2 | Centers the item vertically within the visible area. |
| Bottom | 4 | Positions the item at the bottom of the visible area. |
| Left | 8 | Positions the item at the left of the visible area. |
| CenteredHorizontally | 16 | Centers the item horizontally within the visible area. |
| Right | 32 | Positions the item at the right of the visible area. |
| LeadingEdge | 64 | Positions the item at the leading edge of the visible area, honoring the current layout direction. |
| TrailingEdge | 128 | Positions the item at the trailing edge of the visible area, honoring the current layout direction. |
| NearestVerticalEdge | 256 | Scrolls the minimum amount necessary to bring the item's nearest vertical edge into view. |
| NearestHorizontalEdge | 512 | Scrolls the minimum amount necessary to bring the item's nearest horizontal edge into view. |