CaretPosition.Equality Operator
Determines whether two CaretPosition objects are the same.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'宣言
Public Shared Operator = ( _
caretPosition1 As CaretPosition, _
caretPosition2 As CaretPosition _
) As Boolean
public static bool operator ==(
CaretPosition caretPosition1,
CaretPosition caretPosition2
)
public:
static bool operator ==(
CaretPosition caretPosition1,
CaretPosition caretPosition2
)
static let inline (=)
caretPosition1:CaretPosition *
caretPosition2:CaretPosition : bool
JScript does not support overloaded operators.
Parameters
- caretPosition1
Type: Microsoft.VisualStudio.Text.Editor.CaretPosition
The first CaretPosition object.
- caretPosition2
Type: Microsoft.VisualStudio.Text.Editor.CaretPosition
The second CaretPosition object.
Return Value
Type: System.Boolean
true if the two objects are the same, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.