IVsThreadSafeTextView.ThreadSafeSetCaretPos Method
Sends coordinates to.SetCaretPos.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Function ThreadSafeSetCaretPos ( _
iLine As Integer, _
iColumn As Integer _
) As Integer
'使用
Dim instance As IVsThreadSafeTextView
Dim iLine As Integer
Dim iColumn As Integer
Dim returnValue As Integer
returnValue = instance.ThreadSafeSetCaretPos(iLine, _
iColumn)
int ThreadSafeSetCaretPos(
int iLine,
int iColumn
)
int ThreadSafeSetCaretPos(
[InAttribute] int iLine,
[InAttribute] int iColumn
)
abstract ThreadSafeSetCaretPos :
iLine:int *
iColumn:int -> int
function ThreadSafeSetCaretPos(
iLine : int,
iColumn : int
) : int
Parameters
- iLine
Type: System.Int32
[in] Line containing the caret position.
- iColumn
Type: System.Int32
[in] Column identifying the caret position. Viewcol coordinates may include virtual space.
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 IVsThreadSafeTextView::ThreadSafeSetCaretPos(
[in] long iLine,
[in] ViewCol iColumn
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.