ColorableItem.GetDefaultColors(COLORINDEX[], COLORINDEX[]) Methode

Definition

Definiert die Standard-Hintergrund- und Vordergrundfarben für ein benutzerdefiniertes ColorableItem Objekt.

public:
 virtual int GetDefaultColors(cli::array <Microsoft::VisualStudio::TextManager::Interop::COLORINDEX> ^ piForeground, cli::array <Microsoft::VisualStudio::TextManager::Interop::COLORINDEX> ^ piBackground);
public int GetDefaultColors(Microsoft.VisualStudio.TextManager.Interop.COLORINDEX[] piForeground, Microsoft.VisualStudio.TextManager.Interop.COLORINDEX[] piBackground);
abstract member GetDefaultColors : Microsoft.VisualStudio.TextManager.Interop.COLORINDEX[] * Microsoft.VisualStudio.TextManager.Interop.COLORINDEX[] -> int
override this.GetDefaultColors : Microsoft.VisualStudio.TextManager.Interop.COLORINDEX[] * Microsoft.VisualStudio.TextManager.Interop.COLORINDEX[] -> int
Public Function GetDefaultColors (piForeground As COLORINDEX(), piBackground As COLORINDEX()) As Integer

Parameter

piForeground
COLORINDEX[]

Ein COLORINDEX[]-Array, das die Vordergrundfarbe zurückgibt.

piBackground
COLORINDEX[]

Ein []-Array, das die Hintergrundfarbe zurückgibt COLORINDEX.

Gibt zurück

Ein ganzzahliger Wert, der ein definiertes Ergebnis angibt. Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Wenn es fehlschlägt, wird eine entsprechende Ausnahme ausgelöst.

Implementiert

Gilt für: