Udostępnij za pośrednictwem


Metoda IVsFontAndColorEvents.OnItemChanged — (Guid, String, Int32, ColorableItemInfo , UInt32, UInt32)

 

Wywoływany przez środowisko, zawsze, gdy element Wyświetl elementy listy rozwijanej jest modyfikowany.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop (w Microsoft.VisualStudio.Shell.Interop.dll)

Składnia

int OnItemChanged(
    [InAttribute] ref Guid rguidCategory,
    string szItem,
    int iItem,
    ColorableItemInfo[] pInfo,
    uint crLiteralForeground,
    uint crLiteralBackground
)
int OnItemChanged(
    [InAttribute] Guid% rguidCategory,
    String^ szItem,
    int iItem,
    array<ColorableItemInfo>^ pInfo,
    unsigned int crLiteralForeground,
    unsigned int crLiteralBackground
)
abstract OnItemChanged : 
        rguidCategory:Guid byref *
        szItem:string *
        iItem:int *
        pInfo:ColorableItemInfo[] *
        crLiteralForeground:uint32 *
        crLiteralBackground:uint32 -> int
Function OnItemChanged (
    <InAttribute> ByRef rguidCategory As Guid,
    szItem As String,
    iItem As Integer,
    pInfo As ColorableItemInfo(),
    crLiteralForeground As UInteger,
    crLiteralBackground As UInteger
) As Integer

Parametry

  • rguidCategory
    [w] Identyfikator GUID kategorii z zmodyfikowany element ekran.
  • szItem
    [w] Kanoniczna nazwa elementu zmodyfikowane.
  • iItem
    [w] Indeks elementu zmodyfikowane.
  • pInfo
    [w] A ColorableItemInfo struktury zawierającej informacje o elemencie zmieniony.
  • crLiteralForeground
    [w] Pozycja wyświetlania kolor pierwszego planu.
  • crLiteralBackground
    [w] Kolor tła elementu ekranu.

Wartość zwracana

Type: System.Int32

Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.

Uwagi

Podpis COM

Z vsshell.idl:

HRESULT IVsFontAndColorEvents::OnItemChanged(
   [in] REFGUID rguidCategory,
   [in] LPCOLESTR szItem,
   [in] LONG iItem,
   [in] const ColorableItemInfo *pInfo,
   [in] COLORREF crLiteralForeground,
   [in] COLORREF crLiteralBackground
);

Gdy bForegroundValid, bBackgroundValid, i bFontFlagsValid flagi są ustawione na true, odpowiednie ustawienia wyświetlania elementów zostały zmodyfikowane.

Ustawienie wyświetlania elementów nie został zmodyfikowany, następnie wartości w tych argumentów będzie FAŁSZ, i odpowiadające im dane koloru jest nieprawidłowy i powinny być ignorowane.

Zobacz też

Interfejs IVsFontAndColorEvents
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku