Freigeben über


IVsHiddenRegion Interface

Definition

Manages the hidden region.

public interface class IVsHiddenRegion
public interface class IVsHiddenRegion
__interface IVsHiddenRegion
[System.Runtime.InteropServices.Guid("41E57382-63F9-48E6-9DBD-163D2B14D41B")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsHiddenRegion
[System.Runtime.InteropServices.Guid("41E57382-63F9-48E6-9DBD-163D2B14D41B")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsHiddenRegion
[<System.Runtime.InteropServices.Guid("41E57382-63F9-48E6-9DBD-163D2B14D41B")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsHiddenRegion = interface
[<System.Runtime.InteropServices.Guid("41E57382-63F9-48E6-9DBD-163D2B14D41B")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsHiddenRegion = interface
Public Interface IVsHiddenRegion
Attributes

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(UInt32, Object, IVsHiddenTextClient, IVsHiddenTextSession)).

Methods

GetBanner(String)

Returns the banner for the hidden region.

GetBaseBuffer(IVsTextLines)

Provides a pointer to the text buffer from the hidden region.

GetBehavior(UInt32)

Returns the hidden region behavior, that is, client-controlled or editor-controlled.

GetClientData(IntPtr)
GetClientData(UInt32)

Returns the client data for the hidden region.

GetSpan(TextSpan[])

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

GetState(UInt32)

Returns the state of the hidden region.

GetType(Int32)

Returns the hidden region type (that is, concealed or collapsible).

Invalidate(UInt32)

Removes the hidden region and exposes the hidden text in the normal view.

IsValid()

Determines whether the hidden region is valid.

SetBanner(String)

Sets the banner for the hidden region.

SetClientData(IntPtr)
SetClientData(UInt32)

Sets the client data for the hidden region.

SetSpan(TextSpan[])

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

SetState(UInt32, UInt32)

Sets the state of the hidden region.

Applies to