共用方式為


IVsTextLayerMarker.ResetSpan 方法

重設資料標記的位置。

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

語法

'宣告
Function ResetSpan ( _
    iStartLine As Integer, _
    iStartIndex As Integer, _
    iEndLine As Integer, _
    iEndIndex As Integer _
) As Integer
int ResetSpan(
    int iStartLine,
    int iStartIndex,
    int iEndLine,
    int iEndIndex
)
int ResetSpan(
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndIndex
)
abstract ResetSpan : 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int -> int
function ResetSpan(
    iStartLine : int, 
    iStartIndex : int, 
    iEndLine : int, 
    iEndIndex : int
) : int

參數

  • iStartLine
    類型:Int32

    [in]起始行。

  • iStartIndex
    類型:Int32

    [in]起始的行內的字元索引 (必須是 < = 列的長度)。

  • iEndLine
    類型:Int32

    [in]結束行。

  • iEndIndex
    類型:Int32

    [in]結束的行內的字元索引 (必須是 < = 列的長度)。

傳回值

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

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsTextLayerMarker::ResetSpan(
   [in] long iStartLine,
   [in] CharIndex iStartIndex,
   [in] long iEndLine
);

.NET Framework 安全性

請參閱

參考

IVsTextLayerMarker 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間