次の方法で共有


IVsColorizer2 Interface

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

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

Syntax

'宣言
<GuidAttribute("868A4381-537A-4D61-803C-301819CE2C2F")> _
<InterfaceTypeAttribute()> _
Public Interface IVsColorizer2
'使用
Dim instance As IVsColorizer2
[GuidAttribute("868A4381-537A-4D61-803C-301819CE2C2F")]
[InterfaceTypeAttribute()]
public interface IVsColorizer2
[GuidAttribute(L"868A4381-537A-4D61-803C-301819CE2C2F")]
[InterfaceTypeAttribute()]
public interface class IVsColorizer2
[<GuidAttribute("868A4381-537A-4D61-803C-301819CE2C2F")>]
[<InterfaceTypeAttribute()>]
type IVsColorizer2 =  interface end
public interface IVsColorizer2

Remarks

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

For example when automatically generated code is being inserted, it is advisable to wait until it has been reformatted and refactoring has take place before colorizing.

Implementing this interface allows the Visual Studio environment to do this.

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 uses this interface to optimize screen refreshes during complex tasks.

See Also

Reference

IVsColorizer2 Members

Microsoft.VisualStudio.TextManager.Interop Namespace