IVsTextMarkerType.GetPriorityIndex(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回自定义标记类型的优先级索引,其最高优先级值接收最顶部的位置。
public:
int GetPriorityIndex([Runtime::InteropServices::Out] int % piPriorityIndex);
int GetPriorityIndex([Runtime::InteropServices::Out] int & piPriorityIndex);
public int GetPriorityIndex (out int piPriorityIndex);
abstract member GetPriorityIndex : int -> int
Public Function GetPriorityIndex (ByRef piPriorityIndex As Integer) As Integer
参数
- piPriorityIndex
- Int32
弄指向文本标记类型的优先级索引的指针。 有关值的列表 piPriorityIndex ,请参阅 MARKERTYPE 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textmgr:
HRESULT IVsTextMarkerType::GetPriorityIndex(
[out] long *piPriorityIndex
);
使用此方法可以确定自定义标记类型的优先级别。 Visual Studio core 文本编辑器提供的所有标记类型都具有与之关联的默认优先级。 标记类型的优先级用于确定如何处理命令的标记类型,等等。