描述自定义标记类型的行为并显示给用户。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
<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
IVsPackageDefinedTextMarkerType 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
DrawGlyphWithColors | 使用提供的颜色,绘制标志符号在特定显示上下文和边框。 |
![]() |
GetBehaviorFlags | 控件标记如何跟踪文本,在编辑时发生。 |
![]() |
GetDefaultColors | 返回标记的默认值前景色和背景色。 |
![]() |
GetDefaultFontFlags | 指定要标记所依赖的文本外观的其他修改。 |
![]() |
GetDefaultLineStyle | 返回一个自定义标记类型的默认行属性。 |
![]() |
GetPriorityIndex | 返回自定义标记类型的优先级索引,在最高优先级的值接收最顶层的位置。 |
![]() |
GetVisualStyle | 返回一个自定义标记类型的外观、位置和着色,个存档。 |
页首
备注
此接口可为一个自定义标记类型指定标记行为。 使用 IVsTextMarker 接口 (SetBehavior),您仍可以更改某些标记属性, SetVisualStyle,等等) 以及通过提供 IVsTextMarkerClient ,在创建标记时。
实现 IVsPackageDefinedTextMarkerType 描述特定标记的行为并显示给用户。 该环境 IVsPackageDefinedTextMarkerType 调用方法时,新的自定义信息时如下所示:
用户 (IDE)首次启动集成开发环境。
用户在 " 工具 " 菜单上选择 选项 ,然后单击 字体和颜色 对话框的 重置默认 按钮。
对实现者的说明
实现提供自定义标记类型。
对调用者的说明
调用通过环境确定标记信息适用于自定义标记类型。