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 origin of the text selection.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
Function SetOrigin ( _
pSelState As SELECTIONSTATE() _
) As Integer
int SetOrigin(
SELECTIONSTATE[] pSelState
)
int SetOrigin(
[InAttribute] array<SELECTIONSTATE>^ pSelState
)
abstract SetOrigin :
pSelState:SELECTIONSTATE[] -> int
function SetOrigin(
pSelState : SELECTIONSTATE[]
) : int
Parameters
pSelState
Type: array<Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[][out] Fills the SELECTIONSTATE struct with the state values of the selected text destination.
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 IVsTextSelectionAction::SetOrigin(
[in] SELECTIONSTATE *pSelState
);
.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.