共用方式為


VsSyntheticTextLayerClass.EnumSyntheticRegions Method

Definition

Returns a static snapshot list of synthetic regions.

public:
 virtual 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) = Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession::EnumSyntheticRegions;
public:
 virtual 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:
 virtual 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) = Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession::EnumSyntheticRegions;
 virtual 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 virtual 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
override this.EnumSyntheticRegions : uint32 * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * IVsEnumSyntheticRegions -> int
Public Overridable 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 enum.

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.

Implements

Applies to