Share via


IVsTextMarkerType.GetDefaultColors, méthode

Retourne le premier plan et les couleurs d'arrière-plan par défaut pour une marque.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function GetDefaultColors ( _
    <OutAttribute> piForeground As COLORINDEX(), _
    <OutAttribute> piBackground As COLORINDEX() _
) As Integer
int GetDefaultColors(
    COLORINDEX[] piForeground,
    COLORINDEX[] piBackground
)
int GetDefaultColors(
    [OutAttribute] array<COLORINDEX>^ piForeground, 
    [OutAttribute] array<COLORINDEX>^ piBackground
)
abstract GetDefaultColors : 
        piForeground:COLORINDEX[] byref * 
        piBackground:COLORINDEX[] byref -> int
function GetDefaultColors(
    piForeground : COLORINDEX[], 
    piBackground : COLORINDEX[]
) : int

Paramètres

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsTextMarkerType::GetDefaultColors(
   [out] COLORINDEX *piForeground,
   [out] COLORINDEX *piBackground
);

Sécurité .NET Framework

Voir aussi

Référence

IVsTextMarkerType Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms