共用方式為


IVsHiddenRegion Interface

Manages the hidden region.

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

Syntax

'宣告
<InterfaceTypeAttribute()> _
<GuidAttribute("41E57382-63F9-48E6-9DBD-163D2B14D41B")> _
Public Interface IVsHiddenRegion
[InterfaceTypeAttribute()]
[GuidAttribute("41E57382-63F9-48E6-9DBD-163D2B14D41B")]
public interface IVsHiddenRegion
[InterfaceTypeAttribute()]
[GuidAttribute(L"41E57382-63F9-48E6-9DBD-163D2B14D41B")]
public interface class IVsHiddenRegion
[<InterfaceTypeAttribute()>]
[<GuidAttribute("41E57382-63F9-48E6-9DBD-163D2B14D41B")>]
type IVsHiddenRegion =  interface end
public interface IVsHiddenRegion

The IVsHiddenRegion type exposes the following members.

Methods

  Name Description
Public method GetBanner Returns the banner for the hidden region.
Public method GetBaseBuffer Provides a pointer to the text buffer from the hidden region.
Public method GetBehavior Returns the hidden region behavior, that is, client-controlled or editor-controlled.
Public method GetClientData Returns the client data for the hidden region.
Public method GetSpan Returns the text span of the hidden region in the text buffer.
Public method GetState Returns the state of the hidden region.
Public method GetType Returns the hidden region type (that is, concealed or collapsible).
Public method Invalidate Removes the hidden region and exposes the hidden text in the normal view.
Public method IsValid Determines whether the hidden region is valid.
Public method SetBanner Sets the banner for the hidden region.
Public method SetClientData Sets the client data for the hidden region.
Public method SetSpan Sets the text span of the hidden region in the text buffer.
Public method SetState Sets the state of the hidden region.

Top

Remarks

This interface represents a part of the buffer that has been hidden. Using the IVsHiddenRegion interface, you can move a hidden region, change its state (for example, collapsed or expanded), or remove it.

Notes to Callers

Call this interface to manage the properties of a hidden region. The environment provides a pointer to IVsHiddenRegion in calls to your hidden text client (IVsHiddenTextClient object). You can only specify a hidden text client if you create a new hidden text session (CreateHiddenTextSession).

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace