Compartilhar via


LayoutOptions Struct

Definition

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

public value class LayoutOptions : IEquatable<Microsoft::Maui::Controls::LayoutOptions>
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.LayoutOptionsConverter))]
public struct LayoutOptions : IEquatable<Microsoft.Maui.Controls.LayoutOptions>
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.LayoutOptionsConverter))>]
type LayoutOptions = struct
Public Structure LayoutOptions
Implements IEquatable(Of LayoutOptions)
Inheritance
LayoutOptions
Attributes
Implements

Constructors

LayoutOptions(LayoutAlignment, Boolean)

Creates a new LayoutOptions object with alignment and expands.

Fields

Center

A LayoutOptions structure that describes an element that is centered and does not expand.

CenterAndExpand
Obsolete.

A LayoutOptions structure that describes an element that is centered and expands.

End

A LayoutOptions structure that describes an element that appears at the end of its parent and does not expand.

EndAndExpand
Obsolete.

A LayoutOptions object that describes an element that appears at the end of its parent and expands.

Fill

A LayoutOptions stucture that describes an element that has no padding around itself and does not expand.

FillAndExpand
Obsolete.

A LayoutOptions structure that describes an element that has no padding around itself and expands.

Start

A LayoutOptions structure that describes an element that appears at the start of its parent and does not expand.

StartAndExpand
Obsolete.

A LayoutOptions structure that describes an element that appears at the start of its parent and expands.

Properties

Alignment

Gets or sets a value that indicates how an element will be aligned.

Expands

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.

Methods

Equals(LayoutOptions)
Equals(Object)
GetHashCode()

Operators

Equality(LayoutOptions, LayoutOptions)
Inequality(LayoutOptions, LayoutOptions)

Applies to