共用方式為


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

'宣告
Function GetBaseBufferAnchor ( _
    <OutAttribute> ByRef piAnchorLine As Integer, _
    <OutAttribute> ByRef piAnchorIndex As Integer _
) As Integer
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 line 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

Microsoft.VisualStudio.TextManager.Interop Namespace