Selection.IsEqual MethodÂ
Determines if the selection to which this method is applied is equal to the range specified by the Range argument.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim Range As Range
Dim returnValue As Boolean
Dim selection1 As Selection
returnValue = selection1.IsEqual(Range)
Syntax
Function IsEqual( _
<InAttribute()> ByVal Range As Range _
) As Boolean
bool IsEqual(
[In] Range Range
);
public: Boolean IsEqual(
Range^ Range
);
public boolean IsEqual(
/*in*/Range Range
);
function IsEqual(
Range : Range
) : Boolean;
Parameters
- Range
Required Range object. The Range object that's compared with the specified selection.
Remarks
This method returns True if the selection to which this method is applied is equal to the range specified by the Range argument and False if not.
This method compares the starting and ending character positions, as well as the story type. If all three of these items are the same for both objects, the objects are equal.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Selection Interface
Microsoft.Office.Interop.Word Namespace