Condividi tramite


IVsPackageDefinedTextMarkerType Interface

Describes how a custom marker type behaves and appears to the user.

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

Syntax

'Dichiarazione
<GuidAttribute("C70F1528-1A66-403F-AD42-F60F9D413E05")> _
<InterfaceTypeAttribute()> _
Public Interface IVsPackageDefinedTextMarkerType
[GuidAttribute("C70F1528-1A66-403F-AD42-F60F9D413E05")]
[InterfaceTypeAttribute()]
public interface IVsPackageDefinedTextMarkerType
[GuidAttribute(L"C70F1528-1A66-403F-AD42-F60F9D413E05")]
[InterfaceTypeAttribute()]
public interface class IVsPackageDefinedTextMarkerType
[<GuidAttribute("C70F1528-1A66-403F-AD42-F60F9D413E05")>]
[<InterfaceTypeAttribute()>]
type IVsPackageDefinedTextMarkerType =  interface end
public interface IVsPackageDefinedTextMarkerType

The IVsPackageDefinedTextMarkerType type exposes the following members.

Methods

  Name Description
Public method DrawGlyphWithColors Draws a glyph in the given display context and bounding rectangle using the provided colors.
Public method GetBehaviorFlags Controls how the marker tracks text when edits occur.
Public method GetDefaultColors Returns the default foreground and background colors for a marker.
Public method GetDefaultFontFlags Specifies additional modifications to text appearance determined by the marker.
Public method GetDefaultLineStyle Returns the default line attributes for a custom marker type.
Public method GetPriorityIndex Returns the priority index for the custom marker type, with the highest priority value receiving the topmost placement.
Public method GetVisualStyle Returns the appearance, location, and coloring of a custom marker type as a bit filed.

Top

Remarks

This interface allows you to specify marker behavior for a custom marker type. You can still change certain marker attributes using the IVsTextMarker interface (SetBehavior), SetVisualStyle, and so on) as well as by supplying an IVsTextMarkerClient when you create a marker.

Implement IVsPackageDefinedTextMarkerType to describe how a given marker behaves and appears to the user. The environment calls the methods of IVsPackageDefinedTextMarkerType when new customization information is built as follows:

  • User starts the integrated development environment (IDE) for the first time.

  • User selects Options on the Tools menu, and then clicks the Reset Defaults button in the Font and Colors dialog box.

Notes to Implementers

Implemented to provide a custom marker type.

Notes to Callers

Called by the environment to determine marker information applicable to your custom marker type.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace