Language

NSStackViewGravity Enum

Definition

Specifies the "gravity area" of an NSStackView to which a view is added, controlling its position relative to other views.

[ObjCRuntime.Native]
public enum NSStackViewGravity
[<ObjCRuntime.Native>]
type NSStackViewGravity = 
Inheritance
NSStackViewGravity
Attributes

Fields

Name Value Description
Leading 1

Places the view in the leading gravity area of the stack view.

Top 1

Places the view in the leading gravity area of a vertical stack view, at its top.

Center 2

Places the view in the center gravity area of the stack view.

Bottom 3

Places the view in the trailing gravity area of a vertical stack view, at its bottom.

Trailing 3

Places the view in the trailing gravity area of the stack view.

Applies to