iOS Guides | Samples

MonoTouch.UIKit.NSLayoutFormatOptions Enumeration

An enumeration of values used by NSLayoutConstraint.FromVisualFormat

Syntax

[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum NSLayoutFormatOptions

Remarks

The method NSLayoutConstraint.FromVisualFormat takes as a parameter a NSLayoutFormatOptions value. This specifies which alignment instruction (e.g., NSLayoutFormatOptions.AlignAllLeft) is to be used with the visual format string. For more on the visual format syntax, refer to the Apple document "Visual Format Language" (http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/formatLanguage.html).

Members

Member NameDescription
AlignAllBaselineAligns all elements using their NSLayoutAttribute.Baselines.
AlignAllBottomAligns all elements using their NSLayoutAttribute.Bottoms.
AlignAllCenterXAligns all elements using their NSLayoutAttribute.CenterXs.
AlignAllCenterYAligns all elements using their NSLayoutAttribute.CenterYs.
AlignAllFirstBaselineAlign all elements by using their first baselines.
AlignAllLastBaselineAlign all elements by using their last baselines.
AlignAllLeadingAligns all elements using their NSLayoutAttribute.Leadings.
AlignAllLeftAligns all elements using their NSLayoutAttribute.Left properties.
AlignAllRightAligns all elements using their NSLayoutAttribute.Right properties.
AlignAllTopAligns all attributes using their NSLayoutAttribute.Tops.
AlignAllTrailingAligns all attributes using their NSLayoutAttribute.Trailings.
AlignmentMaskMask that can be applied to return only the alignment portion of the format options.
DirectionLeadingToTrailingArranges objects in the normal direction of text. In most languages this is left-to-right.
DirectionLeftToRightArranges objects so that the first object is left-most.
DirectionMaskMask that can be applied to return only the directional component of the format options.
DirectionRightToLeftArranges objects so that the first object is right-most.

Requirements

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

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

See Also: Enum

Public Fields

AlignAllBaselineNSLayoutFormatOptions. Aligns all elements using their NSLayoutAttribute.Baselines.
AlignAllBottomNSLayoutFormatOptions. Aligns all elements using their NSLayoutAttribute.Bottoms.
AlignAllCenterXNSLayoutFormatOptions. Aligns all elements using their NSLayoutAttribute.CenterXs.
AlignAllCenterYNSLayoutFormatOptions. Aligns all elements using their NSLayoutAttribute.CenterYs.
AlignAllFirstBaselineNSLayoutFormatOptions. Align all elements by using their first baselines.
AlignAllLastBaselineNSLayoutFormatOptions. Align all elements by using their last baselines.
AlignAllLeadingNSLayoutFormatOptions. Aligns all elements using their NSLayoutAttribute.Leadings.
AlignAllLeftNSLayoutFormatOptions. Aligns all elements using their NSLayoutAttribute.Left properties.
AlignAllRightNSLayoutFormatOptions. Aligns all elements using their NSLayoutAttribute.Right properties.
AlignAllTopNSLayoutFormatOptions. Aligns all attributes using their NSLayoutAttribute.Tops.
AlignAllTrailingNSLayoutFormatOptions. Aligns all attributes using their NSLayoutAttribute.Trailings.
AlignmentMaskNSLayoutFormatOptions. Mask that can be applied to return only the alignment portion of the format options.
DirectionLeadingToTrailingNSLayoutFormatOptions. Arranges objects in the normal direction of text. In most languages this is left-to-right.
DirectionLeftToRightNSLayoutFormatOptions. Arranges objects so that the first object is left-most.
DirectionMaskNSLayoutFormatOptions. Mask that can be applied to return only the directional component of the format options.
DirectionRightToLeftNSLayoutFormatOptions. Arranges objects so that the first object is right-most.