NSStackViewDistribution 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 how the arranged views of an NSStackView are sized and spaced along the stack's axis.
[ObjCRuntime.Native]
public enum NSStackViewDistribution
[<ObjCRuntime.Native>]
type NSStackViewDistribution =
- Inheritance
-
NSStackViewDistribution
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| GravityAreas | -1 | Views are positioned according to their assigned gravity areas, rather than an automatic distribution. |
| Fill | 0 | Views are resized to fill the available space based on their content-hugging and compression-resistance priorities. |
| FillEqually | 1 | Views are resized equally to fill the available space. |
| FillProportionally | 2 | Views are resized proportionally, based on their initial sizes, to fill the available space. |
| EqualSpacing | 3 | Views keep their intrinsic size, and any extra space is distributed equally between them. |
| EqualCentering | 4 | Views keep their intrinsic size, and any extra space is distributed so that the centers of the views are equally spaced. |