IVsTextSelectionAction.SetOrigin(SELECTIONSTATE[]) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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
);