共用方式為


IVsSyntheticRegion.SetBaseBufferAnchor Method

Sets 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 SetBaseBufferAnchor ( _
    iAnchorLine As Integer, _
    iAnchorIndex As Integer _
) As Integer
int SetBaseBufferAnchor(
    int iAnchorLine,
    int iAnchorIndex
)
int SetBaseBufferAnchor(
    [InAttribute] int iAnchorLine, 
    [InAttribute] int iAnchorIndex
)
abstract SetBaseBufferAnchor : 
        iAnchorLine:int * 
        iAnchorIndex:int -> int 
function SetBaseBufferAnchor(
    iAnchorLine : int, 
    iAnchorIndex : int
) : int

Parameters

  • iAnchorLine
    Type: System.Int32
    [in] The index of the base buffer line location.
  • iAnchorIndex
    Type: System.Int32
    [in] 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::SetBaseBufferAnchor(
   [in] long iAnchorLine,
   [in] long iAnchorIndex
);

.NET Framework Security

See Also

Reference

IVsSyntheticRegion Interface

Microsoft.VisualStudio.TextManager.Interop Namespace