iOS Guides | Samples

MonoTouch.UIKit.UIStackViewAlignment Enumeration

Enumerates the ways in which a UIStackView can arrange its subviews.

Syntax

[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 9, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIStackViewAlignment

Remarks

AlignmentDescriptionExample Image
UIStackViewAlignment.BottomHorizontal layout, bottom edges aligned to the bottom of the UIStackView.

UIStackViewAlignment.CenterViews are aligned along the UIStackView.Axis, in the center of the UIStackView.

UIStackViewAlignment.FillViews are arranged to fill available space perpendicular to the UIStackView.Axis.

UIStackViewAlignment.FirstBaseline Views are aligned based on the baseline of the first UIStackView.ArrangedSubviews. (Horizontal only.)

UIStackViewAlignment.LastBaseline Views are aligned based on the baseline of the last UIStackView.ArrangedSubviews. (Horizontal only.)

UIStackViewAlignment.Leading Views are aligned based on the leading edge of the first UIStackView.ArrangedSubviews. (Vertical only.)

UIStackViewAlignment.TopHorizontal layout, top edges aligned to the top of the UIStackView.

UIStackViewAlignment.TrailingViews are aligned based on the trailing edge of the first UIStackView.ArrangedSubviews. (Vertical only.)

Members

Member NameDescription
BottomHorizontal layout, bottom edges aligned to the bottom of the UIStackView.
CenterViews are aligned along the UIStackView.Axis, in the center of the UIStackView.
FillViews are arranged to fill available space perpendicular to the UIStackView.Axis.
FirstBaselineViews are aligned based on the baseline of the first UIStackView.ArrangedSubviews. (Horizontal only.)
LastBaselineViews are aligned based on the baseline of the last UIStackView.ArrangedSubviews. (Horizontal only.)
LeadingViews are aligned based on the leading edge of the first UIStackView.ArrangedSubviews. (Vertical only.)
TopHorizontal layout, top edges aligned to the top of the UIStackView.
TrailingViews are aligned based on the trailing edge of the first UIStackView.ArrangedSubviews. (Vertical only.)

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIStackViewAlignment are listed below.

See Also: Enum

Public Fields

BottomUIStackViewAlignment. Horizontal layout, bottom edges aligned to the bottom of the UIStackView.
CenterUIStackViewAlignment. Views are aligned along the UIStackView.Axis, in the center of the UIStackView.
FillUIStackViewAlignment. Views are arranged to fill available space perpendicular to the UIStackView.Axis.
FirstBaselineUIStackViewAlignment. Views are aligned based on the baseline of the first UIStackView.ArrangedSubviews. (Horizontal only.)
LastBaselineUIStackViewAlignment. Views are aligned based on the baseline of the last UIStackView.ArrangedSubviews. (Horizontal only.)
LeadingUIStackViewAlignment. Views are aligned based on the leading edge of the first UIStackView.ArrangedSubviews. (Vertical only.)
TopUIStackViewAlignment. Horizontal layout, top edges aligned to the top of the UIStackView.
TrailingUIStackViewAlignment. Views are aligned based on the trailing edge of the first UIStackView.ArrangedSubviews. (Vertical only.)