語言

NSStackViewDistribution Enum

Definition

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.

Applies to