GridLength.Equals Method

Definition

Determines whether two GridLength structures are equal.

Overloads

Equals(Object)

Determines whether the specified object is equal to the current GridLength instance.

Equals(GridLength)

Determines whether the specified GridLength is equal to the current GridLength.

Equals(Object)

Determines whether the specified object is equal to the current GridLength instance.

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

Parameters

oCompare
Object

The object to compare with the current instance.

Returns

true if the specified object has the same value and GridUnitType as the current instance; otherwise, false.

See also

Equals(GridLength)

Determines whether the specified GridLength is equal to the current GridLength.

public:
 virtual bool Equals(System::Windows::GridLength gridLength);
public bool Equals (System.Windows.GridLength gridLength);
override this.Equals : System.Windows.GridLength -> bool

Parameters

gridLength
GridLength

The GridLength structure to compare with the current instance.

Returns

true if the specified GridLength has the same value and GridUnitType as the current instance; otherwise, false.

Implements

See also

Applies to