IVsTextLineMarker.GetMarkerCommandInfo(Int32, String[], UInt32[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回文本标记命令信息。
public:
int GetMarkerCommandInfo(int iItem, cli::array <System::String ^> ^ pbstrText, cli::array <System::UInt32> ^ pcmdf);
public:
int GetMarkerCommandInfo(int iItem, Platform::Array <Platform::String ^> ^ pbstrText, Platform::Array <unsigned int> ^ pcmdf);
int GetMarkerCommandInfo(int iItem, std::Array <std::wstring const &> const & pbstrText, std::Array <unsigned int> const & pcmdf);
public int GetMarkerCommandInfo (int iItem, string[] pbstrText, uint[] pcmdf);
abstract member GetMarkerCommandInfo : int * string[] * uint32[] -> int
Public Function GetMarkerCommandInfo (iItem As Integer, pbstrText As String(), pcmdf As UInteger()) As Integer
参数
- iItem
- Int32
中标识标记类型的上下文菜单命令的项编号的整数。 值通常介于0到9之间,但标记类型还可以支持命令值101到103。 有关这些命令值的详细信息,请参阅 MarkerCommandValues 。
- pbstrText
- String[]
弄指向字符串的指针,该字符串标识上下文菜单的标记类型命令文本。
- pcmdf
- UInt32[]
弄指定命令标志。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
实现
注解
COM 签名
从 textmgr:
HRESULT IVsTextLineMarker::GetMarkerCommandInfo(
[in] long iItem,
[out, custom(uuid_IVsTextMarker, "optional")] BSTR * pbstrText,
[out] DWORD* pcmdf
);
使用此方法返回与给定标记类型相关联的命令信息。 使用 ExecMarkerCommand 对标记类型执行命令。