SystemIcons.GetStockIcon Methode

Definition

Überlädt

Name Beschreibung
GetStockIcon(StockIconId, StockIconOptions)

Ruft das angegebene Windows Shell-Aktiensymbol ab.

GetStockIcon(StockIconId, Int32)

Ruft das angegebene Windows Shell-Aktiensymbol ab.

GetStockIcon(StockIconId, StockIconOptions)

Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs

Ruft das angegebene Windows Shell-Aktiensymbol 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

Die angeforderte Icon.

Ausnahmen

stockIcon ist ungültig StockIconId.

Hinweise

Im Gegensatz zu den statischen Symboleigenschaften in SystemIcons gibt diese API Symbole zurück, die für die ausgeführte Version von Windows designiert sind. Darüber hinaus wird der zurückgegebene Icon Wert nicht zwischengespeichert und sollte gelöscht werden, wenn er nicht mehr benötigt wird.

Gilt für:

GetStockIcon(StockIconId, Int32)

Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs
Quelle:
SystemIcons.cs

Ruft das angegebene Windows Shell-Aktiensymbol 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 anzugeben.

Gibt zurück

Die angeforderte Icon.

Gilt für: