IVsSyntheticTextSession.AddSyntheticRegions Method

Adds synthetic text sessions.

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

Syntax

'宣言
Function AddSyntheticRegions ( _
    dwUpdateFlags As UInteger, _
    cRegions As Integer, _
    rgSynthReg As NewSyntheticRegion(), _
    <OutAttribute> ppEnum As IVsEnumSyntheticRegions() _
) As Integer
'使用
Dim instance As IVsSyntheticTextSession
Dim dwUpdateFlags As UInteger
Dim cRegions As Integer
Dim rgSynthReg As NewSyntheticRegion()
Dim ppEnum As IVsEnumSyntheticRegions()
Dim returnValue As Integer

returnValue = instance.AddSyntheticRegions(dwUpdateFlags, _
    cRegions, rgSynthReg, ppEnum)
int AddSyntheticRegions(
    uint dwUpdateFlags,
    int cRegions,
    NewSyntheticRegion[] rgSynthReg,
    IVsEnumSyntheticRegions[] ppEnum
)
int AddSyntheticRegions(
    [InAttribute] unsigned int dwUpdateFlags, 
    [InAttribute] int cRegions, 
    [InAttribute] array<NewSyntheticRegion>^ rgSynthReg, 
    [OutAttribute] array<IVsEnumSyntheticRegions^>^ ppEnum
)
function AddSyntheticRegions(
    dwUpdateFlags : uint, 
    cRegions : int, 
    rgSynthReg : NewSyntheticRegion[], 
    ppEnum : IVsEnumSyntheticRegions[]
) : int

Parameters

  • cRegions
    Type: System.Int32

    [in] Number of regions to add.

  • rgSynthReg
    Type: []

    [in] An array of cRegions structs defining the new regions.

  • ppEnum
    Type: []

    [out] May be a null reference (Nothing in Visual Basic); if non-null, returns an enumeration of the new regions.

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::AddSyntheticRegions(
   [in] DWORD dwUpdateFlags,
   [in] long cRegions,
   [in, size_is(cRegions)] NewSyntheticRegion *rgSynthReg,
   [out] IVsEnumSyntheticRegions **ppEnum
);

Permissions

See Also

Reference

IVsSyntheticTextSession Interface

IVsSyntheticTextSession Members

Microsoft.VisualStudio.TextManager.Interop Namespace