IVsTextSelectionAction.SetOrigin(SELECTIONSTATE[]) Méthode

Définition

Définit l’origine de la sélection de texte.

public:
 int SetOrigin(cli::array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
public:
 int SetOrigin(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
int SetOrigin(std::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> const & pSelState);
public int SetOrigin (Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] pSelState);
abstract member SetOrigin : Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] -> int
Public Function SetOrigin (pSelState As SELECTIONSTATE()) As Integer

Paramètres

pSelState
SELECTIONSTATE[]

[out] Remplit la structure SELECTIONSTATE avec les valeurs d'état de la destination de texte sélectionnée.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de textmgr. idl :

HRESULT IVsTextSelectionAction::SetOrigin(  
    [in] SELECTIONSTATE *pSelState  
);  

S’applique à