Edit

Share via


Padding.Equals Method

Definition

Overloads

Equals(Object)

Determines whether the value of the specified object is equivalent to the current Padding.

Equals(Padding)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Source:
Padding.cs
Source:
Padding.cs
Source:
Padding.cs

Determines whether the value of the specified object is equivalent to the current Padding.

C#
public override bool Equals(object other);
C#
public override readonly bool Equals(object? other);
C#
public override bool Equals(object? other);

Parameters

other
Object

The object to compare to the current Padding.

Returns

true if the Padding objects are equivalent; otherwise, false.

Remarks

Only other objects of type Padding (or a derived type) can be equal to the current Padding. In addition, the corresponding Right, Left, Bottom and Top properties for both Padding objects must be the same.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Equals(Padding)

Source:
Padding.cs
Source:
Padding.cs
Source:
Padding.cs

Indicates whether the current object is equal to another object of the same type.

C#
public readonly bool Equals(System.Windows.Forms.Padding other);
C#
public bool Equals(System.Windows.Forms.Padding other);

Parameters

other
Padding

An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Implements

Applies to

Windows Desktop 10 and other versions
Product Versions
Windows Desktop 7, 8, 9, 10