Visual Basic (Declaration) | |
---|---|
Public Operator =( _ ByVal left As AnnSize, _ ByVal right As AnnSize _ ) As Boolean |
Parameters
- left
- The AnnSize structure on the left side of the equality operator.
- right
- The AnnSize structure on the right side of the equality operator.
Return Value
This operator returns true if left and right have equal Width and Height values; otherwise false.This example creates a size in inches, converts it to pixels, then makes sure the two sizes are still equal.
Visual Basic | Copy Code |
---|---|
Public Sub AnnSize_OperatorEquals() |
C# | Copy Code |
---|---|
public void AnnSize_OperatorEquals() |
If the two sizes have different units, 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