IVsTextMarkerColorSet::GetMarkerColors Method (Int32, UInt32, UInt32)

 

Determines the color set associated with a particular marker type.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int GetMarkerColors(
	int iMarkerType,
	[OutAttribute] unsigned int% pclrFore,
	[OutAttribute] unsigned int% pclrBack
)

Parameters

iMarkerType
Type: System::Int32

[in] Integer containing the marker type.

pclrFore
Type: System::UInt32

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

pclrBack
Type: System::UInt32

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: