Share via


SizeRequest Struct

Definition

Caution

Use Microsoft.Maui.Size instead.

Struct that defines a preferred and minimum Size for layout measurement.

public value class SizeRequest : IEquatable<Microsoft::Maui::SizeRequest>
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.SizeRequest+SizeRequestTypeConverter))]
[System.Obsolete("Use Microsoft.Maui.Size instead.")]
public struct SizeRequest : IEquatable<Microsoft.Maui.SizeRequest>
public struct SizeRequest : IEquatable<Microsoft.Maui.SizeRequest>
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.SizeRequest+SizeRequestTypeConverter))>]
[<System.Obsolete("Use Microsoft.Maui.Size instead.")>]
type SizeRequest = struct
type SizeRequest = struct
Public Structure SizeRequest
Implements IEquatable(Of SizeRequest)
Inheritance
SizeRequest
Attributes
Implements

Constructors

SizeRequest(Size, Size)

Creates a new SizeRequest with the specified preferred and minimum sizes.

SizeRequest(Size)

Creates a new SizeRequest where preferred and minimum sizes are the same.

Properties

Minimum

Gets or sets the minimum acceptable size.

Request

Gets or sets the size that is preferred.

Methods

Equals(Object)

Determines whether this instance and a specified object are equal.

Equals(SizeRequest)

Determines whether this SizeRequest is equal to another.

GetHashCode()

Returns a hash code for this SizeRequest.

ToString()

Returns a string representation of this SizeRequest.

Operators

Equality(SizeRequest, SizeRequest)

Indicates whether two SizeRequest instances are equal.

Implicit(Size to SizeRequest)

Implicitly converts a Size to a SizeRequest, using the size for both Request and Minimum.

Implicit(SizeRequest to Size)

Implicitly converts this SizeRequest to its RequestSize.

Inequality(SizeRequest, SizeRequest)

Indicates whether two SizeRequest instances are not equal.

Applies to