IVsPackageDefinedTextMarkerType.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 IVsPackageDefinedTextMarkerType::GetPriorityIndex(
[out] long *piPriorityIndex
);
具有最高优先级值的标记在命令处理过程中会接收最上方的位置,并且每个后续标记都按其优先级值以降序排列。 如果标记应该重写内置项(如书签和快捷方式标记),则使用优先级值10000和更高。 如果标记不应覆盖其他标记,请使用90到100的值。
备注
如果发生优先级冲突,环境可能会为外部标记分配一个统一的低优先级。