IVsTextLineMarker.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 IVsTextLineMarker::ResetSpan(
[in] long iStartLine,
[in] CharIndex iStartIndex,
[in] long iEndLine
);
若要變更的文字標記延伸使用這個方法
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。