Udostępnij za pośrednictwem


IVsColorizer2 Interface

Definition

Extends a language service colorizer by allowing the environment to suspend and restart colorization.

public interface class IVsColorizer2
public interface class IVsColorizer2
__interface IVsColorizer2
[System.Runtime.InteropServices.Guid("868A4381-537A-4D61-803C-301819CE2C2F")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsColorizer2
[System.Runtime.InteropServices.Guid("868A4381-537A-4D61-803C-301819CE2C2F")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsColorizer2
[<System.Runtime.InteropServices.Guid("868A4381-537A-4D61-803C-301819CE2C2F")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsColorizer2 = interface
[<System.Runtime.InteropServices.Guid("868A4381-537A-4D61-803C-301819CE2C2F")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsColorizer2 = interface
Public Interface IVsColorizer2
Attributes

Remarks

It is often useful to suspend and then restart colorization so as not to interfere with other operations.

For example, when generated code is being inserted, you should wait until the code has been reformatted and refactored before colorizing.

Notes to Implementers

Implement this interface if you wish to provide the Visual Studio environment a mechanism to suspend and restart colorization.

IVsColorizer2 must be implemented on the same object providing the implementation of IVsColorizer.

IVsColorizer2 does not derive from IVsColorizer and does not implement its methods.

Notes to Callers

Call the QueryInterface method in the IVsColorizer interface to obtain this interface. An editor can use this interface to optimize screen refreshes during complex tasks.

Methods

BeginColorization()

Starts or resume colorization operations.

EndColorization()

Suspends or ends colorization operations.

Applies to