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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family