Compartilhar via


IVsSyntheticTextSession.EnumSyntheticRegions Method

Definition

Returns a static snapshot list of synthetic regions.

public:
 int EnumSyntheticRegions(System::UInt32 dwFindFlags, System::UInt32 dwCookie, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsRange, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumSyntheticRegions ^ % ppEnum);
public:
 int EnumSyntheticRegions(unsigned int dwFindFlags, unsigned int dwCookie, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsRange, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumSyntheticRegions ^ &  ppEnum);
int EnumSyntheticRegions(unsigned int dwFindFlags, unsigned int dwCookie, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsRange, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumSyntheticRegions const & & ppEnum);
public int EnumSyntheticRegions (uint dwFindFlags, uint dwCookie, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsRange, out Microsoft.VisualStudio.TextManager.Interop.IVsEnumSyntheticRegions ppEnum);
abstract member EnumSyntheticRegions : uint32 * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * IVsEnumSyntheticRegions -> int
Public Function EnumSyntheticRegions (dwFindFlags As UInteger, dwCookie As UInteger, ptsRange As TextSpan(), ByRef ppEnum As IVsEnumSyntheticRegions) As Integer

Parameters

dwFindFlags
UInt32

[in] Indicates how to find the region. For values of dwFindFlags see the FIND_SYNTHETIC_REGION_FLAGS enumeration.

dwCookie
UInt32

[in] Additional search parameter; can be used to search for a specific client DWORD.

ptsRange
TextSpan[]

[in] Search parameter for finding text.

ppEnum
IVsEnumSyntheticRegions

[out] The resulting enumeration.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsSyntheticTextSession::EnumSyntheticRegions(  
   [in] DWORD dwFindFlags,  
   [in] DWORD_PTR dwCookie,  
   [in] TextSpan *ptsRange,  
   [out] IVsEnumSyntheticRegions **ppEnum  
);  

Applies to