Udostępnij za pośrednictwem


Metoda CompletionSet.GetCompletionItemColor —

Pobiera kolory pierwszy plan i tło dla zaznaczonego elementu.

Przestrzeń nazw:  Microsoft.VisualStudio.Package
Zestawy:   Microsoft.VisualStudio.Package.LanguageService.11.0 (w Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (w Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (w Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (w Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Składnia

'Deklaracja
Public Overridable Function GetCompletionItemColor ( _
    iIndex As Integer, _
    <OutAttribute> ByRef dwFGColor As UInteger, _
    <OutAttribute> ByRef dwBGColor As UInteger _
) As Integer
public virtual int GetCompletionItemColor(
    int iIndex,
    out uint dwFGColor,
    out uint dwBGColor
)

Parametry

  • iIndex
    Typ: System.Int32
    Indeks elementu, dla którego chcesz uzyskać kolory.
  • dwFGColor
    Typ: System.UInt32%
    [out] Zwraca wartość koloru pierwszy plan .
  • dwBGColor
    Typ: System.UInt32%
    [out] Zwraca wartość koloru tło .

Wartość zwracana

Typ: System.Int32
Jeśli metoda się powiedzie, zwraca [F:Microsoft.VisualStudio.VSConstants.S_OKiftherearecolorsset,S_FALSEifthedefaultsareused].Jeśli nie powiedzie się, zwraca kod błędu.

Implementuje

IVsCompletionSetEx.GetCompletionItemColor(Int32, UInt32%, UInt32%)

Uwagi

Ta metoda jest implementacją GetCompletionItemColor metoda IVsCompletionSetEx interfejs.

Ta metoda nie jest zaimplementowana i zwraca zarówno dwFGColor i dwBGColor jako 0 i zwraca E_NOTIMPL.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

CompletionSet Klasa

Przestrzeń nazw Microsoft.VisualStudio.Package