Freigeben über


IVsTextMarkerColorSet.GetMarkerColors(Int32, UInt32, UInt32) Method

Definition

Determines the color set associated with a particular marker type.

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

Parameters

iMarkerType
Int32

[in] Integer containing the marker type.

pclrFore
UInt32

[out] Foreground color of the text marker. For a list of pclrFore values, see COLORREF.

pclrBack
UInt32

[out] Background color of the text marker. For a list of pclrBack values, see COLORREF.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

Information from IVsTextMarkerColorSet.GetMarkerColors is used in IVsPackageDefinedTextMarkerType::DrawGlyphWithColors to allow a marker type to determine whether another marker type is using the same color set.

Applies to