Compartir a través de


IVsSyntheticRegion.GetBaseBufferAnchor Method

Gets the base buffer anchor of the region.

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

Syntax

'Declaración
Function GetBaseBufferAnchor ( _
    <OutAttribute> ByRef piAnchorLine As Integer, _
    <OutAttribute> ByRef piAnchorIndex As Integer _
) As Integer
'Uso
Dim instance As IVsSyntheticRegion
Dim piAnchorLine As Integer
Dim piAnchorIndex As Integer
Dim returnValue As Integer

returnValue = instance.GetBaseBufferAnchor(piAnchorLine, _
    piAnchorIndex)
int GetBaseBufferAnchor(
    out int piAnchorLine,
    out int piAnchorIndex
)
int GetBaseBufferAnchor(
    [OutAttribute] int% piAnchorLine, 
    [OutAttribute] int% piAnchorIndex
)
abstract GetBaseBufferAnchor : 
        piAnchorLine:int byref * 
        piAnchorIndex:int byref -> int 
function GetBaseBufferAnchor(
    piAnchorLine : int, 
    piAnchorIndex : int
) : int

Parameters

  • piAnchorLine
    Type: System.Int32%
    [out] The index of the base buffer location.
  • piAnchorIndex
    Type: System.Int32%
    [out] The current base buffer location of the region.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsSyntheticRegion::GetBaseBufferAnchor(
   [out] long *piAnchorLine,
   [out] long *piAnchorIndex
);

.NET Framework Security

See Also

Reference

IVsSyntheticRegion Interface

IVsSyntheticRegion Members

Microsoft.VisualStudio.TextManager.Interop Namespace