Xamarin.Forms Guides | Samples

Xamarin.Forms.LayoutOptions Structure

A struct whose static members define various alignment and expansion options.

See Also: LayoutOptions

Syntax

[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.LayoutOptionsConverter))]
public struct LayoutOptions

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.LayoutOptions are listed below.

See Also: ValueType

Public Constructors

Creates a new LayoutOptions object with alignment and expands.

Public Fields

static readonly
CenterLayoutOptions. A LayoutOptions structure that describes an element that is centered and does not expand.
static readonly
CenterAndExpandLayoutOptions. A LayoutOptions structure that describes an element that is centered and expands.
static readonly
EndLayoutOptions. A LayoutOptions structure that describes an element that appears at the end of its parent and does not expand.
static readonly
EndAndExpandLayoutOptions. A LayoutOptions object that describes an element that appears at the end of its parent and expands.
static readonly
FillLayoutOptions. A LayoutOptions stucture that describes an element that has no padding around itself and does not expand.
static readonly
FillAndExpandLayoutOptions. A LayoutOptions structure that describes an element that has no padding around itself and expands.
static readonly
StartLayoutOptions. A LayoutOptions structure that describes an element that appears at the start of its parent and does not expand.
static readonly
StartAndExpandLayoutOptions. A LayoutOptions structure that describes an element that appears at the start of its parent and expands.

Public Properties

AlignmentLayoutAlignment. Gets or sets a value that indicates how an element will be aligned.
ExpandsBoolean. Gets or sets a value that indicates whether or not the element that is described by this LayoutOptions structure will occupy the largest space that its parent will give to it.