Sdílet prostřednictvím


IVsHiddenRegion.SetSpan(TextSpan[]) Method

Definition

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

public:
 int SetSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan);
public:
 int SetSpan(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan);
int SetSpan(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpan);
public int SetSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpan);
abstract member SetSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function SetSpan (pSpan As TextSpan()) As Integer

Parameters

pSpan
TextSpan[]

[in] Pointer to the text span for the hidden region. For more information, see TextSpan.

Returns

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  
);  

Applies to