Equality Operator
Collapse the table of content
Expand the table of content

GridLength.Equality Operator

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Compares two GridLength structures for equality.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public static bool operator ==(
	GridLength gl1,
	GridLength gl2
)

Parameters

gl1
Type: System.Windows.GridLength
The first instance of GridLength to compare.
gl2
Type: System.Windows.GridLength
The second instance of GridLength to compare.

Return Value

Type: System.Boolean
true if the two instances of GridLength have the same value and GridUnitType; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft