IVsTextMarkerColorSet.GetMarkerColors(Int32, UInt32, UInt32) 方法

定义

确定与特定标记类型关联的颜色集。

public:
 int GetMarkerColors(int iMarkerType, [Runtime::InteropServices::Out] System::UInt32 % pclrFore, [Runtime::InteropServices::Out] System::UInt32 % pclrBack);
int GetMarkerColors(int iMarkerType, [Runtime::InteropServices::Out] unsigned int & pclrFore, [Runtime::InteropServices::Out] unsigned int & pclrBack);
public int GetMarkerColors (int iMarkerType, out uint pclrFore, out uint pclrBack);
abstract member GetMarkerColors : int * uint32 * uint32 -> int
Public Function GetMarkerColors (iMarkerType As Integer, ByRef pclrFore As UInteger, ByRef pclrBack As UInteger) As Integer

参数

iMarkerType
Int32

中包含标记类型的整数。

pclrFore
UInt32

弄文本标记的前景色。 有关值的列表 pclrFore ,请参阅 COLORREF。

pclrBack
UInt32

弄文本标记的背景色。 有关值的列表 pclrBack ,请参阅 COLORREF。

返回

Int32

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

注解

COM 签名

从 textmgr:

HRESULT IVsTextMarkerColorSet::GetMarkerColors(  
   [in] long iMarkerType,  
   [out] COLORREF *pclrFore,  
   [out] COLORREF *pclrBack  
);  

中的信息 IVsTextMarkerColorSet.GetMarkerColors 在 IVsPackageDefinedTextMarkerType::中用于 DrawGlyphWithColors 允许标记类型确定另一个标记类型是否正在使用相同的颜色集。

适用于