다음을 통해 공유


IVsTextSelectionAction.SetOrigin Method

Sets the origin of the text selection.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

‘선언
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

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

See Also

Reference

IVsTextSelectionAction Interface

Microsoft.VisualStudio.TextManager.Interop Namespace