Teilen über


SystemIcons.GetStockIcon Methode

Definition

Überlädt

GetStockIcon(StockIconId, StockIconOptions)

Ruft das angegebene Symbol für den Windows-Shell-Bestand ab.

GetStockIcon(StockIconId, Int32)

Ruft das angegebene Symbol für den Windows-Shell-Bestand ab.

GetStockIcon(StockIconId, StockIconOptions)

Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs

Ruft das angegebene Symbol für den Windows-Shell-Bestand ab.

public static System.Drawing.Icon GetStockIcon (System.Drawing.StockIconId stockIcon, System.Drawing.StockIconOptions options = System.Drawing.StockIconOptions.Default);
static member GetStockIcon : System.Drawing.StockIconId * System.Drawing.StockIconOptions -> System.Drawing.Icon
Public Shared Function GetStockIcon (stockIcon As StockIconId, Optional options As StockIconOptions = System.Drawing.StockIconOptions.Default) As Icon

Parameter

stockIcon
StockIconId

Das abzurufende Aktiensymbol.

options
StockIconOptions

Eine bitweise Kombination der Enumerationswerte, die Optionen zum Abrufen des Symbols angibt.

Gibt zurück

Der angeforderte Icon.

Ausnahmen

stockIcon ist eine ungültige StockIconId.

Hinweise

Im Gegensatz zu den statischen Symboleigenschaften in SystemIconsgibt diese API Symbole zurück, die für die ausgeführte Version von Windows themen sind. Darüber hinaus wird das zurückgegebene Icon nicht zwischengespeichert und sollte verworfen werden, wenn er nicht mehr benötigt wird.

Gilt für:

GetStockIcon(StockIconId, Int32)

Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs

Ruft das angegebene Symbol für den Windows-Shell-Bestand ab.

public:
 static System::Drawing::Icon ^ GetStockIcon(System::Drawing::StockIconId stockIcon, int size);
public static System.Drawing.Icon GetStockIcon (System.Drawing.StockIconId stockIcon, int size);
static member GetStockIcon : System.Drawing.StockIconId * int -> System.Drawing.Icon
Public Shared Function GetStockIcon (stockIcon As StockIconId, size As Integer) As Icon

Parameter

stockIcon
StockIconId

Das abzurufende Aktiensymbol.

size
Int32

Die gewünschte Größe. Wenn die angegebene Größe nicht vorhanden ist, wird eine vorhandene Größe neu gestampelt, um die angeforderte Größe zu erhalten.

Gibt zurück

Der angeforderte Icon.

Gilt für: