Visual Basic (Declaration) | |
---|---|
Public Operator =( _ ByVal left As AnnLength, _ ByVal right As AnnLength _ ) As Boolean |
Parameters
- left
- The AnnLength structure on the left side of the equality operator.
- right
- The AnnLength structure on the right side of the equality operator.
Return Value
This operator returns true if left and right have equal lengths; otherwise false.This example creates a length in inches, converts it to pixels then makes sure the 2 lengths are still equal.
Visual Basic | Copy Code |
---|---|
Public Sub AnnLength_OperatorEquals() |
C# | Copy Code |
---|---|
public void AnnLength_OperatorEquals() |
If the two lengths have different units, comparison will be done after temporarily converted both to a common unit.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family