DisplayInfo.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.