Metoda IVsFontAndColorUtilities.GetTrackedItemIndex — (UInt32, Int32, Int32)
Data opublikowania: październik 2016
Uzyskania indeksu śledzonych kolor reprezentowane przez COLORREF i członkiem __VSCOLORASPECT wskazane, gdy kolor została użyta w pierwszego planu i tła.
Przestrzeń nazw: Microsoft.VisualStudio.Shell.Interop
Zestaw: Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Składnia
int GetTrackedItemIndex(
uint crSource,
out int pAspect,
out int piItem
)
int GetTrackedItemIndex(
unsigned int crSource,
[OutAttribute] int% pAspect,
[OutAttribute] int% piItem
)
abstract GetTrackedItemIndex :
crSource:uint32 *
pAspect:int byref *
piItem:int byref -> int
Function GetTrackedItemIndex (
crSource As UInteger,
<OutAttribute> ByRef pAspect As Integer,
<OutAttribute> ByRef piItem As Integer
) As Integer
Parametry
crSource
Type: System.UInt32[in] Reprezentacja COLORREF wartości koloru.
pAspect
Type: System.Int32[out] Prawidłowymi elementami członkowskimi typu __VSCOLORASPECT if wskazuje wartość crSource jest kolor pierwszego planu i tła.
piItem
Type: System.Int32Indeks elementu śledzone.
Wartość zwracana
Type: System.Int32
Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.
Uwagi
Zarządzany kod można uzyskać funkcja GetSysColor z SystemColors i konwersji między COLORREF i System.Drawing.Color struktury przy użyciu M:System.Drawing.ColorTranslator.FromWin32 i M:System.Drawing.ColorTranslator.ToWin32.
Zobacz też
Interfejs IVsFontAndColorUtilities
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop
Używanie czcionek i kolorów
Powrót do początku