| Visual Basic (Declaration) | |
|---|---|
Public Operator =( _ ByVal left As AnnPoint, _ ByVal right As AnnPoint _ ) As Boolean | |
Parameters
- left
- The AnnPoint structure on the left side of the equality operator.
- right
- The AnnPoint structure on the right side of the equality operator.
Return Value
This operator returns true if left and right have equal X and Y values; otherwise false.This example creates a point in inches, converts it to pixels and then makes sure the 2 points are still equal.
| Visual Basic | Copy Code |
|---|---|
Public Sub AnnPoint_OperatorEquals() | |
| C# | Copy Code |
|---|---|
public void AnnPoint_OperatorEquals() | |
If the two points have different units, the comparison will be done after temporarily converting both to a common unit.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family