IVsTextLineMarker.GetPriorityIndex(Int32) 方法

定义

返回文本标记优先级索引,其最大值获取最顶部的位置。

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

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

注解

COM 签名

从 textmgr:

HRESULT IVsTextLineMarker::GetPriorityIndex(  
   [out] long *piPriorityIndex  
);  

使用此方法可以确定与标记类型相关联的优先级别。 与核心文本编辑器一起提供的所有标记类型都具有与之关联的默认优先级。 标记类型的优先级用于确定如何处理命令等标记类型。

适用于