共用方式為


IVsSyntheticTextSession.EnumSyntheticRegions Method

Returns a static snapshot list of synthetic regions.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
Function EnumSyntheticRegions ( _
    dwFindFlags As UInteger, _
    dwCookie As UInteger, _
    ptsRange As TextSpan(), _
    <OutAttribute> ByRef ppEnum As IVsEnumSyntheticRegions _
) As Integer
'用途
Dim instance As IVsSyntheticTextSession
Dim dwFindFlags As UInteger
Dim dwCookie As UInteger
Dim ptsRange As TextSpan()
Dim ppEnum As IVsEnumSyntheticRegions
Dim returnValue As Integer

returnValue = instance.EnumSyntheticRegions(dwFindFlags, _
    dwCookie, ptsRange, ppEnum)
int EnumSyntheticRegions(
    uint dwFindFlags,
    uint dwCookie,
    TextSpan[] ptsRange,
    out IVsEnumSyntheticRegions ppEnum
)
int EnumSyntheticRegions(
    [InAttribute] unsigned int dwFindFlags, 
    [InAttribute] unsigned int dwCookie, 
    [InAttribute] array<TextSpan>^ ptsRange, 
    [OutAttribute] IVsEnumSyntheticRegions^% ppEnum
)
abstract EnumSyntheticRegions : 
        dwFindFlags:uint32 * 
        dwCookie:uint32 * 
        ptsRange:TextSpan[] * 
        ppEnum:IVsEnumSyntheticRegions byref -> int 
function EnumSyntheticRegions(
    dwFindFlags : uint, 
    dwCookie : uint, 
    ptsRange : TextSpan[], 
    ppEnum : IVsEnumSyntheticRegions
) : int

Parameters

  • dwCookie
    Type: System.UInt32
    [in] Additional search parameter; can be used to search for a specific client DWORD.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsSyntheticTextSession Interface

IVsSyntheticTextSession Members

Microsoft.VisualStudio.TextManager.Interop Namespace