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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family