Share via


VsTextBufferCoordinatorClass.GetMappingOfPrimaryPosition Method

Maps the specified position in the primary buffer to the span in the secondary buffer.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Public Overridable Function GetMappingOfPrimaryPosition ( _
    lPosition As Integer, _
    <OutAttribute> ptsPrimary As TextSpan(), _
    <OutAttribute> ptsSecondary As TextSpan() _
) As Integer
public virtual int GetMappingOfPrimaryPosition(
    int lPosition,
    TextSpan[] ptsPrimary,
    TextSpan[] ptsSecondary
)
public:
virtual int GetMappingOfPrimaryPosition(
    [InAttribute] int lPosition, 
    [OutAttribute] array<TextSpan>^ ptsPrimary, 
    [OutAttribute] array<TextSpan>^ ptsSecondary
)
abstract GetMappingOfPrimaryPosition : 
        lPosition:int * 
        ptsPrimary:TextSpan[] byref * 
        ptsSecondary:TextSpan[] byref -> int  
override GetMappingOfPrimaryPosition : 
        lPosition:int * 
        ptsPrimary:TextSpan[] byref * 
        ptsSecondary:TextSpan[] byref -> int
public function GetMappingOfPrimaryPosition(
    lPosition : int, 
    ptsPrimary : TextSpan[], 
    ptsSecondary : TextSpan[]
) : int

Parameters

  • lPosition
    Type: System.Int32

    [in] A character offset into the primary buffer from the beginning of the buffer.

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsTextBufferCoordinator.GetMappingOfPrimaryPosition(Int32, array<TextSpan[], array<TextSpan[])

.NET Framework Security

See Also

Reference

VsTextBufferCoordinatorClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace