Share via


SafeAreaEdges Struct

Definition

Represents safe area settings for each edge of a layout or visual element.

public value class SafeAreaEdges : IEquatable<Microsoft::Maui::SafeAreaEdges>
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Converters.SafeAreaEdgesTypeConverter))]
public readonly struct SafeAreaEdges : IEquatable<Microsoft.Maui.SafeAreaEdges>
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Converters.SafeAreaEdgesTypeConverter))>]
type SafeAreaEdges = struct
Public Structure SafeAreaEdges
Implements IEquatable(Of SafeAreaEdges)
Inheritance
SafeAreaEdges
Attributes
Implements

Constructors

Name Description
SafeAreaEdges(SafeAreaRegions, SafeAreaRegions, SafeAreaRegions, SafeAreaRegions)

Initializes a new instance of the SafeAreaEdges struct with individual values for each edge.

SafeAreaEdges(SafeAreaRegions, SafeAreaRegions)

Initializes a new instance of the SafeAreaEdges struct with horizontal and vertical values.

SafeAreaEdges(SafeAreaRegions)

Initializes a new instance of the SafeAreaEdges struct with the same value for all edges.

Properties

Name Description
All

A SafeAreaEdges with all edges set to All.

Bottom

Gets the safe area behavior for the bottom edge.

Default

A SafeAreaEdges with all edges set to None.

Left

Gets the safe area behavior for the left edge.

None

A SafeAreaEdges with all edges set to None.

Right

Gets the safe area behavior for the right edge.

Top

Gets the safe area behavior for the top edge.

Methods

Name Description
Equals(Object)
Equals(SafeAreaEdges)
GetHashCode()
ToString()

Operators

Name Description
Equality(SafeAreaEdges, SafeAreaEdges)
Inequality(SafeAreaEdges, SafeAreaEdges)

Applies to