IVsTextBufferCoordinator.MapSecondaryToPrimarySpan 方法

映射到辅助缓冲区中的指定位置到主缓冲区内的位置。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

语法

声明
Function MapSecondaryToPrimarySpan ( _
    tsSecondary As TextSpan, _
    <OutAttribute> ptsPrimary As TextSpan() _
) As Integer
int MapSecondaryToPrimarySpan(
    TextSpan tsSecondary,
    TextSpan[] ptsPrimary
)
int MapSecondaryToPrimarySpan(
    [InAttribute] TextSpan tsSecondary, 
    [OutAttribute] array<TextSpan>^ ptsPrimary
)
abstract MapSecondaryToPrimarySpan : 
        tsSecondary:TextSpan * 
        ptsPrimary:TextSpan[] byref -> int
function MapSecondaryToPrimarySpan(
    tsSecondary : TextSpan, 
    ptsPrimary : TextSpan[]
) : int

参数

返回值

类型:Int32
如果成功,则返回; S_OK否则,返回错误代码。

备注

COM 签名

从 singlefileeditor.idl:

HRESULT MapSecondaryToPrimarySpan(
   [in]  TextSpan  tsSecondary,
   [out] TextSpan *ptsPrimary
);

.NET Framework 安全性

请参阅

参考

IVsTextBufferCoordinator 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间