共用方式為


IVsTextStreamMarker.ResetSpan 方法

重設 [位置] 及 [文字標記的範圍。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
Function ResetSpan ( _
    iNewPos As Integer, _
    iNewLen As Integer _
) As Integer
int ResetSpan(
    int iNewPos,
    int iNewLen
)
int ResetSpan(
    [InAttribute] int iNewPos, 
    [InAttribute] int iNewLen
)
abstract ResetSpan : 
        iNewPos:int * 
        iNewLen:int -> int
function ResetSpan(
    iNewPos : int, 
    iNewLen : int
) : int

參數

  • iNewPos
    類型:Int32

    [in]新文字資料流中的文字標記位置。

  • iNewLen
    類型:Int32

    [in]文字中標記的文字資料流的新長度。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsTextStreamMarker::ResetSpan(
   [in] long iNewPos,
   [in] long iNewLen
);

使用這個方法來變更範圍和文字標記的位置。

.NET Framework 安全性

請參閱

參考

IVsTextStreamMarker 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間