다음을 통해 공유


IVsColorizer Interface

Definition

Implemented by the language client to assign color attributes to a span of text.

public interface class IVsColorizer
public interface class IVsColorizer
__interface IVsColorizer
[System.Runtime.InteropServices.Guid("6698EF11-FF17-441C-8C5D-BC24A339B37D")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsColorizer
[System.Runtime.InteropServices.Guid("6698EF11-FF17-441C-8C5D-BC24A339B37D")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsColorizer
[<System.Runtime.InteropServices.Guid("6698EF11-FF17-441C-8C5D-BC24A339B37D")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsColorizer = interface
[<System.Runtime.InteropServices.Guid("6698EF11-FF17-441C-8C5D-BC24A339B37D")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsColorizer = interface
Public Interface IVsColorizer
Derived
Attributes

Notes to Implementers

Implement this interface when you wish to support syntax colorization.

IVsColorizer should be implemented on a separate object in your language service. For more information, see Syntax Coloring in a Legacy Language Service.

Notes to Callers

This interface is obtained by calling the GetColorizer(IVsTextLines, IVsColorizer) method in the IVsLanguageInfo interface. An editor obtains the IVsColorizer object from the language service to provide support for syntax highlighting. The language service itself may use its own colorizer to aid in support of more complex features such as the IntelliSense member completion lists and brace matching.

Methods

CloseColorizer()

Releases any references held on a VsTextBuffer object.

ColorizeLine(Int32, Int32, IntPtr, Int32, UInt32[])

Colorizes the given text.

GetStartState(Int32)

Determines the state in which colorization of the first line of the buffer should begin.

GetStateAtEndOfLine(Int32, Int32, IntPtr, Int32)

Determines the end-of-line state for a given line.

GetStateMaintenanceFlag(Int32)

Returns the state maintenance requirement for the colorizer.

Applies to