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

Definition

Gibt die standardmäßigen Vordergrund- und Hintergrundfarben für einen Marker zurück.

public:
 int GetDefaultColors(cli::array <Microsoft::VisualStudio::TextManager::Interop::COLORINDEX> ^ piForeground, cli::array <Microsoft::VisualStudio::TextManager::Interop::COLORINDEX> ^ piBackground);
public:
 int GetDefaultColors(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::COLORINDEX> ^ piForeground, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::COLORINDEX> ^ piBackground);
int GetDefaultColors(std::Array <Microsoft::VisualStudio::TextManager::Interop::COLORINDEX> const & piForeground, std::Array <Microsoft::VisualStudio::TextManager::Interop::COLORINDEX> const & 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
Public Function GetDefaultColors (piForeground As COLORINDEX(), piBackground As COLORINDEX()) As Integer

Parameter

piForeground
COLORINDEX[]

[out] Zeiger auf die Standardvordergrundfarbe. Eine Liste der piForeground-Werte finden Sie unter COLORINDEX.

piBackground
COLORINDEX[]

[out] Zeiger auf die Standardhintergrundfarbe. Eine Liste der piBackground-Werte finden Sie unter COLORINDEX.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Aus textmgr. idl:

HRESULT IVsTextMarkerType::GetDefaultColors(  
   [out] COLORINDEX *piForeground,  
   [out] COLORINDEX *piBackground  
);  

Gilt für