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 | ![]() |
---|---|
Public Sub AnnPoint_OperatorEquals() |
C# | ![]() |
---|---|
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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family