IVsFontAndColorUtilities.GetColorType(UInt32, Int32) Méthode

Définition

Obtient le type de représentation de couleur dans COLORREF.

public:
 int GetColorType(System::UInt32 crSource, [Runtime::InteropServices::Out] int % pctType);
int GetColorType(unsigned int crSource, [Runtime::InteropServices::Out] int & pctType);
public int GetColorType (uint crSource, out int pctType);
abstract member GetColorType : uint32 * int -> int
Public Function GetColorType (crSource As UInteger, ByRef pctType As Integer) As Integer

Paramètres

crSource
UInt32

[in] Représentation de COLORREF de la valeur de couleur.

pctType
Int32

à Entier représentant le type de couleur de crSource .

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

La valeur de pctType sera un membre de l' __VSCOLORTYPE énumération.

Le code managé peut obtenir des fonctionnalités équivalentes à GetSysColor avec et effectuer une SystemColors conversion entre COLORREF et la System.Drawing.Color structure à l’aide M:System.Drawing.ColorTranslator.FromWin32 de et de M:System.Drawing.ColorTranslator.ToWin32 .

S’applique à