Partager via


IVsFinder.SetPosition(UInt32, TextAddress) Method

Definition

Sets search positions

public:
 int SetPosition(System::UInt32 fp, Microsoft::VisualStudio::TextManager::Interop::TextAddress ta);
public:
 int SetPosition(unsigned int fp, Microsoft::VisualStudio::TextManager::Interop::TextAddress ta);
int SetPosition(unsigned int fp, Microsoft::VisualStudio::TextManager::Interop::TextAddress ta);
public int SetPosition (uint fp, Microsoft.VisualStudio.TextManager.Interop.TextAddress ta);
abstract member SetPosition : uint32 * Microsoft.VisualStudio.TextManager.Interop.TextAddress -> int
Public Function SetPosition (fp As UInteger, ta As TextAddress) As Integer

Parameters

fp
UInt32

[in] Search position. Values are taken from the __VSFINDPOS enum.

ta
TextAddress

[in] The text address.

Returns

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

Remarks

COM Signature

From textfind.idl:

HRESULT IVsFinder::SetPosition(  
   [in] VSFINDPOS fp,  
   [in] TextAddress ta  
);  

Applies to