Partilhar via


Método IVsTextMarkerColorSet.GetMarkerColors

Determina o conjunto de cores associado com um tipo específico de marcador.

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

Sintaxe

'Declaração
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

Parâmetros

  • iMarkerType
    Tipo: Int32

    [in] Integer contendo o tipo de marcador.

  • pclrFore
    Tipo: UInt32%

    [out] Cor de primeiro plano do marcador de texto. Para obter uma lista de pclrFore valores, consulte COLORREF.

  • pclrBack
    Tipo: UInt32%

    [out] Cor de fundo do marcador de texto. Para obter uma lista de pclrBack valores, consulte COLORREF.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr.idl:

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

Informações de IVsTextMarkerColorSet.GetMarkerColors é usado em IVsPackageDefinedTextMarkerType::DrawGlyphWithColors permitir que um tipo de marcador para determinar se o outro tipo de marcador está usando a mesma cor definida.

Segurança do .NET Framework

Consulte também

Referência

IVsTextMarkerColorSet Interface

Namespace Microsoft.VisualStudio.TextManager.Interop