次の方法で共有


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

Return Value

Type: System.Boolean
true if the two objects are the same, otherwise false.

.NET Framework Security

See Also

Reference

CaretPosition Structure

Microsoft.VisualStudio.Text.Editor Namespace