Padding.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(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)
Determines whether the value of the specified object is equivalent to the current Padding.
public:
override bool Equals(System::Object ^ other);
public override bool Equals (object other);
public override bool Equals (object? other);
public override readonly bool Equals (object? other);
override this.Equals : obj -> bool
Public Overrides Function Equals (other As Object) As Boolean
Parameters
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
- Equality(Padding, Padding)
- GetHashCode()
- How to: Outline a Windows Forms Control Using Padding
- Margin and Padding in Windows Forms Controls
Applies to
Equals(Padding)
Indicates whether the current object is equal to another object of the same type.
public:
virtual bool Equals(System::Windows::Forms::Padding other);
public bool Equals (System.Windows.Forms.Padding other);
public readonly bool Equals (System.Windows.Forms.Padding other);
override this.Equals : System.Windows.Forms.Padding -> bool
Public Function Equals (other As Padding) As Boolean
Parameters
- other
- Padding
An object to compare with this object.
Returns
true
if the current object is equal to the other
parameter; otherwise, false
.