Share via


DisplayInfo.Equals Method

Definition

Overloads

Equals(DisplayInfo)

Compares the underlying DisplayInfo instances.

Equals(Object)

If equal to another object.

Equals(DisplayInfo)

Source:
DisplayInfo.shared.cs
Source:
DisplayInfo.shared.cs

Compares the underlying DisplayInfo instances.

public:
 virtual bool Equals(Microsoft::Maui::Devices::DisplayInfo other);
public bool Equals (Microsoft.Maui.Devices.DisplayInfo other);
override this.Equals : Microsoft.Maui.Devices.DisplayInfo -> bool
Public Function Equals (other As DisplayInfo) As Boolean

Parameters

other
DisplayInfo

DisplayInfo object to compare with.

Returns

true if they are equal, otherwise false.

Implements

Remarks

Equality is established by comparing if Height, Width, Density, Orientation and Rotation are all equal.

Applies to

Equals(Object)

Source:
DisplayInfo.shared.cs
Source:
DisplayInfo.shared.cs

If equal to another object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

Object to compare.

Returns

If equal.

Applies to