共用方式為


IVsHiddenRegion.SetSpan Method

Sets the text span of the hidden region in the text buffer.

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

Syntax

'宣告
Function SetSpan ( _
    pSpan As TextSpan() _
) As Integer
'用途
Dim instance As IVsHiddenRegion
Dim pSpan As TextSpan()
Dim returnValue As Integer

returnValue = instance.SetSpan(pSpan)
int SetSpan(
    TextSpan[] pSpan
)
int SetSpan(
    [InAttribute] array<TextSpan>^ pSpan
)
abstract SetSpan : 
        pSpan:TextSpan[] -> int 
function SetSpan(
    pSpan : TextSpan[]
) : int

Parameters

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 IVsHiddenRegion::SetSpan(
   [in] TextSpan *pSpan
);

.NET Framework Security

See Also

Reference

IVsHiddenRegion Interface

IVsHiddenRegion Members

Microsoft.VisualStudio.TextManager.Interop Namespace