VirtualPoint.EqualTo Method (TextPoint)

Returns whether the value of the given TextPoint object's AbsoluteCharOffset property is equal to that of the calling VirtualPoint object.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Function EqualTo ( _
    Point As TextPoint _
) As Boolean
'Usage
Dim instance As VirtualPoint 
Dim Point As TextPoint 
Dim returnValue As Boolean 

returnValue = instance.EqualTo(Point)
bool EqualTo(
    TextPoint Point
)
bool EqualTo(
    [InAttribute] TextPoint^ Point
)
function EqualTo(
    Point : TextPoint
) : boolean

Parameters

Return Value

Type: System.Boolean
A Boolean value indicating true if Point has the same AbsoluteCharOffset property value as the calling point object.

Implements

TextPoint.EqualTo(TextPoint)

Remarks

EqualTo throws an ArgumentException exception if Point is not in the same document as the calling point object. EqualTo compares the virtual positions if the argument is a VirtualPoint; otherwise it compares the "physical" positions.

.NET Framework Security

See Also

Reference

VirtualPoint Interface

VirtualPoint Members

EqualTo Overload

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples