共用方式為


IVsTextSelectionAction.SetDestination(SELECTIONSTATE[]) Method

Definition

Sets the destination of the text selection.

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

Parameters

pSelState
SELECTIONSTATE[]

[out] Fills the SELECTIONSTATE struct with the state values of the selected text destination.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

Applies to