ScriptEditorControl.. Method

Gets current span in editor.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors.VS (in SQLEditors.VS.dll)

Syntax

'Declaration
Private Function GetCurrentSpan ( _
    pts As TextSpan() _
) As Integer Implements IVsFindTarget.GetCurrentSpan
'Usage
Dim instance As ScriptEditorControl
Dim pts As TextSpan()
Dim returnValue As Integer

returnValue = CType(instance, IVsFindTarget).GetCurrentSpan(pts)
int IVsFindTarget.GetCurrentSpan(
    TextSpan[] pts
)
private:
virtual int GetCurrentSpan(
    array<TextSpan>^ pts
) sealed = IVsFindTarget::GetCurrentSpan
private abstract GetCurrentSpan : 
        pts:TextSpan[] -> int 
private override GetCurrentSpan : 
        pts:TextSpan[] -> int 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

  • pts
    Type: array<TextSpan[]
    A TextSpan object.

Return Value

Type: System.Int32
An integer value that indicates the result of the operation.

Implements

IVsFindTargetGetCurrentSpan(array<TextSpan[])