Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the starting and ending position of an expansion text span selection.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaration
Function SetSelection ( _
iStart As Integer, _
iEnd As Integer _
) As Integer
int SetSelection(
int iStart,
int iEnd
)
int SetSelection(
[InAttribute] int iStart,
[InAttribute] int iEnd
)
abstract SetSelection :
iStart:int *
iEnd:int -> int
function SetSelection(
iStart : int,
iEnd : int
) : int
Parameters
iStart
Type: System.Int32[in] The start position of the expansion text span.
iEnd
Type: System.Int32[in] The end position of the expansion text span.
Return Value
Type: System.Int32
If the method succeeds, it returns VSConstants.S_OK. If it fails, it returns an error code.
Remarks
C++
From singlefileeditor.idl:
HRESULT IVsExpansionIntellisenseHost::SetSelection([in] long iStart, [in] long iEnd);
.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.