Compartir a través de


IVsTextMarkerColorSet.GetMarkerColors Method

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)

Syntax

'Declaration
Function GetMarkerColors ( _
    iMarkerType As Integer, _
    <OutAttribute> ByRef pclrFore As UInteger, _
    <OutAttribute> ByRef pclrBack As UInteger _
) As Integer
int GetMarkerColors(
    int iMarkerType,
    out uint pclrFore,
    out uint pclrBack
)
int GetMarkerColors(
    [InAttribute] int iMarkerType, 
    [OutAttribute] unsigned int% pclrFore, 
    [OutAttribute] unsigned int% pclrBack
)
abstract GetMarkerColors : 
        iMarkerType:int * 
        pclrFore:uint32 byref * 
        pclrBack:uint32 byref -> int
function GetMarkerColors(
    iMarkerType : int, 
    pclrFore : uint, 
    pclrBack : uint
) : int

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.

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.

.NET Framework Security

See Also

Reference

IVsTextMarkerColorSet Interface

Microsoft.VisualStudio.TextManager.Interop Namespace