IVsHiddenRegion.GetSpan Method
Returns 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
'Déclaration
Function GetSpan ( _
<OutAttribute> pSpan As TextSpan() _
) As Integer
'Utilisation
Dim instance As IVsHiddenRegion
Dim pSpan As TextSpan()
Dim returnValue As Integer
returnValue = instance.GetSpan(pSpan)
int GetSpan(
TextSpan[] pSpan
)
int GetSpan(
[OutAttribute] array<TextSpan>^ pSpan
)
abstract GetSpan :
pSpan:TextSpan[] byref -> int
function GetSpan(
pSpan : TextSpan[]
) : int
Parameters
- pSpan
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[out] Pointer to the text span for the hidden region. For more information, see TextSpan.
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::GetSpan(
[out] TextSpan *pSpan
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.