共用方式為


VsHiddenTextLayerClass Class

Definition

Adds or enumerates hidden text sessions.

public ref class VsHiddenTextLayerClass : Microsoft::VisualStudio::TextManager::Interop::VsHiddenTextLayer
[Windows::Foundation::Metadata::WebHostHidden]
class VsHiddenTextLayerClass : Microsoft::VisualStudio::TextManager::Interop::VsHiddenTextLayer
[System.Runtime.InteropServices.ClassInterface(0)]
[System.Runtime.InteropServices.Guid("9B6AB22E-916A-11D2-8914-0000F87579D2")]
[System.Runtime.InteropServices.TypeLibType(2)]
public class VsHiddenTextLayerClass : Microsoft.VisualStudio.TextManager.Interop.VsHiddenTextLayer
[System.Runtime.InteropServices.Guid("9B6AB22E-916A-11D2-8914-0000F87579D2")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class VsHiddenTextLayerClass : Microsoft.VisualStudio.TextManager.Interop.VsHiddenTextLayer
[<System.Runtime.InteropServices.ClassInterface(0)>]
[<System.Runtime.InteropServices.Guid("9B6AB22E-916A-11D2-8914-0000F87579D2")>]
[<System.Runtime.InteropServices.TypeLibType(2)>]
type VsHiddenTextLayerClass = class
    interface IVsHiddenTextSession
    interface VsHiddenTextLayer
[<System.Runtime.InteropServices.Guid("9B6AB22E-916A-11D2-8914-0000F87579D2")>]
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type VsHiddenTextLayerClass = class
    interface VsHiddenTextLayer
    interface IVsHiddenTextSession
Public Class VsHiddenTextLayerClass
Implements VsHiddenTextLayer
Inheritance
VsHiddenTextLayerClass
Attributes
Implements

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

Constructors

VsHiddenTextLayerClass()

Creates a new instance of the class.

Methods

AddHiddenRegions(UInt32, Int32, NewHiddenRegion[], IVsEnumHiddenRegions[])

Adds a new hidden region to the text buffer.

EnumHiddenRegions(UInt32, IntPtr, TextSpan[], IVsEnumHiddenRegions)
EnumHiddenRegions(UInt32, UInt32, TextSpan[], IVsEnumHiddenRegions)

Returns a list of the current hidden regions.

Terminate()

Ends the hidden text session.

UnadviseClient()

Releases the IVsHiddenTextClient.

Applies to