共用方式為


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

'宣告
Function GetMarkerColors ( _
    iMarkerType As Integer, _
    <OutAttribute> ByRef pclrFore As UInteger, _
    <OutAttribute> ByRef pclrBack As UInteger _
) As Integer
'用途
Dim instance As IVsTextMarkerColorSet
Dim iMarkerType As Integer
Dim pclrFore As UInteger
Dim pclrBack As UInteger
Dim returnValue As Integer

returnValue = instance.GetMarkerColors(iMarkerType, _
    pclrFore, pclrBack)
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

IVsTextMarkerColorSet Members

Microsoft.VisualStudio.TextManager.Interop Namespace